Accepting request 121382 from devel:languages:python
Fix rpmlint warnings (forwarded request 121381 from TheBlackCat) OBS-URL: https://build.opensuse.org/request/show/121382 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyzmq?expand=0&rev=5
This commit is contained in:
commit
58a176d7a3
@ -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
|
Tue Mar 27 09:32:34 UTC 2012 - saschpe@suse.de
|
||||||
|
|
||||||
|
@ -15,20 +15,24 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
%define pyname zmq
|
||||||
Name: python-pyzmq
|
%define modname py%{pyname}
|
||||||
|
Name: python-%{modname}
|
||||||
Version: 2.1.11
|
Version: 2.1.11
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python bindings for 0MQ
|
Summary: Python bindings for 0MQ
|
||||||
License: LGPL-3.0+
|
License: LGPL-3.0+
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://github.com/zeromq/pyzmq
|
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: python-devel
|
||||||
BuildRequires: zeromq-devel
|
BuildRequires: zeromq-devel
|
||||||
Suggests: zeromq
|
Suggests: zeromq
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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)")}
|
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -36,21 +40,42 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|||||||
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
|
||||||
the ZeroMQ library (http://www.zeromq.org).
|
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
|
%prep
|
||||||
%setup -q -n pyzmq-%{version}
|
%setup -q -n %{modname}-%{version}
|
||||||
sed -i "1d" zmq/{eventloop/stack_context,tests/test_{message,zmqstream,socket,error,stopwatch},log/handlers}.py
|
sed -i "1d" %{pyname}/{eventloop/stack_context,tests/test_{message,zmqstream,socket,error,stopwatch},log/handlers}.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags}" python setup.py build
|
CFLAGS="%{optflags}" python setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
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
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING.LESSER README.rst examples
|
%doc COPYING.LESSER README.rst examples docs
|
||||||
#%%doc docs/build/html
|
%{python_sitearch}/%{pyname}/
|
||||||
%{python_sitearch}/*
|
%{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
|
%changelog
|
||||||
|
@ -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
|
Fri Apr 27 09:10:08 UTC 2012 - highwaystar.ru@gmail.com
|
||||||
|
|
||||||
- fixed building of python3 package on openSUSE 11.4 and older
|
- 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
|
Tue Jan 31 16:20:35 UTC 2012 - saschpe@suse.de
|
||||||
|
|
||||||
|
@ -15,43 +15,66 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
%define pyname zmq
|
||||||
Name: python3-pyzmq
|
%define modname py%{pyname}
|
||||||
|
Name: python3-%{modname}
|
||||||
Version: 2.1.11
|
Version: 2.1.11
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python bindings for 0MQ
|
Summary: Python bindings for 0MQ
|
||||||
License: LGPL-3.0+
|
License: LGPL-3.0+
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://github.com/zeromq/pyzmq
|
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: python3-devel
|
||||||
BuildRequires: zeromq-devel
|
BuildRequires: zeromq-devel
|
||||||
Requires: python3-base
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1140
|
%if 0%{?suse_version} <= 1140
|
||||||
%{!?python3_sitearch: %global python3_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
%{!?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)}
|
%{!?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}
|
Requires: python3 >= %{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
|
||||||
the ZeroMQ library (http://www.zeromq.org).
|
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
|
%prep
|
||||||
%setup -q -n pyzmq-%{version}
|
%setup -q -n %{modname}-%{version}
|
||||||
sed -i "1d" zmq/{eventloop/stack_context,tests/test_{message,zmqstream,socket,error,stopwatch},log/handlers}.py
|
sed -i "1d" %{pyname}/{eventloop/stack_context,tests/test_{message,zmqstream,socket,error,stopwatch},log/handlers}.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags}" python3 setup.py build
|
CFLAGS="%{optflags}" python3 setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
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
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING.LESSER README.rst examples docs
|
%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
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user