203 lines
6.2 KiB
RPMSpec
203 lines
6.2 KiB
RPMSpec
%global commit 7686bfc6e5a5163f73e2adea38eac0da06c9898e
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
%if 0
|
|
%global MYSQL_VERSION_MAJOR 5
|
|
%global MYSQL_VERSION_MINOR 5
|
|
%global MYSQL_VERSION_PATCH 41
|
|
%endif
|
|
|
|
%global pxbu_major_minor 23
|
|
|
|
Summary: Online backup for InnoDB/XtraDB in MySQL, Percona Server and MariaDB
|
|
Name: percona-xtrabackup
|
|
Version: 2.3.6
|
|
Release: 12%{?dist}
|
|
License: GPLv2
|
|
URL: http://www.percona.com/software/percona-xtrabackup/
|
|
Source: https://github.com/percona/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz
|
|
Patch0: percona-xtrabackup-gcc7-flags.patch
|
|
Patch1: percona-xtrabackup-2.3.6-explicit-shebangs.patch
|
|
Patch2: percona-xtrabackup-2.3.6-fix-fpermissive.patch
|
|
Provides: xtrabackup >= 2.0.0
|
|
Provides: %{name}-%{pxbu_major_minor}
|
|
Obsoletes: xtrabackup < 2.0.0
|
|
BuildRequires: libaio-devel
|
|
BuildRequires: libgcrypt-devel
|
|
BuildRequires: automake
|
|
BuildRequires: cmake >= 2.6.3
|
|
BuildRequires: patch
|
|
BuildRequires: gcc
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libtool
|
|
BuildRequires: bison
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: perl-generators
|
|
BuildRequires: procps
|
|
BuildRequires: python2-sphinx
|
|
BuildRequires: libcurl-devel
|
|
BuildRequires: libev-devel
|
|
BuildRequires: vim-common
|
|
Requires: perl(DBD::mysql)
|
|
Requires: libcurl
|
|
Requires: libev
|
|
|
|
%description
|
|
Online backup for InnoDB/XtraDB in MySQL, MariaDB and Percona Server.
|
|
|
|
%package test
|
|
Summary: Test suite for Percona Xtrabackup
|
|
Provides: %{name}-test-%{pxbu_major_minor}
|
|
Requires: %{name}
|
|
Requires: /usr/bin/mysql
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description test
|
|
This package contains the test suite for Percona Xtrabackup
|
|
|
|
%prep
|
|
%setup -qn %{name}-%{commit}
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
|
|
# fails build
|
|
# build for mariadb version
|
|
%if 0
|
|
rm VERSION
|
|
cat << EOF > VERSION
|
|
MYSQL_VERSION_MAJOR=%{MYSQL_VERSION_MAJOR}
|
|
MYSQL_VERSION_MINOR=%{MYSQL_VERSION_MINOR}
|
|
MYSQL_VERSION_PATCH=%{MYSQL_VERSION_PATCH}
|
|
MYSQL_VERSION_EXTRA=
|
|
EOF
|
|
%endif
|
|
|
|
# update deprecated m4 macros
|
|
sed -i "s/AM_CONFIG_HEADER/AM_CONFIG_HEADERS/g" libevent/configure.in
|
|
sed -i "s/AC_PROG_LIBTOOL/LT_INIT/g" libevent/configure.in
|
|
sed -i "s/AC_PROG_LIBTOOL/LT_INIT/g" storage/innobase/xtrabackup/src/libarchive/configure.ac
|
|
# GCC 7
|
|
sed -i "s/-Werror//g" storage/innobase/xtrabackup/src/libarchive/CMakeLists.txt
|
|
|
|
%build
|
|
%cmake -DBUILD_CONFIG=xtrabackup_release && %make_build
|
|
|
|
%install
|
|
install -d %{buildroot}%{_bindir}
|
|
install -d %{buildroot}%{_datadir}
|
|
install -d %{buildroot}%{_mandir}/man1
|
|
# install binaries and configs
|
|
|
|
INNO_ROOT=storage/innobase/xtrabackup/src
|
|
|
|
pushd .
|
|
|
|
cd $INNO_ROOT
|
|
install -p -m 755 xtrabackup %{buildroot}%{_bindir}
|
|
ln -sf xtrabackup %{buildroot}%{_bindir}/innobackupex
|
|
install -p -m 755 xbstream %{buildroot}%{_bindir}
|
|
install -p -m 755 xbcrypt %{buildroot}%{_bindir}
|
|
cd ..
|
|
find test -size 0 -delete
|
|
cp -pR test %{buildroot}%{_datadir}/percona-xtrabackup-test
|
|
# we don't ship part of the test suite that is generally obsolete
|
|
# and tricky to run
|
|
rm -rf %{buildroot}%{_datadir}/percona-xtrabackup-test/kewpie
|
|
# cleanup cmake
|
|
rm -rf %{buildroot}%{_datadir}/percona-xtrabackup-test/*Make*
|
|
|
|
# get the man files
|
|
cd doc/source/build/man
|
|
install -m 644 *.1 %{buildroot}%{_mandir}/man1
|
|
|
|
popd
|
|
|
|
%files
|
|
%{_bindir}/innobackupex
|
|
%{_bindir}/xtrabackup
|
|
%{_bindir}/xbstream
|
|
%{_bindir}/xbcrypt
|
|
%doc README VERSION
|
|
%license COPYING
|
|
%{_mandir}/man1/innobackupex.1.gz
|
|
%{_mandir}/man1/xtrabackup.1.gz
|
|
%{_mandir}/man1/xbstream.1.gz
|
|
%{_mandir}/man1/xbcrypt.1.gz
|
|
|
|
# upstream has been notified of outdated FSF address in
|
|
# https://bugs.launchpad.net/percona-xtrabackup/+bug/1222777
|
|
%files -n percona-xtrabackup-test
|
|
%{_datadir}/percona-xtrabackup-test
|
|
%license COPYING
|
|
|
|
%changelog
|
|
* Mon Jan 14 2019 Björn Esser <besser82@fedoraproject.org> - 2.3.6-12
|
|
- Rebuilt for libcrypt.so.2 (#1666033)
|
|
|
|
* Fri Jan 04 2019 Björn Esser <besser82@fedoraproject.org> - 2.3.6-11
|
|
- Add patch to use explicit shebangs, fixes FTBFS for Fedora 30
|
|
- Add patch to fix -fpermissive, fixes FTBFS for Fedora 30
|
|
- Apply proper buildflags
|
|
- Modernize spec-file
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-10
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.3.6-9
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 2.3.6-7
|
|
- Rebuilt for switch to libxcrypt
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.6-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
|
|
|
|
* Fri Feb 17 2017 Peter MacKinnon <pmackinn@redhat.com> - 2.3.6-3
|
|
- Adjustments for GCC 7
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.6-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Wed Jan 18 2017 Peter MacKinnon <pmackinn@redhat.com> - 2.3.6-1
|
|
- Updated to 2.3.6
|
|
- Fixes CVE-2016-6225
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.9-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Tue Nov 3 2015 Peter MacKinnon <pmackinn@redhat.com> - 2.2.9-3
|
|
- Add an extra provides for version 2.2
|
|
|
|
* Tue Sep 1 2015 Peter MacKinnon <pmackinn@redhat.com> - 2.2.9-2
|
|
- Spec changes from Fedora review
|
|
|
|
* Fri Jun 12 2015 Peter MacKinnon <pmackinn@redhat.com> - 2.2.9-1
|
|
- Updated to 2.2.9 (mariadb 5.5 compatible)
|
|
|
|
* Thu Oct 31 2013 Stewart Smith <stewart@flamingspork.com> - 2.1.5-1
|
|
- Update packaging for Percona XtraBackup 2.1.5 release
|
|
|
|
* Mon Sep 27 2010 Aleksandr Kuzminsky
|
|
- Version 1.4
|
|
|
|
* Wed Jun 30 2010 Aleksandr Kuzminsky
|
|
- Version 1.3 ported on Percona Server 11
|
|
|
|
* Thu Mar 11 2010 Aleksandr Kuzminsky
|
|
- Ported to MySQL 5.1 with InnoDB plugin
|
|
|
|
* Fri Mar 13 2009 Vadim Tkachenko
|
|
- initial release
|