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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:37:14 CET 2015


commit 11445ce55d6c60b849ea5bdcda12c561cd1e0766
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-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



More information about the pld-cvs-commit mailing list