]> git.pld-linux.org Git - packages/python-psycopg2.git/commitdiff
automatic change: use py_build/py_install macros
authorJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Nov 2015 17:06:43 +0000 (18:06 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Nov 2015 17:06:43 +0000 (18:06 +0100)
python-psycopg2.spec

index a737d2a56c89b359bb48583388ca7e07f83be860..2275f1e896421717a78e0cdb4ed6afa0baf675ff 100644 (file)
@@ -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
This page took 0.117207 seconds and 4 git commands to generate.