[packages/python-cssselect] semi-automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:03:28 CET 2015
commit 58c066cc2c38d3a6f04fa2c98f192e7f83ec6577
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:02:19 2015 +0100
semi-automatic change: use py_build/py_install macros
python-cssselect.spec | 21 ++++-----------------
1 file changed, 4 insertions(+), 17 deletions(-)
---
diff --git a/python-cssselect.spec b/python-cssselect.spec
index 28d59df..544bee9 100644
--- a/python-cssselect.spec
+++ b/python-cssselect.spec
@@ -73,39 +73,26 @@ jako osobny projekt.
%prep
%setup -q -n %{module}-%{version}
-# setup copy of source in py3 dir
-set -- *
-install -d py3
-cp -a "$@" py3
-
%build
%if %{with python2}
-%{__python} setup.py build --build-base build-2 %{?with_tests:test}
+%py_build %{?with_tests:test}
%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
%if %{with python2}
-%{__python} setup.py \
- build --build-base build-2 \
- install --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py_install
%py_postclean
%endif
%if %{with python3}
-%{__python3} setup.py \
- build --build-base build-3 \
- install --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py3_install
%endif
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-cssselect.git/commitdiff/58c066cc2c38d3a6f04fa2c98f192e7f83ec6577
More information about the pld-cvs-commit
mailing list