ralph pushed to python-pyramid (epel7). "Force usage of the forward compat package on epel7."

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Apr 16 15:32:36 UTC 2015


>From 029cdd580308f99be27c6717a3b3e2e63b27ab5d Mon Sep 17 00:00:00 2001
From: Ralph Bean <rbean at redhat.com>
Date: Thu, 16 Apr 2015 11:09:14 -0400
Subject: Force usage of the forward compat package on epel7.


diff --git a/python-pyramid.spec b/python-pyramid.spec
index c30f916..b966fb5 100644
--- a/python-pyramid.spec
+++ b/python-pyramid.spec
@@ -6,7 +6,7 @@
 
 Name:           python-%{modname}
 Version:        1.5.6
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        The Pyramid web application framework, a Pylons project
 
 Group:          Development/Libraries
@@ -115,6 +115,11 @@ fun, more predictable, and more productive.
 %prep
 %setup -q -n pyramid-%{version}
 
+# Force that a certain version of webob is imported and not the older one.
+awk 'NR==1{print "import __main__; __main__.__requires__ = __requires__ = [\"WebOb>=1.3.1\"]; import pkg_resources"}1' setup.py > setup.py.tmp
+mv setup.py.tmp setup.py
+
+
 # Remove bundled egg info
 rm -rf %{modname}.egg-info
 
@@ -197,6 +202,9 @@ popd
 %endif
 
 %changelog
+* Thu Apr 16 2015 Ralph Bean <rbean at redhat.com> - 1.5.6-2
+- Force usage of the forward compat webob package on epel7.
+
 * Wed Apr 15 2015 Ralph Bean <rbean at redhat.com> - 1.5.6-1
 - new version
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/python-pyramid.git/commit/?h=epel7&id=029cdd580308f99be27c6717a3b3e2e63b27ab5d


More information about the scm-commits mailing list