[packages/python-psycopg2] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:35:17 CET 2015
commit 528a4b45c99c896e70551aa0f01b23d3f9a7a0ea
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-psycopg2.spec | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/python-psycopg2.spec b/python-psycopg2.spec
index a737d2a..2275f1e 100644
--- a/python-psycopg2.spec
+++ b/python-psycopg2.spec
@@ -84,25 +84,21 @@ psycopg jest, że w jest pełni zgodny z standardem DBAPI-2.0 i jest
%build
%if %{with python2}
-%{__python} setup.py build
+%py_build
%endif
%if %{with python3}
-%{__python3} setup.py build
+%py3_build
%endif
%install
rm -rf $RPM_BUILD_ROOT
%if %{with python2}
-%{__python} setup.py install \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py_install
%py_postclean
%endif
%if %{with python3}
-%{__python3} setup.py install \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py3_install
%endif
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-psycopg2.git/commitdiff/528a4b45c99c896e70551aa0f01b23d3f9a7a0ea
More information about the pld-cvs-commit
mailing list