SPEC file simplified

This commit is contained in:
2022-05-09 09:55:06 +02:00
parent 4cf78ff967
commit 1873aa7db2

View File

@@ -1,5 +1,4 @@
# to build agains mariadb libraries, set it to 0
%define _mysql 0
%define _extent -1
Name: mydumper
Summary: mydumper and myloader MySQL backup tools
@@ -12,12 +11,10 @@ URL: https://github.com/maxbube/mydumper
Source: mydumper-%{version}%{_extent}.tar.gz
BuildArch: x86_64
AutoReq: no
%if 0%{?_mysql}
BuildRequires: community-mysql-devel
%else
BuildRequires: percona-server-devel
#BuildRequires: Percona-Server-devel-57
#BuildRequires: mysql-devel
#BuildRequires: mariadb-devel
%endif
BuildRequires: pkgconf-pkg-config
BuildRequires: pcre-devel
BuildRequires: glib2-devel
@@ -45,12 +42,8 @@ myloader is a tool used for multi-threaded restoration of mydumper backups.
%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
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
make
%install
%__make install DESTDIR=${RPM_BUILD_ROOT}