[packages/python-distribute] use py_build/py_install
jajcus
jajcus at pld-linux.org
Thu Dec 31 21:03:54 CET 2015
commit e839320d8599c788abd56aad3029788390988c5d
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Thu Dec 31 21:02:08 2015 +0100
use py_build/py_install
Release: 6
python-distribute.spec | 23 ++++++-----------------
1 file changed, 6 insertions(+), 17 deletions(-)
---
diff --git a/python-distribute.spec b/python-distribute.spec
index b5edd03..e3c24ee 100644
--- a/python-distribute.spec
+++ b/python-distribute.spec
@@ -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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-distribute.git/commitdiff/e839320d8599c788abd56aad3029788390988c5d
More information about the pld-cvs-commit
mailing list