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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:38:24 CET 2015


commit 9b01fac758ae793f3588723ce6d5102c48898ccc
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-pyicu.spec | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/python-pyicu.spec b/python-pyicu.spec
index 693d971..5d07265 100644
--- a/python-pyicu.spec
+++ b/python-pyicu.spec
@@ -59,16 +59,12 @@ Ten pakiet zawiera moduł Pythona 3.
 
 %build
 %if %{with python2}
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python} setup.py build \
+%py_build \
 	--build-base build-2
 %endif
 
 %if %{with python3}
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python3} setup.py build \
+%py3_build \
 	--build-base build-3
 %endif
 
@@ -76,7 +72,7 @@ CFLAGS="%{rpmcflags}" \
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
-%{__python} setup.py build \
+%py_build \
 		--build-base build-2 \
 	install \
 		--skip-build \
@@ -87,7 +83,7 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build \
+%py3_build \
 		--build-base build-3 \
 	install \
 		--skip-build \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pyicu.git/commitdiff/9b01fac758ae793f3588723ce6d5102c48898ccc



More information about the pld-cvs-commit mailing list