~mwilck/duplicity/duplicity

« back to all changes in this revision

Viewing changes to dist/duplicity.spec.template

  • Committer: Aaron A Whitehouse
  • Date: 2016-07-02 17:12:58 UTC
  • mfrom: (1111 duplicity-src8)
  • mto: This revision was merged to the branch mainline in revision 1113.
  • Revision ID: lists@whitehouse.kiwi.nz-20160702171258-xhnf5v5g542fcfhq
Merge with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
%define PYTHON_NAME %((rpm -q --quiet python2 && echo python2) || echo python)
2
 
 
3
 
Version: $version
4
 
Summary: Untrusted/encrypted backup using rsync algorithm
5
 
Name: duplicity
6
 
Release: 0.fdr.6
7
 
Epoch: 0
8
 
URL: http://www.nongnu.org/duplicity/
9
 
Source: http://savannah.nongnu.org/download/duplicity/%{name}-%{version}.tar.gz
10
 
License: GPL
11
 
Group: Applications/Archiving
12
 
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
 
requires: librsync >= 0.9.6, %{PYTHON_NAME} >= 2.6, gnupg >= 1.0.6
14
 
BuildPrereq: %{PYTHON_NAME}-devel >= 2.6, librsync-devel >= 0.9.6
15
 
 
16
 
%description
17
 
Duplicity incrementally backs up files and directory by encrypting
18
 
tar-format volumes with GnuPG and uploading them to a remote (or
19
 
local) file server.  In theory many remote backends are possible;
20
 
right now local, ssh/scp, ftp, and rsync backends are written.
21
 
Because duplicity uses librsync, the incremental archives are space
22
 
efficient and only record the parts of files that have changed since
23
 
the last backup.  Currently duplicity supports deleted files, full
24
 
unix permissions, directories, symbolic links, fifos, etc., but not
25
 
hard links.
26
 
 
27
 
%prep
28
 
%setup -q
29
 
 
30
 
%build
31
 
%{PYTHON_NAME} setup.py build
32
 
 
33
 
%install
34
 
%{PYTHON_NAME} setup.py install --prefix=$RPM_BUILD_ROOT/usr
35
 
%find_lang %{name}
36
 
 
37
 
%clean
38
 
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
39
 
 
40
 
%files -f %{name}.lang
41
 
%defattr(-,root,root)
42
 
%{_bindir}/rdiffdir
43
 
%{_bindir}/duplicity
44
 
%{_mandir}/man1/*
45
 
%{_libdir}/
46
 
%doc CHANGELOG COPYING README
47
 
 
48
 
%changelog
49
 
* Fri Nov 25 2011 Kenneth Loafman <kenneth@loafman.com>
50
 
- Upgrade to Python 2.4 minimal
51
 
* Sat Aug 09 2003 Ben Escoto <bescoto@stanford.edu>
52
 
- Repackaging for Fedora
53
 
- autodetect python version
54
 
- require librsync >=0.9.6
55
 
* Sun Aug 30 2002 Ben Escoto <bescoto@stanford.edu>
56
 
- Initial RPM