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

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


commit a86fcd3facb9859c715166d6aa07e5d45d7aad55
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-PyXML.spec | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/python-PyXML.spec b/python-PyXML.spec
index 98128b1..a582b1d 100644
--- a/python-PyXML.spec
+++ b/python-PyXML.spec
@@ -76,18 +76,14 @@ Przykłady do Python/XML.
 %patch1 -p1
 
 %build
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python} setup.py build \
+%py_build \
 	--with-libexpat=%{_prefix} \
 	--ldflags=-lexpat
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-%{__python} setup.py install \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 
 %py_postclean
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-PyXML.git/commitdiff/a86fcd3facb9859c715166d6aa07e5d45d7aad55



More information about the pld-cvs-commit mailing list