From b1ad887dfaeda2e27f493a288fd2b07c87ce3b8188d3c5552cd6733677034b24 Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 30 Apr 2012 09:38:32 +0000 Subject: [PATCH] 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 --- python3-pyzmq.changes | 5 +++++ python3-pyzmq.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/python3-pyzmq.changes b/python3-pyzmq.changes index dcc8c74..ed73918 100644 --- a/python3-pyzmq.changes +++ b/python3-pyzmq.changes @@ -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 diff --git a/python3-pyzmq.spec b/python3-pyzmq.spec index 9fa4883..d168ca0 100644 --- a/python3-pyzmq.spec +++ b/python3-pyzmq.spec @@ -27,11 +27,12 @@ Source: http://pypi.python.org/packages/source/p/pyzmq/pyzmq-%{version}. BuildRequires: python3-devel BuildRequires: zeromq-devel Requires: python3-base -Requires: python(abi) = %{py3_ver} BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitearch: %global python3_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +%if 0%{?suse_version} && 0%{?suse_version} <= 1140 +%{!?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 +Requires: python(abi) = %{py3_ver} %description PyZMQ is a lightweight and super-fast messaging library built on top of