[packages/python-sqlalchemy] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:45:24 CET 2015
commit 96131776e430933b1c4ed3cae73cd013002522ad
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:06:44 2015 +0100
automatic change: use py_build/py_install macros
python-sqlalchemy.spec | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/python-sqlalchemy.spec b/python-sqlalchemy.spec
index 6f86653..657efe4 100644
--- a/python-sqlalchemy.spec
+++ b/python-sqlalchemy.spec
@@ -85,19 +85,18 @@ Wersja dla Pythona 3.x.
%if %{with python2}
CC="%{__cc}" \
CFLAGS="%{rpmcppflags} %{rpmcflags}" \
-%{__python} setup.py build -b build-2
+%py_build
%endif
%if %{with python3}
CC="%{__cc}" \
CFLAGS="%{rpmcppflags} %{rpmcflags}" \
-%{__python3} setup.py build -b build-3
+%py3_build
%endif
%install
rm -rf $RPM_BUILD_ROOT
%if %{with python2}
-%{__python} setup.py build -b build-2 \
- install \
+%py_install \
--single-version-externally-managed \
--optimize=2 \
--root=$RPM_BUILD_ROOT
@@ -106,10 +105,7 @@ rm -rf $RPM_BUILD_ROOT
%endif
%if %{with python3}
-%{__python3} setup.py build -b build-3 \
- install \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py3_install
%endif
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-sqlalchemy.git/commitdiff/96131776e430933b1c4ed3cae73cd013002522ad
More information about the pld-cvs-commit
mailing list