From 57175550548483958ca3cf07203d42eca887d0bd Mon Sep 17 00:00:00 2001 From: Daniel Steiner Date: Sun, 4 Jul 2021 08:15:00 +0200 Subject: [PATCH] New mydumper package added with support of build against mysql8 or mariadb --- fedora/SPECS/mydumper.spec | 67 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 fedora/SPECS/mydumper.spec diff --git a/fedora/SPECS/mydumper.spec b/fedora/SPECS/mydumper.spec new file mode 100644 index 0000000..1f9ff68 --- /dev/null +++ b/fedora/SPECS/mydumper.spec @@ -0,0 +1,67 @@ +# to build agains mariadb libraries, set it to 0 +%define _mysql 0 +Name: mydumper +Summary: mydumper and myloader MySQL backup tools +Version: 0.10.7 +Release: 1%{?dist} +Group: Applications/Databases +License: GPL +Vendor: Max Bubenick +URL: https://github.com/maxbube/mydumper +Source: mydumper-%{version}.tar.gz +BuildArch: x86_64 +AutoReq: no +%if 0%{?_mysql} +BuildRequires: community-mysql-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 + +%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 0%{?_mysql} +%__cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DWITH_BINLOG=OFF -DWITH_SSL=ON . +%else +%__cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DWITH_BINLOG=OFF -DWITH_SSL=OFF . +%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 +* Sun Jul 4 2021 Daniel Steiner +- First build on Fedora 33. +