Mydumper updated

This commit is contained in:
2021-07-04 08:24:46 +02:00
parent 5717555054
commit 6316878c0c

View File

@@ -1,23 +1,30 @@
# binlog funtion will be deprecated in future:
%define mysqlbinlog 0
%define pxc_cluster 0
# to build agains mariadb libraries, set it to 0
%define _mysql 0
Name: mydumper
Summary: mydumper and myloader MySQL backup tools for PXC cluster 8.0
Version: 0.10.5
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
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
BuildArch: x86_64
AutoReq: no
%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
%description
This package provides mydumper and myloader MySQL backup tools.
@@ -35,13 +42,12 @@ myloader is a tool used for multi-threaded restoration of mydumper backups.
%build
%define debug_package %{nil}
%if %mysqlbinlog == 1
cmake . -DWITH_BINLOG=ON -DWITH_SSL=ON -DCMAKE_INSTALL_PREFIX=%{_prefix}
%if 0%{?_mysql}
%__cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DWITH_BINLOG=OFF -DWITH_SSL=ON .
%else
cmake . -DWITH_BINLOG=OFF -DWITH_SSL=ON -DCMAKE_INSTALL_PREFIX=%{_prefix}
%__cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DWITH_BINLOG=OFF -DWITH_SSL=OFF .
%endif
make
%__make
%install
install -m 0755 -d ${RPM_BUILD_ROOT}%{_bindir}
@@ -56,7 +62,6 @@ rm -rf ${RPM_BUILD_ROOT}
%{_bindir}/*
%changelog
* Wed May 26 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Initial build for CentOS 8.
* Sun Jul 4 2021 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- First build on Fedora 33.