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

    automatic change: use py_build/py_install macros

 python-markupsafe.spec | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/python-markupsafe.spec b/python-markupsafe.spec
index 4ff432f..e27bfc7 100644
--- a/python-markupsafe.spec
+++ b/python-markupsafe.spec
@@ -67,18 +67,14 @@ cp -a py2 py3
 %if %{with python2}
 cd py3
 # CFLAGS is only for arch packages - remove on noarch packages
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python} setup.py build
+%py_build
 %{?with_tests:%{__python} setup.py test}
 cd ..
 %endif
 
 %if %{with python3}
 cd py3
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python3} setup.py build
+%py3_build
 %{?with_tests:%{__python3} setup.py test}
 cd ..
 %endif
@@ -87,9 +83,7 @@ cd ..
 rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 cd py2
-%{__python} setup.py install \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py_install
 
 # C code errantly gets installed
 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/markupsafe/_speedups.c
@@ -101,9 +95,7 @@ cd ..
 
 %if %{with python3}
 cd py3
-%{__python3} setup.py install \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py3_install
 
 
 # C code errantly gets installed
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-markupsafe.git/commitdiff/e2092c77cc9ca3b8867fedc49bacd7cdae8a5d1a

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

Reply via email to