Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Sneaking in an epel fix in the spec file.

  • Loading branch information...
commit 33968eb5b916b27f50d1b1a83f4843d521c6f63d 1 parent ef96e1e
@ralphbean ralphbean authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 python-tw2-jqplugins-gritter.spec
View
12 python-tw2-jqplugins-gritter.spec
@@ -34,6 +34,18 @@ python-tw2-jqplugins-ui.
%prep
%setup -q -n %{modname}-%{version}
+%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
+
+# Remove all the fancy nosetests configuration for older python
+rm setup.cfg
+
+%endif
+
+
%build
%{__python} setup.py build
# This is a hack to get the jqplugins to not stomp all over each others
Please sign in to comment.
Something went wrong with that request. Please try again.