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

    automatic change: use py_build/py_install macros

 python-logilab-common.spec | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/python-logilab-common.spec b/python-logilab-common.spec
index 3351343..ae8bcec 100644
--- a/python-logilab-common.spec
+++ b/python-logilab-common.spec
@@ -66,17 +66,17 @@ projekty tworzone przez Logilab.
 
 %build
 %if %{with python2}
-%{__python} setup.py build
+%py_build
 %endif
 %if %{with python3}
-%{__python3} setup.py build --build-base=build3
+%py3_build --build-base=build3
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python3}
-%{__python3} setup.py build --build-base=build3 install \
+%py3_build --build-base=build3 install \
        --optimize=2 \
        --root=$RPM_BUILD_ROOT
 
@@ -88,9 +88,7 @@ mv $RPM_BUILD_ROOT%{_bindir}/pytest{,3}
 %endif
 
 %if %{with python2}
-%{__python} setup.py install \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py_install
 
 # because some logilab's software depend on this package
 # and some not, so they all provide the __init__.py and we
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-logilab-common.git/commitdiff/74c029bc1ed881934ac4d9becd1095fd27576e4e

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

Reply via email to