Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
cryptocurrency
python-zmq
python-zmq.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-zmq.spec of Package python-zmq
%global with_python3 1 # we don't want to provide private python extension libs in either the python2 or python3 dirs %global __provides_exclude_from ^(%{python2_sitearch}|%{python3_sitearch})/.*\\.so$ %global checkout 18f5d061558a176f5496aa8e049182c1a7da64f6 %global srcname pyzmq %global modname zmq %global run_tests 1 Name: python-zmq Version: 16.0.2 Release: 7%{?dist} Summary: Software library for fast, message-based applications Group: Development/Libraries License: LGPLv3+ and ASL 2.0 and BSD URL: http://www.zeromq.org/bindings:python # VCS: git:http://github.com/zeromq/pyzmq.git # git checkout with the commands: # git clone http://github.com/zeromq/pyzmq.git pyzmq.git # cd pyzmq.git # git archive --format=tar --prefix=pyzmq-%%{version}/ %%{checkout} | xz -z --force - > pyzmq-%%{version}.tar.xz Source0: https://github.com/zeromq/pyzmq/archive/v%{version}.tar.gz#/pyzmq-%{version}.tar.gz BuildRequires: chrpath BuildRequires: python2-devel BuildRequires: python2-setuptools BuildRequires: zeromq-devel %if 0%{?run_tests} BuildRequires: python2-pytest BuildRequires: python2-tornado %endif # For some tests # czmq currently FTBFS, so enable it some time later #BuildRequires: czmq-devel %if 0%{?with_python3} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-Cython # needed for 2to3 BuildRequires: python2-tools %if 0%{?run_tests} BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-tornado %endif %else BuildRequires: python2-Cython %endif %description The 0MQ lightweight messaging kernel is a library which extends the standard socket interfaces with features traditionally provided by specialized messaging middle-ware products. 0MQ sockets provide an abstraction of asynchronous message queues, multiple messaging patterns, message filtering (subscriptions), seamless access to multiple transport protocols and more. This package contains the python bindings. %package -n python2-zmq Summary: Software library for fast, message-based applications %{?python_provide:%python_provide python2-%{modname}} %description -n python2-zmq The 0MQ lightweight messaging kernel is a library which extends the standard socket interfaces with features traditionally provided by specialized messaging middle-ware products. 0MQ sockets provide an abstraction of asynchronous message queues, multiple messaging patterns, message filtering (subscriptions), seamless access to multiple transport protocols and more. This package contains the python bindings. %package -n python2-zmq-tests Summary: Software library for fast, message-based applications Group: Development/Libraries License: LGPLv3+ Requires: python2-zmq = %{version}-%{release} %{?python_provide:%python_provide python2-%{modname}-tests} %description -n python2-zmq-tests The 0MQ lightweight messaging kernel is a library which extends the standard socket interfaces with features traditionally provided by specialized messaging middle-ware products. 0MQ sockets provide an abstraction of asynchronous message queues, multiple messaging patterns, message filtering (subscriptions), seamless access to multiple transport protocols and more. This package contains the testsuite for the python bindings. %if 0%{?with_python3} %package -n python%{python3_pkgversion}-zmq Summary: Software library for fast, message-based applications Group: Development/Libraries License: LGPLv3+ %{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}} %description -n python%{python3_pkgversion}-zmq The 0MQ lightweight messaging kernel is a library which extends the standard socket interfaces with features traditionally provided by specialized messaging middle-ware products. 0MQ sockets provide an abstraction of asynchronous message queues, multiple messaging patterns, message filtering (subscriptions), seamless access to multiple transport protocols and more. This package contains the python bindings. %package -n python%{python3_pkgversion}-zmq-tests Summary: Software library for fast, message-based applications Group: Development/Libraries License: LGPLv3+ Requires: python%{python3_pkgversion}-zmq = %{version}-%{release} %{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}-tests} %description -n python%{python3_pkgversion}-zmq-tests The 0MQ lightweight messaging kernel is a library which extends the standard socket interfaces with features traditionally provided by specialized messaging middle-ware products. 0MQ sockets provide an abstraction of asynchronous message queues, multiple messaging patterns, message filtering (subscriptions), seamless access to multiple transport protocols and more. This package contains the testsuite for the python bindings. %endif %prep %setup -q -n %{srcname}-%{version} # remove bundled libraries rm -rf bundled # forcibly regenerate the Cython-generated .c files: find zmq -name "*.c" -delete %if 0%{?with_python3} %{__python3} setup.py cython %else %{__python2} setup.py cython %endif # remove shebangs for lib in zmq/eventloop/*.py; do sed '/\/usr\/bin\/env/d' $lib > $lib.new && touch -r $lib $lib.new && mv $lib.new $lib done # remove excecutable bits chmod -x examples/pubsub/topics_pub.py chmod -x examples/pubsub/topics_sub.py # delete hidden files #find examples -name '.*' | xargs rm -v %build CFLAGS="%{optflags}" %{__python2} setup.py build_ext --inplace %py2_build %if 0%{?with_python3} CFLAGS="%{optflags}" %{__python3} setup.py build_ext --inplace %py3_build %endif # with_python3 %install %global RPATH /zmq/{backend/cython,devices} # Must do the python3 install first because the scripts in /usr/bin are # overwritten with every setup.py install (and we want the python2 version # to be the default for now). %if 0%{?with_python3} %py3_install %endif # with_python3 %py2_install %check %if 0%{?run_tests} # Make sure we import from the install directory #rm zmq/__*.py PYTHONPATH=%{buildroot}%{python3_sitearch} \ %{__python3} setup.py test # Remove Python 3 only tests #rm zmq/asyncio.py zmq/auth/asyncio.py \ # zmq/tests/*test_asyncio.py zmq/tests/test_future.py PYTHONPATH=%{buildroot}%{python2_sitearch} \ %{__python2} setup.py test %endif %files -n python2-%{modname} %license COPYING.* %doc README.md examples/ %{python2_sitearch}/%{srcname}-*.egg-info %{python2_sitearch}/zmq %exclude %{python2_sitearch}/zmq/tests %files -n python2-%{modname}-tests %{python2_sitearch}/zmq/tests %if 0%{?with_python3} %files -n python%{python3_pkgversion}-zmq %license COPYING.* %doc README.md # examples/ %{python3_sitearch}/%{srcname}-*.egg-info %{python3_sitearch}/zmq %exclude %{python3_sitearch}/zmq/tests %files -n python%{python3_pkgversion}-zmq-tests %{python3_sitearch}/zmq/tests %endif
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor