commit 8f0402a719ab9109067cec1a71514d4e54bf2b80
Author: Jacek Konieczny <[email protected]>
Date: Sat Nov 28 18:06:43 2015 +0100
automatic change: use py_build/py_install macros
python-mysqlclient.spec | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/python-mysqlclient.spec b/python-mysqlclient.spec
index c671942..2128c05 100644
--- a/python-mysqlclient.spec
+++ b/python-mysqlclient.spec
@@ -65,28 +65,24 @@ MySQLdb to pythonowy interfejs do MySQL-a.
%build
%if %{with python2}
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python} setup.py build --build-base build-2 %{?with_tests:test}
+%py_build %{?with_tests:test}
%endif
%if %{with python3}
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%py3_build %{?with_tests:test}
%endif
%install
rm -rf $RPM_BUILD_ROOT
%if %{with python2}
-%{__python} setup.py install \
+%py_install \
--optimize 2 \
--root=$RPM_BUILD_ROOT
%endif
%if %{with python3}
-%{__python3} setup.py install \
+%py3_install \
--optimize 2 \
--root=$RPM_BUILD_ROOT
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-mysqlclient.git/commitdiff/8f0402a719ab9109067cec1a71514d4e54bf2b80
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit