2 %include /usr/lib/rpm/macros.python
4 Summary: Untrusted/encrypted backup using rsync algorithm
9 Group: Applications/Archiving
10 Source0: http://savannah.nongnu.org/download/duplicity/%{name}-%{version}.tar.gz
11 URL: http://www.nongnu.org/duplicity/
12 BuildRequires: librsync-devel
13 BuildRequires: python-devel >= 2.2.1
14 BuildRequires: rpm-pythonprov
16 Requires: python >= 2.2
17 Requires: python-modules
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Duplicity incrementally backs up files and directory by encrypting
22 tar-format volumes with GnuPG and uploading them to a remote (or
23 local) file server. In theory many remote backends are possible; right
24 now only the local or ssh/scp backend is written. Because duplicity
25 uses librsync, the incremental archives are space efficient and only
26 record the parts of files that have changed since the last backup.
27 Currently duplicity supports deleted files, full unix permissions,
28 directories, symbolic links, fifos, etc., but not hard links.
37 rm -rf $RPM_BUILD_ROOT
38 python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
41 rm -rf $RPM_BUILD_ROOT
44 %defattr(644,root,root,755)
46 %attr(755,root,root) %{_bindir}/*
48 %dir %{py_sitedir}/duplicity
49 %{py_sitedir}/duplicity/*.py[co]
50 %{py_sitedir}/duplicity/*.so