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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:41:29 CET 2015


commit 14cc9bba4877c0a636511419063dacb74f33cce9
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-pyxsd.spec | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/python-pyxsd.spec b/python-pyxsd.spec
index 7969f62..c21ea85 100644
--- a/python-pyxsd.spec
+++ b/python-pyxsd.spec
@@ -30,14 +30,11 @@ and transformation of xml files.
 
 %build
 # CFLAGS is only for arch packages - remove on noarch packages
-export CFLAGS="%{rpmcflags}"
-%{__python} setup.py build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 
 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pyxsd.git/commitdiff/14cc9bba4877c0a636511419063dacb74f33cce9



More information about the pld-cvs-commit mailing list