Files
rpms/fedora/SPECS/mydumper.spec
2022-06-24 19:49:18 +02:00

78 lines
2.0 KiB
RPMSpec

# to build agains mariadb libraries, set it to 0
%define _mysql 0
Name: mydumper
Summary: mydumper and myloader MySQL backup tools
Version: 0.12.3
Release: 3%{?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: python3-sphinx
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 -n %{name}-%{version}-3
%build
# required for Fedora 36:
export LDFLAGS=''
%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
%__make install DESTDIR=${RPM_BUILD_ROOT}
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_datarootdir}/doc/%{name}/*
%{_mandir}/man1/*
%changelog
* Fri Jun 24 2022 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- First build on Fedora 36.
- Update to 0.12.3.
* Fri Mar 18 2022 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- First build on Fedora 35.
* Sun Jul 4 2021 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- First build on Fedora 33.