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

index 55980a025e7cc449f168d85baa9eca0c26f620e3..2c96e8bdcbaf603d762a069d80994a1dcb405aed 100644 (file)
@@ -70,17 +70,17 @@ rm */*/*py2.5.egg
 
 %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
 
@@ -89,9 +89,7 @@ rm $RPM_BUILD_ROOT%{py3_sitescriptdir}/logilab/__init__.py
 %endif
 
 %if %{with python2}
-%{__python} setup.py install \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py_install
 
 %py_postclean
 %endif
This page took 0.151034 seconds and 4 git commands to generate.