Files
rpms/centos/SPECS/mydumper.spec

95 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

2021-07-04 08:24:46 +02:00
# to build agains mariadb libraries, set it to 0
2023-05-28 08:29:39 +02:00
%define _ver 2
2022-09-23 08:42:32 +02:00
%define _extent -%{_ver}
Name: mydumper
2021-07-04 08:24:46 +02:00
Summary: mydumper and myloader MySQL backup tools
2023-05-19 12:32:37 +02:00
Version: 0.14.5
2022-09-23 08:42:32 +02:00
Release: %{_ver}%{?dist}
Group: Applications/Databases
License: GPL
Vendor: Max Bubenick
URL: https://github.com/maxbube/mydumper
Source: mydumper-%{version}%{_extent}.tar.gz
2021-07-04 08:24:46 +02:00
BuildArch: x86_64
AutoReq: no
2023-05-19 12:32:37 +02:00
BuildRequires: percona-server-devel
#BuildRequires: Percona-Server-devel-57
2022-05-09 09:55:06 +02:00
#BuildRequires: mysql-devel
2022-03-18 09:22:14 +01:00
#BuildRequires: mariadb-devel
2021-07-04 08:24:46 +02:00
BuildRequires: pkgconf-pkg-config
BuildRequires: pcre-devel
BuildRequires: glib2-devel
BuildRequires: zlib-devel
BuildRequires: pcre-devel
2023-03-20 14:55:39 +01:00
BuildRequires: libzstd-devel
2021-07-04 08:24:46 +02:00
BuildRequires: openssl-devel
BuildRequires: cmake
2022-03-18 09:22:14 +01:00
BuildRequires: python3-sphinx
2021-07-04 08:24:46 +02:00
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}%{_extent}
%build
%define debug_package %{nil}
2023-03-20 14:55:39 +01:00
cmake . -DWITH_ZSTD=ON -DWITH_SSL=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%{_prefix}
2022-05-09 09:55:06 +02:00
make
%install
2022-03-18 09:22:14 +01:00
%__make install DESTDIR=${RPM_BUILD_ROOT}
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root,-)
%{_bindir}/*
2022-03-18 09:22:14 +01:00
%{_datarootdir}/doc/%{name}/*
%{_mandir}/man1/*
2023-05-19 12:32:37 +02:00
%config(noreplace) %{_sysconfdir}/%{name}.cnf
%changelog
2023-05-28 08:29:39 +02:00
* Sun May 28 2023 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 0.14.5-2.
2023-05-19 12:32:37 +02:00
* Fri May 19 2023 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 0.14.5-1.
2023-03-20 14:55:39 +01:00
* Mon Mar 20 2023 Daniel Steiner <daniel.steiner@dsteiner.ch>
- zstd compression and ssl enabled.
- Update to 0.14.1-1.
2023-01-21 20:29:23 +01:00
* Sat Jan 21 2023 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 0.13.1-2.
2022-09-23 08:42:32 +02:00
* Fri Sep 23 2022 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 0.12.7-3.
2022-09-16 23:28:47 +02:00
* Fri Sep 16 2022 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 0.12.7.
2022-06-24 19:49:42 +02:00
* Sat May 14 2022 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Build on Almalinux 8.6.
* Fri May 6 2022 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 0.12.3-1
* Fri Mar 18 2022 Daniel Steiner <daniel.steiner@dsteiner.ch>
2022-03-18 09:22:14 +01:00
- First build on Fedora 35.
* Sun Jul 4 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
2021-07-04 08:24:46 +02:00
- First build on Fedora 33.