# binlog funtion will be deprecated in future: %define mysqlbinlog 0 %define pxc_cluster 0 Name: mydumper Summary: mydumper and myloader MySQL backup tools for PXC cluster 8.0 Version: 0.10.5 Release: 1%{?dist} Group: Applications/Databases License: GPL Vendor: Max Bubenick URL: https://github.com/maxbube/mydumper Source: mydumper-%{version}.tar.gz BuildRequires: glib2-devel openssl-devel pcre-devel zlib-devel %if %pxc_cluster == 1 BuildRequires: percona-xtradb-cluster-devel %else BuildRequires: percona-server-devel %endif BuildRequires: mysql-devel >= 8.0 AutoReq: no %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} %if %mysqlbinlog == 1 cmake . -DWITH_BINLOG=ON -DWITH_SSL=ON -DCMAKE_INSTALL_PREFIX=%{_prefix} %else cmake . -DWITH_BINLOG=OFF -DWITH_SSL=ON -DCMAKE_INSTALL_PREFIX=%{_prefix} %endif make %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 * Wed May 26 2021 Daniel Steiner - Initial build for CentOS 8.