]> git.pld-linux.org Git - packages/python-mysqlclient.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-mysqlclient.spec

index c6719426979f97b55aadb252bc886723d7ff8078..2128c054ae41c4d2fce0331fdece5950527ad770 100644 (file)
@@ -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
This page took 0.07669 seconds and 4 git commands to generate.