[python-alembic] avoid python3 on rhel7 and adjust guards for rhel6
Pádraig Brady
pbrady at fedoraproject.org
Tue Jan 28 12:11:05 UTC 2014
commit 2f853042e787e1af1570a0b0469e994aadd67226
Author: Pádraig Brady <P at draigBrady.com>
Date: Tue Jan 28 10:51:04 2014 +0000
avoid python3 on rhel7 and adjust guards for rhel6
python-alembic.spec | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/python-alembic.spec b/python-alembic.spec
index d173770..b5c495f 100644
--- a/python-alembic.spec
+++ b/python-alembic.spec
@@ -1,4 +1,4 @@
-%if 0%{?fedora} > 12 || 0%{?rhel} > 6
+%if 0%{?fedora} > 12
%global with_python3 1
%endif
@@ -26,7 +26,7 @@ Requires: python-mako
Requires: python-setuptools
# See if we're building for python earlier than 2.7
-%if %{?rhel}%{!?rhel:0} >= 6
+%if %{?rhel}%{!?rhel:0} <= 6
BuildRequires: python-sqlalchemy0.7 >= 0.7.4
BuildRequires: python-argparse
BuildRequires: python-nose1.1
@@ -97,7 +97,7 @@ cp -a . %{py3dir}
%endif
# Make sure that epel/rhel picks up the correct version of sqlalchemy
-%if %{?rhel}%{!?rhel:0} >= 6
+%if %{?rhel}%{!?rhel:0} <= 6
awk 'NR==1{print "import __main__; __main__.__requires__ = __requires__ = [\"sqlalchemy>=0.6\", \"nose>=0.11\"]; import pkg_resources"}1' setup.py > setup.py.tmp
mv setup.py.tmp setup.py
%endif
More information about the scm-commits
mailing list