15
0
forked from pool/python-Beaker

Accepting request 122324 from devel:languages:python3

- Fix building on openSUSE 11.4
- spec file cleanups (forwarded request 122323 from TheBlackCat)

OBS-URL: https://build.opensuse.org/request/show/122324
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=10
This commit is contained in:
Todd R
2012-05-25 10:03:05 +00:00
committed by Git OBS Bridge
parent 5f86eed5d5
commit 386bce7e12
2 changed files with 12 additions and 8 deletions

View File

@@ -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 03:08:21 UTC 2012 - highwaystar.ru@gmail.com

View File

@@ -27,19 +27,14 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python3-devel
BuildRequires: python3-distribute
BuildRequires: python3-2to3
%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
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArchitectures: noarch
%endif
Requires: python(abi) = %{py3_ver}
BuildArch: noarch
%description
Beaker is a web session and general caching library that includes WSGI
@@ -87,5 +82,8 @@ python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%doc CHANGELOG LICENSE
%{python3_sitelib}/beaker/
%{python3_sitelib}/Beaker-%{version}-py%{py3_ver}.egg-info
%if 0%{?suse_version} <= 1140
%dir %{_prefix}/lib/python%{py3_ver}
%endif
%changelog