2 # - build instructions: http://www.percona.com/doc/percona-xtrabackup/2.2/installation/compiling_xtrabackup.html
4 # - system zlib (seems unmodified)
5 # - BR deps (for libarchive, mysql builds)
6 # - 2.2: build gets this error: build/probes_mysql.o: No such file or directory
7 Summary: XtraBackup online backup for MySQL / InnoDB
12 Group: Applications/Databases
13 Source0: http://www.percona.com/downloads/XtraBackup/LATEST/source/tarball/percona-%{name}-%{version}.tar.gz
14 # Source0-md5: 9867f4059d31e15e7b1f45a9a9048531
15 URL: http://www.percona.com/doc/percona-xtrabackup/
17 BuildRequires: cmake >= 2.6
18 BuildRequires: libaio-devel
19 #BuildRequires: libarchive-devel
20 BuildRequires: libstdc++-devel
21 BuildRequires: ncurses-devel >= 4.2
22 #BuildRequires: zlib-devel
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Percona XtraBackup is an open-source hot backup utility for
27 MySQL-based servers that doesn't lock your database during the backup.
29 It can back up data from InnoDB, XtraDB, and MyISAM tables on MySQL
30 5.1, 5.5 and 5.6 servers, as well as Percona Server with XtraDB.
32 Percona XtraBackup is a combination of the xtrabackup C program, and
33 the innobackupex Perl script. The xtrabackup program copies and
34 manipulates InnoDB and XtraDB data files, and the Perl script enables
35 enhanced functionality, such as interacting with a running MySQL
36 server and backing up MyISAM tables.
39 %setup -q -n percona-%{name}-%{version}
45 -DBUILD_CONFIG=xtrabackup_release \
46 -DCMAKE_C_FLAGS_RELEASE="%{rpmcflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
47 -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing" \
53 rm -rf $RPM_BUILD_ROOT
54 %{__make} -C build install \
55 DESTDIR=$RPM_BUILD_ROOT
57 %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/xtrabackup-test
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %attr(755,root,root) %{_bindir}/innobackupex
65 %attr(755,root,root) %{_bindir}/xbcrypt
66 %attr(755,root,root) %{_bindir}/xbstream
67 %attr(755,root,root) %{_bindir}/xtrabackup