2010-12-01 17:11:35 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-pyzmq
|
|
|
|
#
|
2018-02-04 12:23:16 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-12-01 17:11:35 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# 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.
|
2011-12-12 10:06:29 +01:00
|
|
|
|
2010-12-12 17:46:02 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2010-12-01 17:11:35 +01:00
|
|
|
|
2013-03-27 13:11:27 +01:00
|
|
|
|
2017-04-19 23:45:05 +02:00
|
|
|
# Disable tests, they are so slow that OBS thinks the build died.
|
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2013-03-27 13:11:27 +01:00
|
|
|
Name: python-pyzmq
|
2018-02-10 20:37:25 +01:00
|
|
|
Version: 17.0.0
|
2010-12-12 17:46:02 +01:00
|
|
|
Release: 0
|
2011-12-06 10:36:05 +01:00
|
|
|
Summary: Python bindings for 0MQ
|
2018-02-27 22:32:19 +01:00
|
|
|
License: LGPL-3.0-or-later AND BSD-3-Clause
|
2010-12-12 17:46:02 +01:00
|
|
|
Group: Development/Languages/Python
|
2012-01-31 17:21:39 +01:00
|
|
|
Url: http://github.com/zeromq/pyzmq
|
2017-04-19 23:45:05 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pyzmq/pyzmq-%{version}.tar.gz
|
2014-08-02 13:01:26 +02:00
|
|
|
Source1: python-pyzmq-rpmlintrc
|
2015-09-08 18:37:48 +02:00
|
|
|
# PATCH-FIX-OPENSUSE skip_test_tracker.patch
|
|
|
|
Patch1: skip_test_tracker.patch
|
2017-04-19 23:45:05 +02:00
|
|
|
BuildRequires: %{python_module Cython}
|
|
|
|
BuildRequires: %{python_module cffi}
|
2017-11-03 15:38:34 +01:00
|
|
|
BuildRequires: %{python_module devel}
|
2017-04-19 23:45:05 +02:00
|
|
|
BuildRequires: %{python_module gevent}
|
|
|
|
BuildRequires: %{python_module numpy}
|
|
|
|
BuildRequires: %{python_module paramiko}
|
|
|
|
BuildRequires: %{python_module pexpect}
|
|
|
|
BuildRequires: %{python_module py}
|
2017-11-03 15:38:34 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2017-04-19 23:45:05 +02:00
|
|
|
BuildRequires: %{python_module simplejson}
|
|
|
|
BuildRequires: %{python_module tornado}
|
2017-11-03 15:38:34 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2016-01-26 13:29:54 +01:00
|
|
|
BuildRequires: zeromq-devel
|
2015-07-29 11:20:44 +02:00
|
|
|
# Test requirements
|
2017-04-19 23:45:05 +02:00
|
|
|
BuildRequires: %{python_module nose}
|
2015-07-29 11:20:44 +02:00
|
|
|
Requires: python
|
2018-02-27 22:32:19 +01:00
|
|
|
%if 0%{?suse_version} >= 1000
|
2015-07-29 11:20:44 +02:00
|
|
|
Recommends: python-cffi
|
|
|
|
Recommends: python-gevent
|
|
|
|
Recommends: python-numpy
|
|
|
|
Recommends: python-pexpect
|
|
|
|
Recommends: python-py
|
|
|
|
Recommends: python-simplejson
|
|
|
|
Recommends: python-tornado
|
|
|
|
Recommends: python-paramiko
|
2013-04-13 12:01:26 +02:00
|
|
|
Recommends: zeromq
|
2018-02-27 22:32:19 +01:00
|
|
|
%endif
|
2011-12-06 10:36:05 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-04-19 23:45:05 +02:00
|
|
|
%python_subpackages
|
2010-12-01 17:11:35 +01:00
|
|
|
|
|
|
|
%description
|
2010-12-12 17:46:02 +01:00
|
|
|
PyZMQ is a lightweight and super-fast messaging library built on top of
|
|
|
|
the ZeroMQ library (http://www.zeromq.org).
|
2010-12-01 17:11:35 +01:00
|
|
|
|
2012-05-18 12:31:47 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2013-03-27 13:11:27 +01:00
|
|
|
Group: Development/Languages/Python
|
2012-05-18 12:31:47 +02:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: python-devel
|
|
|
|
Requires: zeromq-devel
|
|
|
|
|
|
|
|
%description devel
|
2013-03-27 13:11:27 +01:00
|
|
|
Development libraries and headers needed to build software using %{name}.
|
2012-05-18 12:31:47 +02:00
|
|
|
|
2010-12-01 17:11:35 +01:00
|
|
|
%prep
|
2013-03-27 13:11:27 +01:00
|
|
|
%setup -q -n pyzmq-%{version}
|
|
|
|
# Fix non-executable script rpmlint warning:
|
|
|
|
find examples zmq -name "*.py" -exec sed -i "s|#\!\/usr\/bin\/env python||" {} \;
|
2010-12-01 17:11:35 +01:00
|
|
|
|
2015-09-08 18:37:48 +02:00
|
|
|
%patch1
|
|
|
|
|
2010-12-01 17:11:35 +01:00
|
|
|
%build
|
2017-04-19 23:45:05 +02:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%python_build
|
2010-12-01 17:11:35 +01:00
|
|
|
|
|
|
|
%install
|
2017-04-19 23:45:05 +02:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2013-03-27 13:11:27 +01:00
|
|
|
|
2017-04-19 23:45:05 +02:00
|
|
|
%if %{with tests}
|
|
|
|
%check
|
|
|
|
# Remove non-deterministic authentication test
|
|
|
|
# This fails to connect randomly
|
|
|
|
rm -rf zmq/tests/test_auth.py
|
|
|
|
|
|
|
|
%python_exec setup.py build_ext --inplace
|
|
|
|
%python_exec setup.py test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files %{python_files}
|
2010-12-12 17:46:02 +01:00
|
|
|
%defattr(-,root,root,-)
|
2017-08-06 06:49:42 +02:00
|
|
|
%doc AUTHORS.md COPYING.BSD COPYING.LESSER README.md examples
|
2013-03-27 13:11:27 +01:00
|
|
|
%{python_sitearch}/zmq/
|
2016-01-26 13:29:54 +01:00
|
|
|
%{python_sitearch}/pyzmq-%{version}-py*.egg-info
|
2013-03-27 13:11:27 +01:00
|
|
|
%exclude %{python_sitearch}/zmq/utils/*.h
|
2016-01-26 13:29:54 +01:00
|
|
|
%exclude %{python_sitearch}/zmq/backend/cffi/_verify.c
|
|
|
|
%exclude %{python_sitearch}/zmq/backend/cffi/_cdefs.h
|
2012-05-18 12:31:47 +02:00
|
|
|
|
2017-04-19 23:45:05 +02:00
|
|
|
%files %{python_files devel}
|
2012-05-18 12:31:47 +02:00
|
|
|
%defattr(-,root,root,-)
|
2013-03-27 13:11:27 +01:00
|
|
|
%{python_sitearch}/zmq/utils/*.h
|
2016-01-26 13:29:54 +01:00
|
|
|
%{python_sitearch}/zmq/backend/cffi/_verify.c
|
|
|
|
%{python_sitearch}/zmq/backend/cffi/_cdefs.h
|
2010-12-01 17:11:35 +01:00
|
|
|
|
|
|
|
%changelog
|