From: Elan Ruusamäe Date: Sat, 7 Oct 2017 14:01:42 +0000 (+0300) Subject: new, version 0.9.3 X-Git-Tag: auto/th/mydumper-0.9.3-1~1 X-Git-Url: https://git.pld-linux.org/?p=packages%2Fmydumper.git;a=commitdiff_plain;h=f7df5a26339fc5e6b4661277e983c045e7ddc551 new, version 0.9.3 --- f7df5a26339fc5e6b4661277e983c045e7ddc551 diff --git a/mydumper.spec b/mydumper.spec new file mode 100644 index 0000000..dab22f2 --- /dev/null +++ b/mydumper.spec @@ -0,0 +1,50 @@ +# +# Conditional build: +%bcond_with doc # build documentation +%bcond_without tests # build without tests + +Summary: MySQL Data Dumper +Name: mydumper +Version: 0.9.3 +Release: 0.1 +License: GPL v3 +Group: Applications/Databases +Source0: https://github.com/maxbube/mydumper/archive/v%{version}/%{name}-%{version}.tar.gz +# Source0-md5: 72e411c8f20fa7d7c36bb78625536b1d +URL: https://github.com/maxbube/mydumper +BuildRequires: cmake +BuildRequires: glib2-devel +BuildRequires: mysql-devel +BuildRequires: openssl-devel +BuildRequires: pcre-devel +BuildRequires: zlib-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +A high-performance multi-threaded backup toolset for MySQL and +Drizzle. + +%prep +%setup -q + +%build +install -d build +cd build +%cmake \ + -DBUILD_DOCS=%{!?with_doc:OFF}%{?with_doc:ON} \ + .. +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +%{__make} install -C build \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README +%attr(755,root,root) %{_bindir}/mydumper +%attr(755,root,root) %{_bindir}/myloader