]> git.pld-linux.org Git - packages/python-distribute.git/commitdiff
use py_build/py_install auto/th/python-distribute-0.7.3-6
authorJacek Konieczny <jajcus@jajcus.net>
Thu, 31 Dec 2015 20:02:08 +0000 (21:02 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Thu, 31 Dec 2015 20:02:08 +0000 (21:02 +0100)
Release: 6

python-distribute.spec

index b5edd03e6ce9b0a125eb03b0cb64f1c25861978f..e3c24eec4df72e5d7417bf4d02af24d9c823197e 100644 (file)
@@ -8,7 +8,7 @@ Summary:        distribute compatibility wrapper for setuptools
 Summary(pl.UTF-8):     Nakładka na python-setuptools zastępujące distribute
 Name:          python-distribute
 Version:       0.7.3
-Release:       5
+Release:       6
 License:       PSF or ZPL
 Group:         Development/Languages/Python
 Source0:       https://pypi.python.org/packages/source/d/distribute/distribute-%{version}.zip
@@ -23,7 +23,7 @@ BuildRequires:        python3-setuptools > 1:7.0
 BuildConflicts:        python3-distribute < 0.7
 %endif
 BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.523
+BuildRequires: rpmbuild(macros) >= 1.713
 Requires:      python-setuptools > 1:7.0
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -55,33 +55,22 @@ jest tylko nakładką na współczesne Setuptools.
 
 %build
 %if %{with python2}
-%{__python} setup.py \
-       build -b build-2
+%py_build
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-       build -b build-3
+%py3_build
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
-%{__python} -- setup.py \
-       build -b build-2 \
-       install \
-       --root=$RPM_BUILD_ROOT \
-       --optimize=2
-%py_postclean
+%py_install
 %endif
 
 %if %{with python3}
-%{__python3} -- setup.py \
-       build -b build-3 \
-       install \
-       --root=$RPM_BUILD_ROOT \
-       --optimize=2
+%py3_install
 %endif
 
 %clean
This page took 0.121299 seconds and 4 git commands to generate.