From d61173611e27a1f26d4f6ef67f21a14caecbad1f Mon Sep 17 00:00:00 2001 From: Sachin Bansal Date: Mon, 1 Jun 2015 11:29:02 -0700 Subject: [PATCH] gevent 1.0 is not available for centos 6.x Change-Id: I350ca80eef5552c2c740c3a0e3e30f8f41ff8dea Closes-Bug: 1460211 --- rpm/contrail/contrail.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/rpm/contrail/contrail.spec b/rpm/contrail/contrail.spec index 8c3c697a..13badb00 100644 --- a/rpm/contrail/contrail.spec +++ b/rpm/contrail/contrail.spec @@ -183,7 +183,12 @@ Summary: Contrail Python Lib Group: Applications/System Obsoletes: contrail-api-lib Requires: python-bottle >= 0.11.6 +%if 0%{?rhel} >= 7 Requires: python-gevent >= 1.0 +%endif +%if 0%{?rhel} <= 6 +Requires: python-gevent +%endif Requires: consistent_hash %if 0%{?rhel} <= 6 Requires: python-importlib @@ -355,7 +360,12 @@ Group: Applications/System BuildArch: noarch Requires: python-contrail >= %{_verstr}-%{_relstr} Requires: python-bitarray >= 0.8.0 -Requires: python-gevent >= 1.0 +%if 0%{?rhel} >= 7 +Requires: python-gevent >= 1.0 +%endif +%if 0%{?rhel} <= 6 +Requires: python-gevent +%endif Requires: python-geventhttpclient Requires: python-lxml >= 2.3.2 Requires: python-pycassa