[packages/python-stevedore] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:45:44 CET 2015
commit 87ab386f1982da89b09c26e616ff7186d92ea62b
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:06:44 2015 +0100
automatic change: use py_build/py_install macros
python-stevedore.spec | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/python-stevedore.spec b/python-stevedore.spec
index 92beb99..0c13bcb 100644
--- a/python-stevedore.spec
+++ b/python-stevedore.spec
@@ -59,7 +59,7 @@ Manage dynamic plugins for Python applications
%build
%if %{with python2}
-%{__python} setup.py build --build-base build-2
+%py_build
%if %{with tests}
PYTHONPATH=. nosetests-%{py_ver}
@@ -67,7 +67,7 @@ PYTHONPATH=. nosetests-%{py_ver}
%endif
%if %{with python3}
-%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%py3_build %{?with_tests:test}
%if %{with tests}
PYTHONPATH=. nosetests-%{py3_ver}
@@ -78,11 +78,7 @@ PYTHONPATH=. nosetests-%{py3_ver}
rm -rf $RPM_BUILD_ROOT
%if %{with python2}
-%{__python} setup.py \
- build --build-base build-2 \
- install --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py_install
%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/stevedore/tests
%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/stevedore/example
@@ -91,11 +87,7 @@ rm -rf $RPM_BUILD_ROOT
%endif
%if %{with python3}
-%{__python3} setup.py \
- build --build-base build-3 \
- install --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py3_install
%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/stevedore/tests
%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/stevedore/example
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-stevedore.git/commitdiff/87ab386f1982da89b09c26e616ff7186d92ea62b
More information about the pld-cvs-commit
mailing list