[projects/template-specs] py2/py3 br update
glen
glen at pld-linux.org
Wed Jan 15 17:48:38 CET 2014
commit e3bbdd55de80e2852466b79c6ca7561dd90674ec
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Jan 15 18:47:16 2014 +0200
py2/py3 br update
python.spec | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/python.spec b/python.spec
index 575c9c8..4892047 100644
--- a/python.spec
+++ b/python.spec
@@ -17,14 +17,15 @@ Source0: %{name}-%{version}.tar.gz
# Source0-md5: -
URL: -
# remove BR: python-devel for 'noarch' packages.
-BuildRequires: python-devel
-BuildRequires: python-distribute
BuildRequires: rpm-pythonprov
# if py_postclean is used
BuildRequires: rpmbuild(macros) >= 1.219
# when using /usr/bin/env or other in-place substitutions
#BuildRequires: sed >= 4.0
-# when python3 present
+%if %{with python2}
+BuildRequires: python-devel
+BuildRequires: python-distribute
+%endif
%if %{with python3}
BuildRequires: python3-devel
BuildRequires: python3-distribute
@@ -93,8 +94,8 @@ rm -rf $RPM_BUILD_ROOT
%{__python} setup.py \
build --build-base build-2 \
install --skip-build \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
%py_postclean
%endif
@@ -103,8 +104,8 @@ rm -rf $RPM_BUILD_ROOT
%{__python3} setup.py \
build --build-base build-3 \
install --skip-build \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
%endif
# in case there are examples provided
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/4db70b3117b685e394776624428725a78bcd2bdc
More information about the pld-cvs-commit
mailing list