]> git.pld-linux.org Git - packages/python-decorator.git/commitdiff
- use rpm python macros auto/th/python-decorator-3.4.0-7
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 7 May 2016 19:55:12 +0000 (21:55 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 7 May 2016 19:55:12 +0000 (21:55 +0200)
- rel 7

python-decorator.spec

index 4b0e504c0beccf3793a1807d104f02e4a9a7fe13..539dd03a8ace3469a1c925d2d7b811e932ddd216 100644 (file)
@@ -8,7 +8,7 @@ Summary:        Bunch of nice decorators for Python 2
 Summary(pl.UTF-8):     Zbiór ładnych dekoratorów dla Pythona 2
 Name:          python-%{module}
 Version:       3.4.0
-Release:       6
+Release:       7
 License:       BSD
 Group:         Libraries/Python
 Source0:       https://pypi.python.org/packages/source/d/decorator/%{module}-%{version}.tar.gz
@@ -53,35 +53,23 @@ redirecting_stdout, locked...
 
 %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 \
-               --optimize=2 \
-               --root=$RPM_BUILD_ROOT
+%py_install
 
 %py_postclean
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-       build \
-               --build-base build-3 \
-       install \
-               --optimize=2 \
-               --root=$RPM_BUILD_ROOT
+%py3_install
 %endif
 
 %clean
This page took 0.061928 seconds and 4 git commands to generate.