]> git.pld-linux.org Git - packages/xtrabackup.git/blob - xtrabackup.spec
up to 2.2.3, but gets linking error regarding probes
[packages/xtrabackup.git] / xtrabackup.spec
1 # NOTES
2 # - build instructions: http://www.percona.com/doc/percona-xtrabackup/2.2/installation/compiling_xtrabackup.html
3 # TODO
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
8 Name:           xtrabackup
9 Version:        2.2.3
10 Release:        0.1
11 License:        GPL v2
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/
16 BuildRequires:  bash
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)
24
25 %description
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.
37
38 %prep
39 %setup -q -n percona-%{name}-%{version}
40
41 %build
42 install -d build
43 cd build
44 %cmake \
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" \
48         ..
49
50 %{__make}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 %{__make} -C build install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/xtrabackup-test
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
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
This page took 0.067962 seconds and 3 git commands to generate.