From b94f60a4e759b8ef0d12481fcb5dda12172c17d32ac4bf29561777736fea4b02 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Sun, 12 Dec 2010 16:46:02 +0000 Subject: [PATCH] Accepting request 55751 from home:saschpe OBS-URL: https://build.opensuse.org/request/show/55751 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyzmq?expand=0&rev=2 --- python-pyzmq.changes | 6 +++++ python-pyzmq.spec | 54 +++++++++++++++++++++++++------------------- 2 files changed, 37 insertions(+), 23 deletions(-) diff --git a/python-pyzmq.changes b/python-pyzmq.changes index 9780412..b59f08c 100644 --- a/python-pyzmq.changes +++ b/python-pyzmq.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Dec 12 15:40:57 UTC 2010 - saschpe@gmx.de + +- Re-generated with py2pack + * now builds for all RPM-based distros + ------------------------------------------------------------------- Wed Dec 1 15:32:35 UTC 2010 - saschpe@suse.de diff --git a/python-pyzmq.spec b/python-pyzmq.spec index 38964d4..8cce4ea 100644 --- a/python-pyzmq.spec +++ b/python-pyzmq.spec @@ -11,49 +11,57 @@ # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# # norootforbuild +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%define tarname pyzmq +%define mod_name pyzmq -Name: python-pyzmq +Name: python-%{mod_name} Version: 2.0.10 -Release: 1 -Url: http://www.zeromq.org/bindings:python -Summary: Python bindings for ZeroMQ -License: LGPLv3 -Group: Development/Libraries/Python -AutoReqProv: on -Source: %{tarname}-%{version}.tar.bz2 +Release: 0 +Url: http://github.com/zeromq/pyzmq +Summary: Python bindings for 0MQ. +License: LGPL +Group: Development/Languages/Python +Source: %{mod_name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: zeromq-devel python-devel - -%{py_requires} +BuildRequires: python-devel zeromq-devel +%if 0%{?suse_version} +%py_requires +%endif %description -Python bindings for ZeroMQ, a lightweight and fast messaging implementation. - +PyZMQ is a lightweight and super-fast messaging library built on top of +the ZeroMQ library (http://www.zeromq.org). Authors: -------- Brian E. Granger %prep -%setup -n %{tarname}-%{version} +export CFLAGS="%{optflags}" +%setup -n %{mod_name}-%{version} %build -export CFLAGS="-O0" -python setup.py build +%{__python} setup.py build %install -python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES +%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} %{?suse_version: --record-rpm=INSTALLED_FILES} %clean -rm -rf $RPM_BUILD_ROOT +%{__rm} -rf %{buildroot} -%files -f INSTALLED_FILES -%defattr(-,root,root) -%doc COPYING.LESSER README.rst -%doc examples docs +%files %{?suse_version: -f INSTALLED_FILES} +%defattr(-,root,root,-) +%doc COPYING.LESSER README.rst examples docs +%if 0%{!?suse_version:1} +%python_sitearch/%{mod_name}* +%python_sitearch/zmq* +%endif %changelog