From d7936ca5c6d91eec1449e5af7761a05b0c5322e3aa8d541b4eb33d9e52d943f3 Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 30 Apr 2012 13:38:39 +0000 Subject: [PATCH] Accepting request 116055 from devel:languages:python3 Fix building python 3 package on openSUSE 11.4 x86_64 (forwarded request 116054 from TheBlackCat) OBS-URL: https://build.opensuse.org/request/show/116055 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=15 --- python-Jinja2.changes | 5 +++++ python3-Jinja2.changes | 5 +++++ python3-Jinja2.spec | 9 +++++++-- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/python-Jinja2.changes b/python-Jinja2.changes index 67fae9e..df62b07 100644 --- a/python-Jinja2.changes +++ b/python-Jinja2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 30 13:06:58 UTC 2012 - toddrme2178@gmail.com + +- Fix building python 3 package on openSUSE 11.4 x86_64 + ------------------------------------------------------------------- Thu Apr 26 14:08:18 UTC 2012 - toddrme2178@gmail.com diff --git a/python3-Jinja2.changes b/python3-Jinja2.changes index 4cd832a..102afd1 100644 --- a/python3-Jinja2.changes +++ b/python3-Jinja2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 30 13:06:58 UTC 2012 - toddrme2178@gmail.com + +- Fix building python 3 package on openSUSE 11.4 x86_64 + ------------------------------------------------------------------- Thu Apr 26 14:08:18 UTC 2012 - toddrme2178@gmail.com diff --git a/python3-Jinja2.spec b/python3-Jinja2.spec index 2c3be74..084193b 100644 --- a/python3-Jinja2.spec +++ b/python3-Jinja2.spec @@ -30,12 +30,17 @@ BuildRequires: python3-2to3 BuildRequires: python3-devel BuildRequires: python3-distribute BuildRequires: vim -Requires: python3 >= %{py3_ver} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch %if 0%{?suse_version} <= 1140 %{!?python3_sitelib: %global python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?py3_ver: %global py3_ver %(python3 -c "import sys; version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); print(version)" 2>/dev/null || echo PYTHON-NOT-FOUND)} +%ifarch x86_64 +# to allow ownership of noarch python directories +BuildRequires: python3-32bit %endif +%endif +BuildArch: noarch +Requires: python3 >= %{py3_ver} %description Jinja2 is a template engine written in pure Python. It provides a Django