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

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


commit 7a81856303a282eceff348d8f97b13bacf241f66
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-locust.spec | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)
---
diff --git a/python-locust.spec b/python-locust.spec
index e318ce2..6d82670 100644
--- a/python-locust.spec
+++ b/python-locust.spec
@@ -75,12 +75,12 @@ Dokumentacja API %{module}.
 
 %build
 %if %{with python2}
-## %{__python} setup.py build --build-base build-2 %{?with_tests:test}
-%{__python} setup.py build %{?with_tests:test}
+## %py_build %{?with_tests:test}
+%py_build %{?with_tests:test}
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%py3_build %{?with_tests:test}
 %endif
 
 %if %{with doc}
@@ -94,21 +94,13 @@ rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
 # 	build --build-base build-2 \
-%{__python} setup.py \
-	build \
-	install --skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 
 %py_postclean
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-	build --build-base build-3 \
-	install --skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py3_install
 %endif
 
 # in case there are examples provided
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-locust.git/commitdiff/7a81856303a282eceff348d8f97b13bacf241f66



More information about the pld-cvs-commit mailing list