[packages/python-straight-plugin] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:45:51 CET 2015
commit a1344a7d31170607e79cd98c338d2c9c741b8503
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:06:44 2015 +0100
automatic change: use py_build/py_install macros
python-straight-plugin.spec | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/python-straight-plugin.spec b/python-straight-plugin.spec
index 18deb60..44dd2d8 100644
--- a/python-straight-plugin.spec
+++ b/python-straight-plugin.spec
@@ -67,31 +67,25 @@ cp -a py2 py3
%build
cd py2
-%{__python} setup.py build
+%py_build
cd -
%if %{with python3}
cd py3
-%{__python3} setup.py build
+%py3_build
cd -
%endif
%install
rm -rf $RPM_BUILD_ROOT
cd py2
-%{__python} setup.py install \
- --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py_install
cd -
%py_postclean
%if %{with python3}
cd py3
-%{__python3} setup.py install \
- --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py3_install
cd -
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-straight-plugin.git/commitdiff/a1344a7d31170607e79cd98c338d2c9c741b8503
More information about the pld-cvs-commit
mailing list