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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:19:17 CET 2015


commit 7e201ff2040286a0295bffe5338ddbbe6e472255
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-ctypes.spec | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/python-ctypes.spec b/python-ctypes.spec
index 18a85f6..44b32c5 100644
--- a/python-ctypes.spec
+++ b/python-ctypes.spec
@@ -38,16 +38,12 @@ czystym Pythonie.
 %setup -q -n %{module}-%{version}
 
 %build
-CFLAGS="%{rpmcflags}"
-export CFLAGS
-python setup.py build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-python setup.py install \
-	--root=$RPM_BUILD_ROOT \
-	--optimize=2
+%py_install
 
 %py_postclean
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-ctypes.git/commitdiff/7e201ff2040286a0295bffe5338ddbbe6e472255



More information about the pld-cvs-commit mailing list