[python-txzmq] Patch out setuptools dep on Twisted for epel.

Ralph Bean ralph at fedoraproject.org
Wed May 30 02:41:03 UTC 2012


commit 095438a87c7d9b045824077661a25e8276ced95b
Author: Ralph Bean <rbean at redhat.com>
Date:   Tue May 29 22:40:36 2012 -0400

    Patch out setuptools dep on Twisted for epel.

 python-txzmq.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/python-txzmq.spec b/python-txzmq.spec
index cb4438d..6efeeb6 100644
--- a/python-txzmq.spec
+++ b/python-txzmq.spec
@@ -2,7 +2,7 @@
 
 Name:             python-txzmq
 Version:          0.5.0
-Release:          1%{?dist}
+Release:          2%{?dist}
 Summary:          Twisted bindings for ZeroMQ
 
 Group:            Development/Languages
@@ -31,6 +31,12 @@ Twisted event loop (reactor).
 %setup -q -n %{modname}-%{version}
 %patch0 -p1 -b .disable_epgm_test
 
+# Patch out the setuptools requirement on Twisted since epel doesn't ship
+# twisted egg-info
+%if %{?rhel}%{!?rhel:0} >= 6
+%{__sed} -i 's/"Twisted",//' setup.py
+%endif
+
 %build
 %{__python} setup.py build 
 
@@ -47,6 +53,9 @@ PYTHONPATH=$(pwd) nosetests
 %{python_sitelib}/* 
 
 %changelog
+* Tue May 29 2012 Ralph Bean <rbean at redhat.com> - 0.5.0-2
+- Patch out setuptools dep on Twisted for epel.
+
 * Mon May 21 2012 Ralph Bean <rbean at redhat.com> - 0.5.0-1
 - Removed FSF address patch.
 - Packaged new upstream version.


More information about the scm-commits mailing list