2014-02-01 17:21:34 +00:00
|
|
|
#
|
2014-03-02 00:31:38 +00:00
|
|
|
# spec file for package mylvmbackup
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2014-02-01 17:21:34 +00:00
|
|
|
#
|
2014-09-09 19:58:56 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2014-02-01 17:21:34 +00:00
|
|
|
#
|
2014-09-09 19:58:56 +00:00
|
|
|
|
2014-02-01 17:21:34 +00:00
|
|
|
|
2014-02-01 17:27:14 +00:00
|
|
|
Name: mylvmbackup
|
2014-12-02 14:48:57 +00:00
|
|
|
Version: 0.16
|
2014-02-01 17:27:14 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Utility for creating MySQL backups via LVM snapshots
|
2014-09-09 19:58:56 +00:00
|
|
|
License: GPL-2.0+
|
2014-02-01 17:27:14 +00:00
|
|
|
Group: Productivity/Archiving/Backup
|
2014-09-09 19:58:56 +00:00
|
|
|
Url: http://www.lenzg.net/mylvmbackup/
|
2014-02-01 17:27:14 +00:00
|
|
|
Source: %{name}-%{version}.tar.gz
|
2014-09-09 19:58:56 +00:00
|
|
|
Requires: perl(Config::IniFiles)
|
|
|
|
Requires: perl(DBD::mysql)
|
|
|
|
Requires: perl(DBI)
|
|
|
|
Requires: perl(Date::Format)
|
|
|
|
Requires: perl(Fcntl)
|
|
|
|
Requires: perl(File::Basename)
|
|
|
|
Requires: perl(File::Copy)
|
|
|
|
Requires: perl(File::Copy::Recursive)
|
|
|
|
Requires: perl(File::Path)
|
|
|
|
Requires: perl(File::Temp)
|
|
|
|
Requires: perl(Getopt::Long)
|
|
|
|
Requires: perl(Sys::Hostname)
|
2014-02-01 17:27:14 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2014-02-01 17:21:34 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
mylvmbackup is a script for quickly creating backups of MySQL server's data
|
|
|
|
files. To perform a backup, mylvmbackup obtains a read lock on all tables and
|
|
|
|
flushes all server caches to disk, makes an LVM snapshot of the volume
|
|
|
|
containing the MySQL data directory, and unlocks the tables again. The snapshot
|
|
|
|
process takes only a small amount of time. When it is done, the server can
|
|
|
|
continue normal operations, while the actual file backup proceeds.
|
|
|
|
|
|
|
|
%prep
|
2014-02-01 17:27:14 +00:00
|
|
|
%setup -q
|
2014-02-01 17:21:34 +00:00
|
|
|
|
2014-02-01 17:27:14 +00:00
|
|
|
%build
|
|
|
|
#
|
2014-02-01 17:21:34 +00:00
|
|
|
%install
|
2014-02-01 17:27:14 +00:00
|
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir} install
|
2014-02-01 17:21:34 +00:00
|
|
|
|
|
|
|
%clean
|
2014-02-01 17:27:14 +00:00
|
|
|
[ %{buildroot} != "/" ] && [ -d %{buildroot} ] && rm -rf %{buildroot};
|
2014-02-01 17:21:34 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2014-02-01 17:27:14 +00:00
|
|
|
%doc ChangeLog COPYING CREDITS README TODO
|
2014-02-01 17:21:34 +00:00
|
|
|
%config(noreplace,missingok) %attr(600, root, root) %{_sysconfdir}/mylvmbackup.conf
|
2014-02-01 17:27:14 +00:00
|
|
|
%{_datadir}/%{name}/*.pm
|
2014-02-01 17:21:34 +00:00
|
|
|
%doc %{_mandir}/man1/%{name}.1*
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%{_bindir}/%{name}
|
2014-09-09 19:58:56 +00:00
|
|
|
|
|
|
|
%changelog
|