diff --git a/python-pyzmq.changes b/python-pyzmq.changes index 57e8c4f..cb1a996 100644 --- a/python-pyzmq.changes +++ b/python-pyzmq.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri May 18 09:07:39 UTC 2012 - toddrme2178@gmail.com + +- Fix rpmlint warnings + +------------------------------------------------------------------- +Fri Apr 27 09:10:08 UTC 2012 - highwaystar.ru@gmail.com + +- fixed building of python3 package on openSUSE 11.4 and older + ------------------------------------------------------------------- Tue Mar 27 09:32:34 UTC 2012 - saschpe@suse.de diff --git a/python-pyzmq.spec b/python-pyzmq.spec index a3ef19f..8ca4fce 100644 --- a/python-pyzmq.spec +++ b/python-pyzmq.spec @@ -15,20 +15,24 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - -Name: python-pyzmq +%define pyname zmq +%define modname py%{pyname} +Name: python-%{modname} Version: 2.1.11 Release: 0 Summary: Python bindings for 0MQ License: LGPL-3.0+ Group: Development/Languages/Python Url: http://github.com/zeromq/pyzmq -Source: http://pypi.python.org/packages/source/p/pyzmq/pyzmq-%{version}.tar.gz +Source: http://pypi.python.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz BuildRequires: python-devel BuildRequires: zeromq-devel Suggests: zeromq BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%if 0%{?suse_version} +%py_requires +%endif +%if 0%{?suse_version} <= 1110 %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %endif @@ -36,21 +40,42 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build PyZMQ is a lightweight and super-fast messaging library built on top of the ZeroMQ library (http://www.zeromq.org). +%package devel +Group: Development/Languages/Python +Summary: Development files for %{name} +License: LGPL-3.0+ +Requires: %{name} = %{version} +Requires: python-devel +Requires: zeromq-devel +%if 0%{?suse_version} +%py_requires -d +%endif + +%description devel +Development libraries and headers needed to build +software using %{name} + %prep -%setup -q -n pyzmq-%{version} -sed -i "1d" zmq/{eventloop/stack_context,tests/test_{message,zmqstream,socket,error,stopwatch},log/handlers}.py +%setup -q -n %{modname}-%{version} +sed -i "1d" %{pyname}/{eventloop/stack_context,tests/test_{message,zmqstream,socket,error,stopwatch},log/handlers}.py %build CFLAGS="%{optflags}" python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -#cd docs && make html && rm build/html/.buildinfo # Build documentation and remove temporary files +chmod +x %{buildroot}%{python_sitearch}/%{pyname}/eventloop/platform/posix.py +chmod +x %{buildroot}%{python_sitearch}/%{pyname}/eventloop/platform/auto.py %files %defattr(-,root,root,-) -%doc COPYING.LESSER README.rst examples -#%%doc docs/build/html -%{python_sitearch}/* +%doc COPYING.LESSER README.rst examples docs +%{python_sitearch}/%{pyname}/ +%{python_sitearch}/%{modname}-%{version}-py%{py_ver}.egg-info +%exclude %{python_sitearch}/%{pyname}/utils/*.h + +%files devel +%defattr(-,root,root,-) +%{python_sitearch}/%{pyname}/utils/*.h %changelog diff --git a/python3-pyzmq.changes b/python3-pyzmq.changes index ed73918..cb1a996 100644 --- a/python3-pyzmq.changes +++ b/python3-pyzmq.changes @@ -1,8 +1,30 @@ +------------------------------------------------------------------- +Fri May 18 09:07:39 UTC 2012 - toddrme2178@gmail.com + +- Fix rpmlint warnings + ------------------------------------------------------------------- Fri Apr 27 09:10:08 UTC 2012 - highwaystar.ru@gmail.com - fixed building of python3 package on openSUSE 11.4 and older +------------------------------------------------------------------- +Tue Mar 27 09:32:34 UTC 2012 - saschpe@suse.de + +- Update to version 2.1.11: + * remove support for LABEL prefixes. A major feature of libzmq-3.0, the LABEL + prefix, has been removed from libzmq, prior to the first stable libzmq 3.x release. + * The prefix argument to ~.Socket.send_multipart remains, but it continue to behave in + exactly the same way as it always has on 2.1.x, simply prepending message parts. + * ~.Socket.recv_multipart will always return a list, because prefixes are once + again indistinguishable from regular message parts. + * add .Socket.poll method, for simple polling of events on a single socket. + * no longer require monkeypatching tornado IOLoop. The :class:.ioloop.ZMQPoller class + is a poller implementation that matches tornado's expectations, and pyzmq sockets can + be used with any tornado application just by specifying the use of this poller. The + pyzmq IOLoop implementation now only trivially differs from tornado's. +- Don't package documentation sources + ------------------------------------------------------------------- Tue Jan 31 16:20:35 UTC 2012 - saschpe@suse.de diff --git a/python3-pyzmq.spec b/python3-pyzmq.spec index d168ca0..0732872 100644 --- a/python3-pyzmq.spec +++ b/python3-pyzmq.spec @@ -15,43 +15,66 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - -Name: python3-pyzmq +%define pyname zmq +%define modname py%{pyname} +Name: python3-%{modname} Version: 2.1.11 Release: 0 Summary: Python bindings for 0MQ License: LGPL-3.0+ Group: Development/Languages/Python Url: http://github.com/zeromq/pyzmq -Source: http://pypi.python.org/packages/source/p/pyzmq/pyzmq-%{version}.tar.gz +Source: http://pypi.python.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz +BuildRequires: python3 +BuildRequires: python3-2to3 BuildRequires: python3-devel BuildRequires: zeromq-devel -Requires: python3-base BuildRoot: %{_tmppath}/%{name}-%{version}-build -%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))")} +%if 0%{?suse_version} <= 1140 +%{!?python3_sitearch: %global python3_sitearch %(python3 -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} +Requires: python3 >= %{py3_ver} %description PyZMQ is a lightweight and super-fast messaging library built on top of the ZeroMQ library (http://www.zeromq.org). +%package devel +Group: Development/Languages/Python +Summary: Development files for %{name} +License: LGPL-3.0+ +Requires: %{name} = %{version} +Requires: python(abi) = %{py3_ver} +Requires: python3 >= %{py3_ver} +Requires: python3-devel >= %{py3_ver} +Requires: zeromq-devel + +%description devel +Development libraries and headers needed to build +software using %{name} + %prep -%setup -q -n pyzmq-%{version} -sed -i "1d" zmq/{eventloop/stack_context,tests/test_{message,zmqstream,socket,error,stopwatch},log/handlers}.py +%setup -q -n %{modname}-%{version} +sed -i "1d" %{pyname}/{eventloop/stack_context,tests/test_{message,zmqstream,socket,error,stopwatch},log/handlers}.py %build CFLAGS="%{optflags}" python3 setup.py build %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} -#cd docs && make html && rm build/html/.buildinfo # Build documentation and remove temporary files +chmod +x %{buildroot}%{python3_sitearch}/%{pyname}/eventloop/platform/posix.py +chmod +x %{buildroot}%{python3_sitearch}/%{pyname}/eventloop/platform/auto.py %files %defattr(-,root,root,-) %doc COPYING.LESSER README.rst examples docs -%{python3_sitearch}/* +%{python3_sitearch}/%{pyname}/ +%{python3_sitearch}/%{modname}-%{version}-py%{py3_ver}.egg-info +%exclude %{python3_sitearch}/%{pyname}/utils/*.h + +%files devel +%defattr(-,root,root,-) +%{python3_sitearch}/%{pyname}/utils/*.h %changelog