commit 604b5d0598ca1441a40aa6bc4df86292f996083c
Author: Jan RÄ™korajski <[email protected]>
Date:   Sat Apr 23 22:13:25 2016 +0200

    - use py_build/install macros
    - rel 2

 obnam.spec | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/obnam.spec b/obnam.spec
index cdcec29..deeb059 100644
--- a/obnam.spec
+++ b/obnam.spec
@@ -6,7 +6,7 @@
 Summary:       An easy, secure backup program
 Name:          obnam
 Version:       1.17
-Release:       1
+Release:       2
 License:       GPL v3+
 Group:         Networking/Utilities
 Source0:       
http://code.liw.fi/debian/pool/main/o/obnam/%{name}_%{version}.orig.tar.xz
@@ -23,7 +23,7 @@ BuildRequires:        attr
 BuildRequires: python-PyYAML
 BuildRequires: python-cliapp
 BuildRequires: python-larch
-#BuildRequires:        python-paramiko
+BuildRequires: python-paramiko
 BuildRequires: python-tracing
 #BuildRequires:        python-ttystatus
 Requires:      attr
@@ -76,16 +76,11 @@ done
 ./check --unit-tests
 %endif
 
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python} setup.py build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
-       --skip-build \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py_install
 
 # internal tests
 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/obnamlib/*_tests.py*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/obnam.git/commitdiff/604b5d0598ca1441a40aa6bc4df86292f996083c

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to