2021-07-04 08:24:46 +02:00
|
|
|
# to build agains mariadb libraries, set it to 0
|
|
|
|
|
%define _mysql 0
|
2021-06-03 10:21:11 +02:00
|
|
|
Name: mydumper
|
2021-07-04 08:24:46 +02:00
|
|
|
Summary: mydumper and myloader MySQL backup tools
|
|
|
|
|
Version: 0.10.7
|
|
|
|
|
Release: 1%{?dist}
|
2021-06-03 10:21:11 +02:00
|
|
|
Group: Applications/Databases
|
|
|
|
|
License: GPL
|
|
|
|
|
Vendor: Max Bubenick
|
|
|
|
|
URL: https://github.com/maxbube/mydumper
|
|
|
|
|
Source: mydumper-%{version}.tar.gz
|
2021-07-04 08:24:46 +02:00
|
|
|
BuildArch: x86_64
|
2021-06-03 10:21:11 +02:00
|
|
|
AutoReq: no
|
2021-07-04 08:24:46 +02:00
|
|
|
%if 0%{?_mysql}
|
|
|
|
|
BuildRequires: percona-server-devel
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: mariadb-devel
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: pkgconf-pkg-config
|
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: git
|
2021-06-03 10:21:11 +02:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package provides mydumper and myloader MySQL backup tools.
|
|
|
|
|
|
|
|
|
|
mydumper is a tool used for backing up MySQL database servers much
|
|
|
|
|
faster than the mysqldump tool distributed with MySQL. It also has the
|
|
|
|
|
capability to retrieve the binary logs from the remote server at the same time
|
|
|
|
|
as the dump itself. The advantages of mydumper are: parallelism,
|
|
|
|
|
easier to manage output, consistency, manageability.
|
|
|
|
|
|
|
|
|
|
myloader is a tool used for multi-threaded restoration of mydumper backups.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%define debug_package %{nil}
|
2021-07-04 08:24:46 +02:00
|
|
|
%if 0%{?_mysql}
|
|
|
|
|
%__cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DWITH_BINLOG=OFF -DWITH_SSL=ON .
|
2021-06-03 10:21:11 +02:00
|
|
|
%else
|
2021-07-04 08:24:46 +02:00
|
|
|
%__cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DWITH_BINLOG=OFF -DWITH_SSL=OFF .
|
2021-06-03 10:21:11 +02:00
|
|
|
%endif
|
2021-07-04 08:24:46 +02:00
|
|
|
%__make
|
2021-06-03 10:21:11 +02:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
install -m 0755 -d ${RPM_BUILD_ROOT}%{_bindir}
|
|
|
|
|
install -m 0555 mydumper ${RPM_BUILD_ROOT}%{_bindir}
|
|
|
|
|
install -m 0555 myloader ${RPM_BUILD_ROOT}%{_bindir}
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-07-04 08:24:46 +02:00
|
|
|
* Sun Jul 4 2021 Daniel Steiner <daniel.steiner@daniel-steiner.org>
|
|
|
|
|
- First build on Fedora 33.
|
2021-06-03 10:21:11 +02:00
|
|
|
|