File rdiff-backup.spec of Package rdiff-backup

#
# spec file for package rdiff-backup
#
# Copyright (c) 2012 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:           rdiff-backup
Summary:        Convenient and transparent local/remote incremental mirror/backup
License:        GPL-2.0+
Group:          Productivity/Archiving/Backup
Version:        1.2.8
Release:        0
Url:            http://www.nongnu.org/rdiff-backup/
Source0:        http://savannah.nongnu.org/download/rdiff-backup/%{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1210
BuildRequires:  librsync-devel
%else
BuildRequires:  librsync
%endif
BuildRequires:  python-devel
%py_requires

%description
rdiff-backup backs up one directory to another, possibly over a
network. The target directory ends up a copy of the source directory,
but extra reverse diffs are stored in a special subdirectory of that
target directory, so you can still recover files lost some time ago.
The idea is to combine the best features of a mirror and an incremental
backup. rdiff-backup also preserves subdirectories, hard links, dev
files, permissions, uid/gid ownership, and modification times. Also,
rdiff-backup can operate in a bandwidth efficient manner over a pipe,
like rsync. Thus you can use rdiff-backup and ssh to securely back a
hard drive up to a remote location, and only the differences will be
transmitted. Finally, rdiff-backup is easy to use and settings have
sensical defaults.



Authors:
--------
    Ben Escoto <ben@emerose.org>

%prep
%setup -q

%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT/usr/share/doc/rdiff-backup-%{version}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc CHANGELOG COPYING FAQ.html examples.html README
%{_mandir}/*/*
%{_bindir}/*
%{py_sitedir}/rdiff_backup 
%if %{suse_version} > 1010
%{py_sitedir}/*.egg-info
%endif

%changelog
openSUSE Build Service is sponsored by