[packages/python-celery] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:17:25 CET 2015
commit ac69e4fefb98ec44d4889bc071cb72a064dba03d
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-celery.spec | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/python-celery.spec b/python-celery.spec
index e6d23f8..89d7411 100644
--- a/python-celery.spec
+++ b/python-celery.spec
@@ -119,7 +119,7 @@ cp -a %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} docs
%build
%if %{with python2}
-%{__python} setup.py build --build-base build-2 %{?with_tests:test}
+%py_build %{?with_tests:test}
%if %{with doc}
cd docs
@@ -129,27 +129,19 @@ cd ..
%endif
%endif
%if %{with python3}
-%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%py3_build %{?with_tests:test}
%endif
%install
rm -rf $RPM_BUILD_ROOT
install_python2() {
- %{__python} setup.py \
- build --build-base build-2 \
- install --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+ %py_install
%py_postclean
}
install_python3() {
- %{__python3} setup.py \
- build --build-base build-3 \
- install --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+ %py3_install
}
# install the right executables last
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-celery.git/commitdiff/ac69e4fefb98ec44d4889bc071cb72a064dba03d
More information about the pld-cvs-commit
mailing list