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

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


commit 3c9cadf5dbf853a9cffe7b46863eeb2290c382cc
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-WebOb.spec | 23 ++++-------------------
 1 file changed, 4 insertions(+), 19 deletions(-)
---
diff --git a/python-WebOb.spec b/python-WebOb.spec
index b9355e2..87bdb43 100644
--- a/python-WebOb.spec
+++ b/python-WebOb.spec
@@ -43,36 +43,21 @@ environment.
 %prep
 %setup -q -n %{module}-%{version}
 
-%if %{with python3}
-rm -rf build-3
-set -- *
-install -d build-3
-cp -a "$@" build-3
-%endif
-
 %build
-%{__python} setup.py build
+%py_build
 
 %if %{with python3}
-cd build-3
-%{__python3} setup.py build
+%py3_build
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
-	--skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 
 %py_postclean
 
 %if %{with python3}
-cd build-3
-%{__python3} setup.py install \
-	--skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py3_install
 %endif
 
 %clean
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-WebOb.git/commitdiff/3c9cadf5dbf853a9cffe7b46863eeb2290c382cc



More information about the pld-cvs-commit mailing list