SPEC file simplified
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user