[python-datanommer-models/f17] Patch setup.py to pull in correct sqlalchemy version.

Ralph Bean ralph at fedoraproject.org
Thu Nov 8 17:55:18 UTC 2012


commit 230233159cee055fb05cb0d8f863a9a4b0996d59
Author: Ralph Bean <rbean at redhat.com>
Date:   Thu Nov 8 10:16:30 2012 -0500

    Patch setup.py to pull in correct sqlalchemy version.

 python-datanommer-models.spec |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/python-datanommer-models.spec b/python-datanommer-models.spec
index 9bf7d31..2653c02 100644
--- a/python-datanommer-models.spec
+++ b/python-datanommer-models.spec
@@ -2,7 +2,7 @@
 
 Name:           python-datanommer-models
 Version:        0.2.0
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        SQLAlchemy models for datanommer
 
 Group:          Development/Libraries
@@ -36,6 +36,10 @@ SQLAlchemy models for datanommer.
 %prep
 %setup -q -n %{modname}-%{version}
 
+# Make sure that epel/rhel picks up the correct version of sqlalchemy
+%{__awk} 'NR==1{print "import __main__; __main__.__requires__ = __requires__ = [\"sqlalchemy>=0.7\"]; import pkg_resources"}1' setup.py > setup.py.tmp
+%{__mv} setup.py.tmp setup.py
+
 # Remove upstream egg-info so that it gets rebuilt.
 rm -rf *.egg-info
 
@@ -61,6 +65,8 @@ rm -rf *.egg-info
 
 
 %changelog
+* Thu Nov 08 2012 Ralph Bean <rbean at redhat.com> - 0.2.0-6
+- Patch setup.py to pull in the correct sqlalchemy for el6.
 * Thu Nov 08 2012 Ralph Bean <rbean at redhat.com> - 0.2.0-5
 - Added temporary BR on python-bunch to get around an old moksha issue.
 * Mon Oct 22 2012 Ralph Bean <rbean at redhat.com> - 0.2.0-4


More information about the scm-commits mailing list