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: # to build agains mariadb libraries, set it to 0
%define mysqlbinlog 0 %define _mysql 0
%define pxc_cluster 0
Name: mydumper Name: mydumper
Summary: mydumper and myloader MySQL backup tools for PXC cluster 8.0 Summary: mydumper and myloader MySQL backup tools
Version: 0.10.5 Version: 0.10.7
Release: 1%{?dist} Release: 1%{?dist}
Group: Applications/Databases Group: Applications/Databases
License: GPL License: GPL
Vendor: Max Bubenick Vendor: Max Bubenick
URL: https://github.com/maxbube/mydumper URL: https://github.com/maxbube/mydumper
Source: mydumper-%{version}.tar.gz Source: mydumper-%{version}.tar.gz
BuildRequires: glib2-devel openssl-devel pcre-devel zlib-devel BuildArch: x86_64
%if %pxc_cluster == 1
BuildRequires: percona-xtradb-cluster-devel
%else
BuildRequires: percona-server-devel
%endif
BuildRequires: mysql-devel >= 8.0
AutoReq: no 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 %description
This package provides mydumper and myloader MySQL backup tools. 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 %build
%define debug_package %{nil} %define debug_package %{nil}
%if %mysqlbinlog == 1 %if 0%{?_mysql}
cmake . -DWITH_BINLOG=ON -DWITH_SSL=ON -DCMAKE_INSTALL_PREFIX=%{_prefix} %__cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DWITH_BINLOG=OFF -DWITH_SSL=ON .
%else %else
cmake . -DWITH_BINLOG=OFF -DWITH_SSL=ON -DCMAKE_INSTALL_PREFIX=%{_prefix} %__cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DWITH_BINLOG=OFF -DWITH_SSL=OFF .
%endif %endif
%__make
make
%install %install
install -m 0755 -d ${RPM_BUILD_ROOT}%{_bindir} install -m 0755 -d ${RPM_BUILD_ROOT}%{_bindir}
@@ -56,7 +62,6 @@ rm -rf ${RPM_BUILD_ROOT}
%{_bindir}/* %{_bindir}/*
%changelog %changelog
* Wed May 26 2021 Daniel Steiner <daniel.steiner@dsteiner.ch> * Sun Jul 4 2021 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Initial build for CentOS 8. - First build on Fedora 33.