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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:35:48 CET 2015


commit f1eff4ca9d51cc8e4cb5db685107247111db60d0
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-pyPgSQL.spec | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/python-pyPgSQL.spec b/python-pyPgSQL.spec
index 58c2707..5800f74 100644
--- a/python-pyPgSQL.spec
+++ b/python-pyPgSQL.spec
@@ -40,14 +40,12 @@ NUMERIC, MONEY, BOOL, ARRAYS itp. Ten moduł jest napisany w Pythonie.
 %setup -q -n %{module}-%{version}
 
 %build
-%{__python} setup.py build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__python} setup.py install \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 
 find $RPM_BUILD_ROOT%{py_sitedir} -type f -name "*.py" | xargs rm
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pyPgSQL.git/commitdiff/f1eff4ca9d51cc8e4cb5db685107247111db60d0



More information about the pld-cvs-commit mailing list