2010-12-01 17:11:35 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-pyzmq
|
|
|
|
#
|
2015-03-17 00:00:33 +01:00
|
|
|
# Copyright (c) 2015 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
|
|
|
|
|
|
|
Name: python-pyzmq
|
2015-07-14 16:13:12 +02:00
|
|
|
Version: 14.7.0
|
2010-12-12 17:46:02 +01:00
|
|
|
Release: 0
|
2011-12-06 10:36:05 +01:00
|
|
|
Summary: Python bindings for 0MQ
|
2013-04-05 15:52:54 +02:00
|
|
|
License: LGPL-3.0+ 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
|
2015-03-17 00:06:43 +01:00
|
|
|
Source: https://pypi.python.org/packages/source/p/pyzmq/pyzmq-%{version}.tar.gz
|
2014-08-02 13:01:26 +02:00
|
|
|
Source1: python-pyzmq-rpmlintrc
|
2011-08-19 14:37:23 +02:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: zeromq-devel
|
2013-03-27 13:11:27 +01:00
|
|
|
# Test requirements:
|
|
|
|
BuildRequires: python-Cython
|
2013-04-13 12:01:26 +02:00
|
|
|
Recommends: zeromq
|
2011-12-06 10:36:05 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-03-27 13:11:27 +01:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
2012-01-31 17:21:39 +01:00
|
|
|
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
2010-12-12 17:46:02 +01:00
|
|
|
%endif
|
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
|
|
|
|
|
|
|
%build
|
2012-01-31 17:21:39 +01:00
|
|
|
CFLAGS="%{optflags}" python setup.py build
|
2010-12-01 17:11:35 +01:00
|
|
|
|
|
|
|
%install
|
2012-01-31 17:21:39 +01:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2013-03-27 13:11:27 +01:00
|
|
|
|
2014-02-12 13:52:05 +01:00
|
|
|
# uses NETLINK which does not exist under linux mode..
|
|
|
|
%if !0%{?qemu_user_space_build:1}
|
2013-03-27 13:11:27 +01:00
|
|
|
%check
|
|
|
|
python setup.py build_ext --inplace
|
|
|
|
python setup.py test
|
2014-02-12 13:52:05 +01:00
|
|
|
%endif
|
2010-12-01 17:11:35 +01:00
|
|
|
|
2011-08-19 14:37:23 +02:00
|
|
|
%files
|
2010-12-12 17:46:02 +01:00
|
|
|
%defattr(-,root,root,-)
|
2013-03-27 13:11:27 +01:00
|
|
|
%doc COPYING.LESSER README.md examples docs
|
|
|
|
%{python_sitearch}/zmq/
|
|
|
|
%{python_sitearch}/pyzmq-%{version}-py%{py_ver}.egg-info
|
|
|
|
%exclude %{python_sitearch}/zmq/utils/*.h
|
2012-05-18 12:31:47 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2013-03-27 13:11:27 +01:00
|
|
|
%{python_sitearch}/zmq/utils/*.h
|
2010-12-01 17:11:35 +01:00
|
|
|
|
|
|
|
%changelog
|