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

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


commit 6c53c9cfdc80dcb7ad66e0387c65cb3eca4361a8
Author: Ralph Bean <rbean at redhat.com>
Date:   Tue May 29 22:40:47 2012 -0400

    Patch out setuptools dep on Twisted for epel.

 python-txws.spec |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/python-txws.spec b/python-txws.spec
index 61dd154..b84cceb 100644
--- a/python-txws.spec
+++ b/python-txws.spec
@@ -2,7 +2,7 @@
 
 Name:             python-txws
 Version:          0.7
-Release:          3%{?dist}
+Release:          4%{?dist}
 Summary:          Twisted WebSockets wrapper
 
 Group:            Development/Languages
@@ -25,9 +25,16 @@ for adding WebSockets server support to your favorite Twisted applications.
 %prep
 %setup -q -n txWS-%{version}
 
+# 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 
 
+
 %install
 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
 
@@ -42,6 +49,9 @@ for adding WebSockets server support to your favorite Twisted applications.
 %{python_sitelib}/* 
 
 %changelog
+* Tue May 29 2012 Ralph Bean <rbean at redhat.com> 0.7-4
+- Patch out setuptools dep on Twisted for epel.
+
 * Mon Apr 09 2012 Ralph Bean <rbean at redhat.com> 0.7-3
 - Removed defattr in %files section.
 


More information about the scm-commits mailing list