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

    automatic change: use py_build/py_install macros

 python-pycxx.spec | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/python-pycxx.spec b/python-pycxx.spec
index 9e12e73..8c8edd5 100644
--- a/python-pycxx.spec
+++ b/python-pycxx.spec
@@ -66,21 +66,18 @@ files for Python 3. There is no non-devel package needed.
 
 %build
 %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
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
-%{__python} setup.py \
-       build --build-base build-2 \
-       install --skip-build \
-       --optimize=2 \
+%py_install \
        --install-data=%{_datadir}/%{name} \
        --root=$RPM_BUILD_ROOT
 
@@ -88,10 +85,7 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-       build --build-base build-3 \
-       install --skip-build \
-       --optimize=2 \
+%py3_install \
        --install-data=%{_datadir}/python3-%{modname} \
        --root=$RPM_BUILD_ROOT
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pycxx.git/commitdiff/11445ce55d6c60b849ea5bdcda12c561cd1e0766

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

Reply via email to