File rsnapshot.spec of Package rsnapshot
#
# spec file for package rsnapshot
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
Name: rsnapshot
Url: http://www.rsnapshot.org/
Version: 1.3.1
Release: 0
Summary: Backup program using hardlinks
License: GPL-2.0+
Group: Productivity/Archiving/Backup
Source: %name-%version.tar.bz2
Patch1: rsnapshot-config.patch
Patch2: rsnapshot-1.3.1-no_usr_local.patch
Patch3: rsnapshot-1.3.1-perl5.18.patch
BuildRequires: perl
BuildRequires: rsync
Requires: perl
Requires: rsync
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
rsnapshot is a filesystem snapshot utility for making backups of local
and remote systems. Using rsync and hard links, it is possible to keep
multiple, full backups instantly available. The disk space required is
just a little more than the space of one full backup, plus
incrementals. Depending on your configuration, it is quite possible to
set up in just a few minutes. Files can be restored by the users who
own them, without the root user getting involved. There are no tapes to
change, so once it's set up, you may never need to think about it
again.
Authors:
--------
Anthony Ettinger <chovy@users.sourceforge.net>
David Keegel <djk20@users.sourceforge.net>
David Cantrell <drhyde@users.sourceforge.net>
Nathan Rosenquist <scubaninja@users.sourceforge.net>
Teodor Zlatanov <tzz@users.sourceforge.net>
%prep
%setup -q
%patch1
%patch2
%patch3
%build
%configure
%__make
%check
%__make test
%install
%makeinstall
%__install -d "%{buildroot}/%{_sysconfdir}"
%__install -m 644 rsnapshot.conf.default "%{buildroot}/%{_sysconfdir}/rsnapshot.conf.default"
%__install -m 600 rsnapshot.conf.default "%{buildroot}/%{_sysconfdir}/rsnapshot.conf"
%files
%defattr(-,root,root)
%{_bindir}/rsnapshot
%{_bindir}/rsnapshot-diff
%config(noreplace) %{_sysconfdir}/rsnapshot.conf
%config %{_sysconfdir}/rsnapshot.conf.default
%doc AUTHORS COPYING ChangeLog README TODO
%{_mandir}/man1/rsnapshot.1.gz
%{_mandir}/man1/rsnapshot-diff.1.gz
%changelog