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

    automatic change: use py_build/py_install macros

 python-silvercity.spec | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/python-silvercity.spec b/python-silvercity.spec
index c54f374..ed96643 100644
--- a/python-silvercity.spec
+++ b/python-silvercity.spec
@@ -27,14 +27,11 @@ language bindings for Python.
 %{__sed} -i -e "1i#!%{_bindir}/env python" PySilverCity/Scripts/*.py
 
 %build
-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
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 mv $RPM_BUILD_ROOT{%{_bindir}/*.py,%{_examplesdir}/%{name}-%{version}}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-silvercity.git/commitdiff/0b509369574a68db2371106e55ac4166fc49d763

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

Reply via email to