[packages/python-WebError] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:13:44 CET 2015
commit c153abc62aea22ab556e92cb6be112bb95ee8ec3
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-WebError.spec | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/python-WebError.spec b/python-WebError.spec
index f62016d..37edd19 100644
--- a/python-WebError.spec
+++ b/python-WebError.spec
@@ -29,14 +29,11 @@ Web Error handling and exception catching.
%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_sitedir}
%py_comp $RPM_BUILD_ROOT%{py_sitedir}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-WebError.git/commitdiff/c153abc62aea22ab556e92cb6be112bb95ee8ec3
More information about the pld-cvs-commit
mailing list