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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:42:12 CET 2015


commit 7c91f9b5eae8e6b5e353f650e0d2a022b5ba7b8c
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sat Nov 28 18:06:43 2015 +0100

    automatic change: use py_build/py_install macros

 python-remoto.spec | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/python-remoto.spec b/python-remoto.spec
index 68cc079..4f980c6 100644
--- a/python-remoto.spec
+++ b/python-remoto.spec
@@ -53,11 +53,11 @@ the remote end.
 %build
 export REMOTO_NO_VENDOR=1
 %if %{with python2}
-%{__python} setup.py build --build-base build-2
+%py_build
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build --build-base build-3
+%py3_build
 %endif
 
 %install
@@ -65,21 +65,13 @@ rm -rf $RPM_BUILD_ROOT
 
 export REMOTO_NO_VENDOR=1
 %if %{with python2}
-%{__python} setup.py \
-	build --build-base build-2 \
-	install --skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 # no %%py_postclean !
 # remoto needs the source code to run it on the target
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-	build --build-base build-3 \
-	install --skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py3_install
 %endif
 
 %clean
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-remoto.git/commitdiff/7c91f9b5eae8e6b5e353f650e0d2a022b5ba7b8c



More information about the pld-cvs-commit mailing list