]> git.pld-linux.org Git - packages/python-logilab-common.git/blobdiff - python-logilab-common.spec
automatic change: use py_build/py_install macros
[packages/python-logilab-common.git] / python-logilab-common.spec
index 33513432472738b2821c66e6946f9ce025eed92b..ae8bcecf68fb9f96e2f030045e5fa1baaf523831 100644 (file)
@@ -66,17 +66,17 @@ projekty tworzone przez Logilab.
 
 %build
 %if %{with python2}
-%{__python} setup.py build
+%py_build
 %endif
 %if %{with python3}
-%{__python3} setup.py build --build-base=build3
+%py3_build --build-base=build3
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python3}
-%{__python3} setup.py build --build-base=build3 install \
+%py3_build --build-base=build3 install \
        --optimize=2 \
        --root=$RPM_BUILD_ROOT
 
@@ -88,9 +88,7 @@ mv $RPM_BUILD_ROOT%{_bindir}/pytest{,3}
 %endif
 
 %if %{with python2}
-%{__python} setup.py install \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py_install
 
 # because some logilab's software depend on this package
 # and some not, so they all provide the __init__.py and we
This page took 0.110926 seconds and 4 git commands to generate.