[packages/python-bottle] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:16:46 CET 2015
commit 1dac93d30867222d5e7c2aada48c080635e42f36
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:06:42 2015 +0100
automatic change: use py_build/py_install macros
python-bottle.spec | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/python-bottle.spec b/python-bottle.spec
index c4052e0..01818cb 100644
--- a/python-bottle.spec
+++ b/python-bottle.spec
@@ -71,22 +71,18 @@ standardowej biblioteki Pythona.
%build
%if %{with python2}
-%{__python} setup.py build -b build-2
+%py_build
%endif
%if %{with python3}
-%{__python3} setup.py build -b build-3
+%py3_build
%endif
%install
rm -rf $RPM_BUILD_ROOT
%if %{with python2}
-%{__python} setup.py \
- build -b build-2 \
- install \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py_install
%py_ocomp $RPM_BUILD_ROOT%%{py_sitescriptdir}
%py_comp $RPM_BUILD_ROOT%%{py_sitescriptdir}
@@ -94,11 +90,7 @@ rm -rf $RPM_BUILD_ROOT
%endif
%if %{with python3}
-%{__python3} setup.py \
- build -b build-3 \
- install \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py3_install
%endif
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-bottle.git/commitdiff/1dac93d30867222d5e7c2aada48c080635e42f36
More information about the pld-cvs-commit
mailing list