[packages/file] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 19:27:02 CET 2015
commit 65e5039cd77ffde589d7a76d08d5b450a2778290
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 19:20:07 2015 +0100
automatic change: use py_build/py_install macros
file.spec | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/file.spec b/file.spec
index da6c18d..8ad80e8 100644
--- 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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/file.git/commitdiff/65e5039cd77ffde589d7a76d08d5b450a2778290
More information about the pld-cvs-commit
mailing list