commit 5a2736835a41c9e5da53c12b612fa5c0dfc35f04
Author: Jacek Konieczny <[email protected]>
Date:   Sat Nov 28 18:06:43 2015 +0100

    automatic change: use py_build/py_install macros

 python-nagiosplugin.spec | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/python-nagiosplugin.spec b/python-nagiosplugin.spec
index 7a6ef5c..51492c3 100644
--- a/python-nagiosplugin.spec
+++ b/python-nagiosplugin.spec
@@ -78,11 +78,11 @@ cp -p src/nagiosplugin/examples/check_*.py examples
 
 %build
 %if %{with python2}
-%{__python} setup.py build --build-base build-2 %{?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}
@@ -95,11 +95,7 @@ rm -rf _build/html/_sources
 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}/%{module}/examples
 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/tests
@@ -110,11 +106,7 @@ cp -a examples/* 
$RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version}
 %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}/%{module}/examples
 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/%{module}/tests
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-nagiosplugin.git/commitdiff/5a2736835a41c9e5da53c12b612fa5c0dfc35f04

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to