Permalink
Browse files

Sneaking in an epel fix in the spec file.

  • Loading branch information...
1 parent ef96e1e commit 33968eb5b916b27f50d1b1a83f4843d521c6f63d @ralphbean ralphbean committed Apr 17, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 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

0 comments on commit 33968eb

Please sign in to comment.