diff options
Diffstat (limited to 'rdiff-backup/dist/rdiff-backup.spec.template')
-rw-r--r-- | rdiff-backup/dist/rdiff-backup.spec.template | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/rdiff-backup/dist/rdiff-backup.spec.template b/rdiff-backup/dist/rdiff-backup.spec.template new file mode 100644 index 0000000..0249336 --- /dev/null +++ b/rdiff-backup/dist/rdiff-backup.spec.template @@ -0,0 +1,55 @@ +%define PYTHON_NAME %((rpm -q --quiet python2 && echo python2) || echo python) + +Version: $version +Summary: Convenient and transparent local/remote incremental mirror/backup +Name: rdiff-backup +Release: 0.fdr.1 +Epoch: 0 +URL: http://rdiff-backup.stanford.edu/ +Source: http://rdiff-backup.stanford.edu/%{name}-%{version}.tar.gz +License: GPL +Group: Applications/Archiving +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: librsync >= 0.9.5.1, %{PYTHON_NAME} >= 2.2 +BuildPrereq: %{PYTHON_NAME}-devel >= 2.2, librsync-devel >= 0.9.5.1 + +%description +rdiff-backup is a script, written in Python, that backs up one +directory to another and is intended to be run periodically (nightly +from cron for instance). The target directory ends up a copy of the +source directory, but extra reverse diffs are stored in the 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 can also 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 from the previous backup will be transmitted. + +%prep +%setup -q + +%build +%{PYTHON_NAME} setup.py build + +%install +%{PYTHON_NAME} setup.py install --prefix=$RPM_BUILD_ROOT/usr + +%clean +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%{_bindir}/rdiff-backup +%{_mandir}/man1/rdiff-backup* +%{_libdir}/ +%doc CHANGELOG COPYING FAQ.html README + +%changelog +* Sun Jul 20 2003 Ben Escoto <bescoto@stanford.edu> +- Minor changes to comply with Fedora standards. + +* Sun Jan 19 2002 Troels Arvin <troels@arvin.dk> +- Builds, no matter if Python 2.2 is called python2-2.2 or python-2.2. + +* Sun Nov 4 2001 Ben Escoto <bescoto@stanford.edu> +- Initial RPM |