]> git.pld-linux.org Git - packages/file.git/commitdiff
automatic change: use py_build/py_install macros
authorJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Nov 2015 18:20:07 +0000 (19:20 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Nov 2015 18:20:07 +0000 (19:20 +0100)
file.spec

index da6c18d2e7525f1c1267e627e14c22013e20032c..8ad80e8befd3f8609bbb0c4e3bcfbab4b6118872 100644 (file)
--- a/file.spec
+++ b/file.spec
@@ -299,12 +299,12 @@ cp -a python py3
 
 %if %{with python2}
 cd python
-%{__python} setup.py build
+%py_build
 cd ..
 %endif
 %if %{with python3}
 cd py3
-%{__python3} setup.py build
+%py3_build
 cd ..
 %endif
 
@@ -325,19 +325,14 @@ ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libmagic.so.*.*.*) \
 
 %if %{with python2}
 cd python
-%{__python} setup.py install \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py_install
 cd ..
 %py_postclean
 %endif
 
 %if %{with python3}
 cd py3
-%{__python3} setup.py install \
-       --optimize=2 \
-       --skip-build \
-       --root=$RPM_BUILD_ROOT
+%py3_install
 cd ..
 %endif
 
This page took 0.119203 seconds and 4 git commands to generate.