File mydumper.spec of Package mydumper
# norootforbuild
Name: mydumper
Version: 0.9.5
Release: 1
Summary: How MySQL DBA & support engineer would imagine 'mysqldump'
Source: %{name}-%{version}.tar.xz
URL: https://launchpad.net/mydumper
Group: Applications/Databases
License: GPL-3.0
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: gcc gcc-c++ glib2-devel glibc-devel libmysqlclient-devel make pcre-devel zlib-devel cmake
%description
mydumper is complement to mysqldump, for MySQL data dumping, providing:
1. Parallelism (hence, speed) and performance (avoids expensive character set
conversion routines, efficient code overall)
2. Easier to manage output (separate files for tables, dump metadata, etc, easy
to view/parse data)
3. Consistency - maintains snapshot across all threads, provides accurate
master and slave log positions, etc
4. Manageability - supports PCRE for specifying database and tables inclusions
and exclusions
It does not support schema dumping and leaves that to 'mysqldump --no-data'
It was born as weekend experiment, and apparently it worked well enough to have
public appearance.
Authors:
--------
Andrew Hutchins <andrew.hutchins@sun.com>
Domas Mituzas <domas@dammit.lt>
Mark Leith <mark.leith@sun.com>
%debug_package
%prep
%setup -q
%build
cmake -DCMAKE_INSTALL_PREFIX="%{_prefix}" .
make %{?_smp_mflags} VERBOSE=1
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
rm -f %{buildroot}%{_datadir}/doc/%{name}/html/.buildinfo
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/mydumper
%{_bindir}/myloader