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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:11:25 CET 2015


commit c9228ae5e06af491f50d2ac04df425858fe9a71b
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sat Nov 28 18:06:42 2015 +0100

    automatic change: use py_build/py_install macros

 python-PyYAML.spec | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/python-PyYAML.spec b/python-PyYAML.spec
index c48384f..f0e9751 100644
--- a/python-PyYAML.spec
+++ b/python-PyYAML.spec
@@ -95,19 +95,11 @@ CFLAGS="%{rpmcflags}" \
 %install
 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
 %py_postclean
 %endif
 %if %{with python3}
-%{__python3} setup.py \
-        build --build-base build-3 \
-        install --skip-build \
-        --optimize=2 \
-        --root=$RPM_BUILD_ROOT
+%py3_install
 %endif
 %py_postclean
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-PyYAML.git/commitdiff/c9228ae5e06af491f50d2ac04df425858fe9a71b



More information about the pld-cvs-commit mailing list