]> git.pld-linux.org Git - packages/xtrabackup.git/blame - xtrabackup.spec
up to 2.2.3, but gets linking error regarding probes
[packages/xtrabackup.git] / xtrabackup.spec
CommitLineData
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 7Summary: XtraBackup online backup for MySQL / InnoDB
c01054b8 8Name: xtrabackup
84d945f8
ER
9Version: 2.2.3
10Release: 0.1
c01054b8
ER
11License: GPL v2
12Group: Applications/Databases
84d945f8
ER
13Source0: http://www.percona.com/downloads/XtraBackup/LATEST/source/tarball/percona-%{name}-%{version}.tar.gz
14# Source0-md5: 9867f4059d31e15e7b1f45a9a9048531
9a449b6e 15URL: http://www.percona.com/doc/percona-xtrabackup/
9463cff2
ER
16BuildRequires: bash
17BuildRequires: cmake >= 2.6
18BuildRequires: libaio-devel
19#BuildRequires: libarchive-devel
c01054b8 20BuildRequires: libstdc++-devel
9463cff2
ER
21BuildRequires: ncurses-devel >= 4.2
22#BuildRequires: zlib-devel
c01054b8
ER
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
84d945f8
ER
26Percona XtraBackup is an open-source hot backup utility for
27MySQL-based servers that doesn't lock your database during the backup.
28
29It can back up data from InnoDB, XtraDB, and MyISAM tables on MySQL
305.1, 5.5 and 5.6 servers, as well as Percona Server with XtraDB.
31
32Percona XtraBackup is a combination of the xtrabackup C program, and
33the innobackupex Perl script. The xtrabackup program copies and
34manipulates InnoDB and XtraDB data files, and the Perl script enables
35enhanced functionality, such as interacting with a running MySQL
36server 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
42install -d build
43cd 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
53rm -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
60rm -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
This page took 0.108928 seconds and 4 git commands to generate.