[python-txzmq] Initial import (#810382).
Ralph Bean
ralph at fedoraproject.org
Tue Apr 10 15:15:59 UTC 2012
commit de0a37fd2c8785f10d61bb6da7cb0b8ff5e8ea46
Author: Ralph Bean <rbean at redhat.com>
Date: Tue Apr 10 11:15:21 2012 -0400
Initial import (#810382).
.gitignore | 1 +
0001-Corrected-FSF-address.patch | 26 +++++++++++++++++
0002-Disable-EPGM-test.patch | 34 ++++++++++++++++++++++
python-txzmq.spec | 57 ++++++++++++++++++++++++++++++++++++++
sources | 1 +
5 files changed, 119 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ef0918a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/txZMQ-0.3.1.tar.gz
diff --git a/0001-Corrected-FSF-address.patch b/0001-Corrected-FSF-address.patch
new file mode 100644
index 0000000..411fd5d
--- /dev/null
+++ b/0001-Corrected-FSF-address.patch
@@ -0,0 +1,26 @@
+From cb81e1395494607d4b1244fda21a7d0373118b70 Mon Sep 17 00:00:00 2001
+From: Ralph Bean <rbean at redhat.com>
+Date: Mon, 9 Apr 2012 21:11:13 -0400
+Subject: [PATCH 1/2] Corrected FSF address
+
+---
+ LICENSE.txt | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/LICENSE.txt b/LICENSE.txt
+index d60c31a..519310a 100644
+--- a/LICENSE.txt
++++ b/LICENSE.txt
+@@ -2,7 +2,8 @@
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
++ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
++
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+--
+1.7.9.3
+
diff --git a/0002-Disable-EPGM-test.patch b/0002-Disable-EPGM-test.patch
new file mode 100644
index 0000000..836724f
--- /dev/null
+++ b/0002-Disable-EPGM-test.patch
@@ -0,0 +1,34 @@
+From 972f93804885061ea2ee3821ce1193bd7e5ad02b Mon Sep 17 00:00:00 2001
+From: Ralph Bean <rbean at redhat.com>
+Date: Mon, 9 Apr 2012 22:13:35 -0400
+Subject: [PATCH] Disable EPGM test
+
+---
+ txZMQ/test/test_pubsub.py | 11 -----------
+ 1 file changed, 11 deletions(-)
+
+diff --git a/txZMQ/test/test_pubsub.py b/txZMQ/test/test_pubsub.py
+index 32f9480..934a96d 100644
+--- a/txZMQ/test/test_pubsub.py
++++ b/txZMQ/test/test_pubsub.py
+@@ -43,17 +43,6 @@ class ZmqConnectionTestCase(unittest.TestCase):
+ return _wait(0.01).addCallback(
+ lambda _: self.failUnlessEqual(getattr(r, 'messages', []), [['tag1', 'abcd'], ['tag2', 'efgh']], "Message should have been received"))
+
+- def test_send_recv_pgm(self):
+- r = ZmqTestSubConnection(self.factory, ZmqEndpoint(ZmqEndpointType.Bind, "epgm://127.0.0.1;239.192.1.1:5556"))
+- s = ZmqPubConnection(self.factory, ZmqEndpoint(ZmqEndpointType.Connect, "epgm://127.0.0.1;239.192.1.1:5556"))
+-
+- r.subscribe('tag')
+- s.publish('xyz', 'different-tag')
+- s.publish('abcd', 'tag1')
+-
+- return _wait(0.2).addCallback(
+- lambda _: self.failUnlessEqual(getattr(r, 'messages', []), [['tag1', 'abcd']], "Message should have been received"))
+-
+ def test_send_recv_multiple_endpoints(self):
+ r = ZmqTestSubConnection(self.factory, ZmqEndpoint(ZmqEndpointType.Bind, "tcp://127.0.0.1:5556"), ZmqEndpoint(ZmqEndpointType.Bind, "inproc://endpoint"))
+ s1 = ZmqPubConnection(self.factory, ZmqEndpoint(ZmqEndpointType.Connect, "tcp://127.0.0.1:5556"))
+--
+1.7.9.3
+
diff --git a/python-txzmq.spec b/python-txzmq.spec
new file mode 100644
index 0000000..138368e
--- /dev/null
+++ b/python-txzmq.spec
@@ -0,0 +1,57 @@
+Name: python-txzmq
+Version: 0.3.1
+Release: 2%{?dist}
+Summary: Twisted bindings for ZeroMQ
+
+Group: Development/Languages
+License: GPLv2
+URL: http://pypi.python.org/pypi/txZMQ
+Source0: http://pypi.python.org/packages/source/t/txZMQ/txZMQ-0.3.1.tar.gz
+Patch0: 0001-Corrected-FSF-address.patch
+Patch1: 0002-Disable-EPGM-test.patch
+
+BuildArch: noarch
+
+
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+BuildRequires: python-nose
+BuildRequires: python-zmq
+BuildRequires: python-twisted
+
+Requires: python-zmq
+Requires: python-twisted
+
+%description
+txZMQ allows to integrate easily `ZeroMQ <http://zeromq.org>`_ sockets into
+Twisted event loop (reactor).
+
+%prep
+%setup -q -n txZMQ-%{version}
+%patch0 -p1 -b .correct_fsf_address
+%patch1 -p1 -b .disable_epgm_test
+
+%build
+%{__python} setup.py build
+
+%check
+PYTHONPATH=$(pwd) nosetests
+
+%install
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+
+
+%files
+%doc README.rst LICENSE.txt
+
+%{python_sitelib}/*
+
+%changelog
+* Mon Apr 09 2012 Ralph Bean <rbean at redhat.com> 0.3.1-2
+- Changed BuildRequires python-devel to python2-devel.
+- Dropped the %defattr macro .
+- Patched to disable the EPGM test. libpgm isn't packaged for fedora yet.
+- Added %check section to run nosetests.
+
+* Thu Apr 05 2012 Ralph Bean <rbean at redhat.com> 0.3.1-1
+- initial package for Fedora
diff --git a/sources b/sources
index e69de29..1dc9acb 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+513bad68f9cfcee2076f4943e4156c80 txZMQ-0.3.1.tar.gz
More information about the scm-commits
mailing list