[packages/python-httplib2] semi-automatic change: use py_build/py_install macros

jajcus jajcus at pld-linux.org
Sat Nov 28 18:03:38 CET 2015


commit af4b3757230750701ea11de8a100192a32338f04
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sat Nov 28 18:02:19 2015 +0100

    semi-automatic change: use py_build/py_install macros

 python-httplib2.spec | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)
---
diff --git a/python-httplib2.spec b/python-httplib2.spec
index 96f7755..7b40ed9 100644
--- a/python-httplib2.spec
+++ b/python-httplib2.spec
@@ -84,26 +84,19 @@ cech pomijanych przez inne biblioteki. Obsługuje:
 %prep
 %setup -q -n httplib2-%{version}
 
+%build
+%py_build
+
 %if %{with python3}
-rm -rf build-3
-set -- *
-install -d build-3
-cp -a "$@" build-3
-find build-3 -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
+%py3_build
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
-	--root=$RPM_BUILD_ROOT \
-	--optimize=2
+%py_install
 
 %if %{with python3}
-cd build-3
-%{__python3} setup.py install \
-	--root=$RPM_BUILD_ROOT \
-	--optimize=2
-cd ..
+%py3_install
 %endif
 
 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-httplib2.git/commitdiff/af4b3757230750701ea11de8a100192a32338f04



More information about the pld-cvs-commit mailing list