[packages/python-pycparser] - use rpm python macros - rel 3
baggins
baggins at pld-linux.org
Sat May 7 20:54:42 CEST 2016
commit 84437a10b08b63018c78b04bb3f44099fbec76b1
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat May 7 20:54:24 2016 +0200
- use rpm python macros
- rel 3
python-pycparser.spec | 22 +++++-----------------
1 file changed, 5 insertions(+), 17 deletions(-)
---
diff --git a/python-pycparser.spec b/python-pycparser.spec
index e5e05c8..15f6b16 100644
--- a/python-pycparser.spec
+++ b/python-pycparser.spec
@@ -7,7 +7,7 @@ Summary: C Parser in Python 2
Summary(pl.UTF-8): Parser języka C w Pythonie 2
Name: python-pycparser
Version: 2.14
-Release: 2
+Release: 3
License: BSD
Group: Libraries/Python
#Source0Download: https://pypi.python.org/pypi/pycparser
@@ -67,35 +67,23 @@ Ten pakiet zawiera moduł Pythona 3.
%build
%if %{with python2}
-%py_build \
- --build-base build-2
+%py_build
%endif
%if %{with python3}
-%py3_build \
- --build-base build-3
+%py3_build
%endif
%install
rm -rf $RPM_BUILD_ROOT
%if %{with python2}
-%{__python} setup.py \
- build \
- --build-base build-2 \
- install \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py_install
%py_postclean
%endif
%if %{with python3}
-%{__python3} setup.py \
- build \
- --build-base build-3 \
- install \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py3_install
%endif
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pycparser.git/commitdiff/84437a10b08b63018c78b04bb3f44099fbec76b1
More information about the pld-cvs-commit
mailing list