]>
Commit | Line | Data |
---|---|---|
9a449b6e | 1 | # NOTES |
84d945f8 | 2 | # - build instructions: http://www.percona.com/doc/percona-xtrabackup/2.2/installation/compiling_xtrabackup.html |
f64cba0a | 3 | # TODO |
9463cff2 ER |
4 | # - system zlib (seems unmodified) |
5 | # - BR deps (for libarchive, mysql builds) | |
84d945f8 | 6 | # - 2.2: build gets this error: build/probes_mysql.o: No such file or directory |
9463cff2 | 7 | Summary: XtraBackup online backup for MySQL / InnoDB |
c01054b8 | 8 | Name: xtrabackup |
84d945f8 ER |
9 | Version: 2.2.3 |
10 | Release: 0.1 | |
c01054b8 ER |
11 | License: GPL v2 |
12 | Group: Applications/Databases | |
84d945f8 ER |
13 | Source0: http://www.percona.com/downloads/XtraBackup/LATEST/source/tarball/percona-%{name}-%{version}.tar.gz |
14 | # Source0-md5: 9867f4059d31e15e7b1f45a9a9048531 | |
9a449b6e | 15 | URL: http://www.percona.com/doc/percona-xtrabackup/ |
9463cff2 ER |
16 | BuildRequires: bash |
17 | BuildRequires: cmake >= 2.6 | |
18 | BuildRequires: libaio-devel | |
19 | #BuildRequires: libarchive-devel | |
c01054b8 | 20 | BuildRequires: libstdc++-devel |
9463cff2 ER |
21 | BuildRequires: ncurses-devel >= 4.2 |
22 | #BuildRequires: zlib-devel | |
c01054b8 ER |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
84d945f8 ER |
26 | Percona XtraBackup is an open-source hot backup utility for |
27 | MySQL-based servers that doesn't lock your database during the backup. | |
28 | ||
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. | |
31 | ||
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. | |
c01054b8 ER |
37 | |
38 | %prep | |
9a449b6e | 39 | %setup -q -n percona-%{name}-%{version} |
9463cff2 | 40 | |
f64cba0a | 41 | %build |
84d945f8 ER |
42 | install -d build |
43 | cd build | |
9463cff2 | 44 | %cmake \ |
84d945f8 | 45 | -DBUILD_CONFIG=xtrabackup_release \ |
9463cff2 ER |
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" \ | |
84d945f8 | 48 | .. |
9463cff2 | 49 | |
f64cba0a | 50 | %{__make} |
9463cff2 | 51 | |
c01054b8 ER |
52 | %install |
53 | rm -rf $RPM_BUILD_ROOT | |
84d945f8 ER |
54 | %{__make} -C build install \ |
55 | DESTDIR=$RPM_BUILD_ROOT | |
56 | ||
57 | %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/xtrabackup-test | |
c01054b8 ER |
58 | |
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
f64cba0a | 64 | %attr(755,root,root) %{_bindir}/innobackupex |
84d945f8 | 65 | %attr(755,root,root) %{_bindir}/xbcrypt |
9463cff2 | 66 | %attr(755,root,root) %{_bindir}/xbstream |
84d945f8 | 67 | %attr(755,root,root) %{_bindir}/xtrabackup |