]> git.pld-linux.org Git - packages/duplicity.git/blobdiff - duplicity.spec
-up to version 0.7.07.1
[packages/duplicity.git] / duplicity.spec
index 7dadcd5407bc9c150faa84ddb4da3160c1faf449..bdedc88a9420c51ec2c9eb0ae5765133b63db546 100644 (file)
@@ -1,25 +1,27 @@
-%define                mainver 0.6
+%define                mainver 0.7
 Summary:       Untrusted/encrypted backup using rsync algorithm
 Summary(pl.UTF-8):     Wykonywanie szyfrowanych kopii zapasowych przy użyciu algorytmu rsync
 Name:          duplicity
-Version:       %{mainver}.10
+Version:       %{mainver}.07.1
 Release:       1
-License:       GPL
+License:       GPL v2
 Group:         Applications/Archiving
 Source0:       http://code.launchpad.net/duplicity/%{mainver}-series/%{version}/+download/%{name}-%{version}.tar.gz
-# Source0-md5: 8878d3b63fcba1b7233e11c5829b969c
-Patch0:                %{name}-pexpect.patch
-Patch1:                %{name}-backend-search.patch
+# Source0-md5: 4f90bcd93f5e6ac1aa3f4519b28f5b89
+Patch0:                %{name}-backend-search.patch
 URL:           http://www.nongnu.org/duplicity/
+BuildRequires: rpmbuild(macros) >= 1.710
 BuildRequires: librsync-devel >= 0.9.6
-BuildRequires: python-devel >= 2.2.1
+BuildRequires: python-devel >= 1:2.3
 BuildRequires: python-modules
 BuildRequires: rpm-pythonprov
 Requires:      gnupg
-Requires:      python >= 2.2
+Requires:      python >= 1:2.3
 Requires:      python-gnupg >= 0.3.2
+Requires:      python-lockfile
 Requires:      python-modules
 Requires:      python-pexpect >= 2.1
+Suggests:      lftp
 Suggests:      ncftp
 Suggests:      python-boto >= 0.9d
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -49,21 +51,22 @@ nie twarde dowiązania.
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
 
 %build
-python setup.py build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
 
-# Remove *.py files. We don't package them.
-find $RPM_BUILD_ROOT%{py_sitedir}/%{name} -type f -name '*.py' -print0 | xargs -0 rm -f
+%py_install
 
 # Remove %{_datadir}/locale/io/LC_MESSAGES. It's not yet supported.
 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/io
 
+%{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+
+%py_postclean
+
 %find_lang %{name}
 
 %clean
This page took 0.115676 seconds and 4 git commands to generate.