From b28bff7c3394f47fc62d17df2dee116b17b3b4d1927f20aba469a6b899e7a725 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 25 May 2012 08:35:30 +0000 Subject: [PATCH] Accepting request 122257 from devel:languages:python3 - Fix building on openSUSE 11.4 - spec file cleanups (forwarded request 122256 from TheBlackCat) OBS-URL: https://build.opensuse.org/request/show/122257 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=8 --- python3-Mako.changes | 6 ++++++ python3-Mako.spec | 11 +++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/python3-Mako.changes b/python3-Mako.changes index e3ff02d..b00db8b 100644 --- a/python3-Mako.changes +++ b/python3-Mako.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 25 08:33:12 UTC 2012 - toddrme2178@gmail.com + +- Fix building on openSUSE 11.4 +- spec file cleanups + ------------------------------------------------------------------- Wed May 23 06:00:20 UTC 2012 - highwaystar.ru@gmail.com diff --git a/python3-Mako.spec b/python3-Mako.spec index 6aee9e4..77cbd77 100644 --- a/python3-Mako.spec +++ b/python3-Mako.spec @@ -33,15 +33,15 @@ BuildRequires: python3-nose BuildRequires: python3-2to3 Requires: python3-Beaker >= 1.1 Requires: python3-MarkupSafe - %if 0%{?suse_version} && 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)} -%endif -Requires: python(abi) = %{py3_ver} -%if 0%{?suse_version} && 0%{?suse_version} > 1140 +%else BuildRequires: python3-base %endif +Requires: python(abi) = %{py3_ver} +BuildArch: noarch + %description Mako is a template library written in Python. It provides a familiar, non-XML @@ -72,5 +72,8 @@ python3 setup.py test %{_bindir}/mako-render-python%{py3_ver} %{python3_sitelib}/mako/ %{python3_sitelib}/Mako-%{version}-py%{py3_ver}.egg-info +%if 0%{?suse_version} <= 1140 +%dir %{_prefix}/lib/python%{py3_ver} +%endif %changelog