SPEC file simplified
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
# to build agains mariadb libraries, set it to 0
|
# to build agains mariadb libraries, set it to 0
|
||||||
%define _mysql 0
|
|
||||||
%define _extent -1
|
%define _extent -1
|
||||||
Name: mydumper
|
Name: mydumper
|
||||||
Summary: mydumper and myloader MySQL backup tools
|
Summary: mydumper and myloader MySQL backup tools
|
||||||
@@ -12,12 +11,10 @@ URL: https://github.com/maxbube/mydumper
|
|||||||
Source: mydumper-%{version}%{_extent}.tar.gz
|
Source: mydumper-%{version}%{_extent}.tar.gz
|
||||||
BuildArch: x86_64
|
BuildArch: x86_64
|
||||||
AutoReq: no
|
AutoReq: no
|
||||||
%if 0%{?_mysql}
|
|
||||||
BuildRequires: community-mysql-devel
|
|
||||||
%else
|
|
||||||
BuildRequires: percona-server-devel
|
BuildRequires: percona-server-devel
|
||||||
|
#BuildRequires: Percona-Server-devel-57
|
||||||
|
#BuildRequires: mysql-devel
|
||||||
#BuildRequires: mariadb-devel
|
#BuildRequires: mariadb-devel
|
||||||
%endif
|
|
||||||
BuildRequires: pkgconf-pkg-config
|
BuildRequires: pkgconf-pkg-config
|
||||||
BuildRequires: pcre-devel
|
BuildRequires: pcre-devel
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
@@ -45,12 +42,8 @@ myloader is a tool used for multi-threaded restoration of mydumper backups.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
%if 0%{?_mysql}
|
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
|
||||||
%__cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DWITH_BINLOG=OFF -DWITH_SSL=ON .
|
make
|
||||||
%else
|
|
||||||
%__cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DWITH_BINLOG=OFF -DWITH_SSL=OFF .
|
|
||||||
%endif
|
|
||||||
%__make
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%__make install DESTDIR=${RPM_BUILD_ROOT}
|
%__make install DESTDIR=${RPM_BUILD_ROOT}
|
||||||
|
|||||||
Reference in New Issue
Block a user