Commits

Ralph Bean  committed c4a8303

Sneaking in an epel fix in the spec file.

  • Participants
  • Parent commits dd7c09a

Comments (0)

Files changed (1)

File python-tw2-jit.spec

 %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
+
+%endif
+
+
 %build
 %{__python} setup.py build