[python-tw2-forms] Revert "extra rhel6 ism removal"

Ralph Bean ralph at fedoraproject.org
Mon Apr 28 17:32:02 UTC 2014


commit 7f69f2eb455320a0df45d435800d8278ca92991c
Author: Ralph Bean <rbean at redhat.com>
Date:   Mon Apr 28 11:43:07 2014 -0400

    Revert "extra rhel6 ism removal"
    
    This reverts commit ac65e1c2a54b598da4ac958a7915619d824841c9.

 python-tw2-forms.spec |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/python-tw2-forms.spec b/python-tw2-forms.spec
index 44f9e79..19b1c9a 100644
--- a/python-tw2-forms.spec
+++ b/python-tw2-forms.spec
@@ -51,6 +51,19 @@ tw2.forms contains the basic form widgets.
 %setup -q -n %{modname}-%{version}
 %patch0 -p1
 
+%if %{?rhel}%{!?rhel:0} >= 6
+
+# Make sure that epel/rhel picks up the correct version of webob
+awk 'NR==1{print "import __main__; __main__.__requires__ = __requires__ = [\"WebOb>=1.0\"]; import pkg_resources"}1' setup.py > setup.py.tmp
+mv setup.py.tmp setup.py
+
+sed -i 's|Jinja2|jinja2|g' setup.py
+
+# Remove all the fancy nosetests configuration for older python
+rm setup.cfg
+
+%endif
+
 %build
 %{__python} setup.py build
 


More information about the scm-commits mailing list