[python-zmq/el5] update to 14.3.1 (#1134571)

Thomas Spura tomspur at fedoraproject.org
Fri Aug 29 09:42:21 UTC 2014


commit ce1e63ae3b8bc6afae79a178ba77d2afb3f95bc7
Author: Thomas Spura <thomas.spura at gmail.com>
Date:   Fri Aug 29 11:42:18 2014 +0200

    update to 14.3.1 (#1134571)

 python-zmq.spec |   36 +++++++++++++++++++++++-------------
 sources         |    2 +-
 2 files changed, 24 insertions(+), 14 deletions(-)
---
diff --git a/python-zmq.spec b/python-zmq.spec
index e546510..1e024da 100644
--- a/python-zmq.spec
+++ b/python-zmq.spec
@@ -1,4 +1,4 @@
-%if 0%{?fedora} > 12 || 0%{?rhel} > 6
+%if 0%{?fedora} > 12
 %global with_python3 1
 %endif
 
@@ -14,7 +14,7 @@
 %else
 %{?filter_setup:
 %filter_provides_in %{python_sitearch}/.*\.so$
-%if 0%{?fedora} > 12 || 0%{?rhel} > 6
+%if 0%{?fedora} > 12
 %filter_provides_in %{python3_sitearch}/.*\.so$
 %endif
 %filter_setup
@@ -28,22 +28,24 @@
 %global run_tests 1
 
 Name:           python-zmq
-Version:        2.1.9
-Release:        3%{?dist}
+Version:        14.3.1
+Release:        1%{?dist}
 Summary:        Software library for fast, message-based applications
 
 Group:          Development/Libraries
-License:        LGPLv3+ and ASL 2.0
+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:        http://cloud.github.com/downloads/zeromq/pyzmq/pyzmq-%{version}.tar.gz
+Source0:        https://pypi.python.org/packages/source/p/pyzmq/pyzmq-%{version}.tar.gz
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+BuildRequires:  chrpath
+
 %if ! ( 0%{?fedora} > 12 || 0%{?rhel} > 5)
 BuildRequires:  python26-devel
 BuildRequires:  python26-distribute
@@ -154,6 +156,10 @@ This package contains the testsuite for the python bindings.
 
 %prep
 %setup -q -n %{srcname}-%{version}
+
+# remove bundled libraries
+rm -rf bundled
+
 # remove shebangs
 for lib in zmq/eventloop/*.py; do
     sed '/\/usr\/bin\/env/d' $lib > $lib.new &&
@@ -174,6 +180,7 @@ rm -rf %{py3dir}
 cp -a . %{py3dir}
 find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
 rm -r %{py3dir}/examples
+2to3 --write --nobackups %{py3dir}/zmq/green
 
 %endif
 
@@ -190,6 +197,7 @@ popd
 
 
 %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).
@@ -197,23 +205,22 @@ popd
 pushd %{py3dir}
 %{__python3} setup.py install --skip-build --root %{buildroot}
 
-# remove tests doesn't work here, do that after running the tests
-
 popd
+chrpath --delete %{buildroot}%{python3_sitearch}%{RPATH}/*.so
 %endif # with_python3
 
 
 %{__python} setupegg.py install -O1 --skip-build --root %{buildroot}
 
-# remove tests doesn't work here, do that after running the tests
-
+chrpath --delete %{buildroot}%{python_sitearch}%{RPATH}/*.so
 
 
 %check
 %if 0%{?run_tests}
     rm zmq/__*
+    cd %{buildroot}%{python_sitearch}
     PYTHONPATH=%{buildroot}%{python_sitearch} \
-        %{__python} setup.py test
+        %{_bindir}/nosetests -v zmq.tests
 
     %if 0%{?with_python3}
     # there is no python3-nose yet
@@ -232,7 +239,7 @@ popd
 %files
 %endif
 %defattr(-,root,root,-)
-%doc README.rst COPYING.LESSER examples/
+%doc README.md COPYING.* examples/
 %{python_sitearch}/%{srcname}-*.egg-info
 %{python_sitearch}/zmq
 %exclude %{python_sitearch}/zmq/tests
@@ -248,7 +255,7 @@ popd
 %if 0%{?with_python3}
 %files -n python3-zmq
 %defattr(-,root,root,-)
-%doc README.rst COPYING.LESSER
+%doc README.md COPYING.* examples/
 # examples/
 %{python3_sitearch}/%{srcname}-*.egg-info
 %{python3_sitearch}/zmq
@@ -261,6 +268,9 @@ popd
 
 
 %changelog
+* Fri Aug 29 2014 Thomas Spura <tomspur at fedoraproject.org> - 14.3.1-1
+- update to 14.3.1 (#1134571)
+
 * Wed Dec 14 2011 Thomas Spura <tomspur at fedoraproject.org> - 2.1.9-3
 - tests package requires main package
 - filter python3
diff --git a/sources b/sources
index 9c669d5..6341a24 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-44efd9e7dd041b9f779e3026d189f870  pyzmq-2.1.9.tar.gz
+7196b4a6fbf98022f17ffa924be3d68d  pyzmq-14.3.1.tar.gz


More information about the scm-commits mailing list