From ff20d52e7ec5239fc4f72b8ee163c600acf0a593 Mon Sep 17 00:00:00 2001 From: Thomas Spura Date: Sun, 13 Nov 2016 11:10:20 +0100 Subject: [PATCH] Update to 16.0.1 - Build twice: once for installing later and once for in-place testing: Testing in-place and installing conflicts (you seem to be able to do only one of them at the same time). Building twice seems to fix this --- .gitignore | 1 + python-zmq.spec | 27 +++++++++++---------------- sources | 2 +- 3 files changed, 13 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index d7c9d56..eb2c779 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ /pyzmq-14.4.1.tar.gz /pyzmq-14.7.0.tar.gz /pyzmq-15.3.0.tar.gz +/pyzmq-16.0.1.tar.gz diff --git a/python-zmq.spec b/python-zmq.spec index efb3a7f..6972305 100644 --- a/python-zmq.spec +++ b/python-zmq.spec @@ -11,8 +11,8 @@ %global run_tests 1 Name: python-zmq -Version: 15.3.0 -Release: 2%{?dist} +Version: 16.0.1 +Release: 1%{?dist} Summary: Software library for fast, message-based applications Group: Development/Libraries @@ -23,7 +23,6 @@ URL: http://www.zeromq.org/bindings:python # 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://pypi.python.org/packages/source/p/pyzmq/pyzmq-%{version}.tar.gz Source0: https://github.com/zeromq/pyzmq/archive/v%{version}.tar.gz#/pyzmq-%{version}.tar.gz BuildRequires: chrpath @@ -157,10 +156,11 @@ chmod -x examples/pubsub/topics_sub.py %build -%global py_setup setupegg.py +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 @@ -174,31 +174,22 @@ chmod -x examples/pubsub/topics_sub.py %if 0%{?with_python3} %py3_install -chrpath --delete %{buildroot}%{python3_sitearch}%{RPATH}/*.so %endif # with_python3 %py2_install -chrpath --delete %{buildroot}%{python_sitearch}%{RPATH}/*.so - -# Remove Python 3 only code from python2 package -rm %{buildroot}%{python2_sitearch}/zmq/asyncio.py \ - %{buildroot}%{python2_sitearch}/zmq/auth/asyncio.py \ - %{buildroot}%{python2_sitearch}/zmq/tests/*test_asyncio.py \ - %{buildroot}%{python2_sitearch}/zmq/tests/test_future.py - %check %if 0%{?run_tests} # Make sure we import from the install directory - rm zmq/__*.py + #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 + #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 @@ -229,6 +220,10 @@ rm %{buildroot}%{python2_sitearch}/zmq/asyncio.py \ %changelog +* Sun Nov 13 2016 Thomas Spura - 16.0.1-1 +- update to 16.0.1 +- build twice (for installing and testing in-place) + * Tue Jul 19 2016 Fedora Release Engineering - 15.3.0-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages diff --git a/sources b/sources index 1842190..e9d0c42 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -58ae1343774900f49607fd8f469b37a7 pyzmq-15.3.0.tar.gz +8c59659a347c10ad349e6d8cfa45be03 pyzmq-16.0.1.tar.gz