]> git.pld-linux.org Git - packages/python-pycparser.git/commitdiff
- use rpm python macros auto/th/python-pycparser-2.14-3
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 7 May 2016 18:54:24 +0000 (20:54 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 7 May 2016 18:54:24 +0000 (20:54 +0200)
- rel 3

python-pycparser.spec

index e5e05c8083c7fb0f5ae3b99f02fcb438a9ccc9e3..15f6b16aee5ecc4977dbb6fa424f6995287498ee 100644 (file)
@@ -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
This page took 0.120144 seconds and 4 git commands to generate.