Accepting request 115865 from home:HighwayStar:branches:devel:languages:python

Fixed typo in python3_sitearch define for 11.4, py3_ver for 11.4 and older proveded, so now it builds fine on 11.4

OBS-URL: https://build.opensuse.org/request/show/115865
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyzmq?expand=0&rev=15
This commit is contained in:
Todd R 2012-04-30 09:38:32 +00:00 committed by Git OBS Bridge
parent 5733a57986
commit b1ad887dfa
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Apr 27 09:10:08 UTC 2012 - highwaystar.ru@gmail.com
- fixed building of python3 package on openSUSE 11.4 and older
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jan 31 16:20:35 UTC 2012 - saschpe@suse.de Tue Jan 31 16:20:35 UTC 2012 - saschpe@suse.de

View File

@ -27,11 +27,12 @@ Source: http://pypi.python.org/packages/source/p/pyzmq/pyzmq-%{version}.
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: zeromq-devel BuildRequires: zeromq-devel
Requires: python3-base Requires: python3-base
Requires: python(abi) = %{py3_ver}
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110 %if 0%{?suse_version} && 0%{?suse_version} <= 1140
%{!?python_sitearch: %global python3_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %{!?python3_sitearch: %global python3_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%{!?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 %endif
Requires: python(abi) = %{py3_ver}
%description %description
PyZMQ is a lightweight and super-fast messaging library built on top of PyZMQ is a lightweight and super-fast messaging library built on top of