Skip to content

Commit

Permalink
Only depend on python-importlib on RHEL6 and older
Browse files Browse the repository at this point in the history
To avoid a dependency on importlib on non-rhel platforms,
check for rhel first.

Change-Id: I0a2d6777cc338aeef0ba83b40838d631e9f2d040
Partial-Bug: #1488627
  • Loading branch information
dirkmueller committed Sep 8, 2015
1 parent 4c161b7 commit 52e7d88
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion common/rpm/contrail-nodemgr.spec
Expand Up @@ -35,7 +35,7 @@ Requires: xmltodict >= 0.7.0
Requires: python-bottle >= 0.11.6
Requires: python-contrail >= %{_verstr}-%{_relstr}
Requires: ntp
%if 0%{?rhel} <= 6
%if 0%{?rhel} && 0%{?rhel} <= 6
Requires: python-importlib
%endif

Expand Down
2 changes: 1 addition & 1 deletion common/rpm/contrail-openstack-analytics.spec
Expand Up @@ -32,7 +32,7 @@ Requires: contrail-setup >= %{_verstr}-%{_relstr}
Requires: contrail-utils >= %{_verstr}-%{_relstr}
Requires: contrail-nodemgr >= %{_verstr}-%{_relstr}
Requires: python-contrail >= %{_verstr}-%{_relstr}
%if 0%{?rhel} <= 6
%if 0%{?rhel} && 0%{?rhel} <= 6
Requires: python-importlib
%endif

Expand Down
5 changes: 1 addition & 4 deletions common/rpm/contrail-openstack-config.spec
Expand Up @@ -37,9 +37,6 @@ Requires: mysql-server
Requires: contrail-setup >= %{_verstr}-%{_relstr}
Requires: contrail-utils >= %{_verstr}-%{_relstr}
Requires: python-zope-interface
%if 0%{?rhel}
Requires: python-importlib
%endif
Requires: euca2ools >= 1.0-2contrail
Requires: m2crypto
Requires: java-1.7.0-openjdk
Expand All @@ -51,7 +48,7 @@ Requires: contrail-nodemgr >= %{_verstr}-%{_relstr}
Requires: ifmap-server >= 0.3.2-2contrail
Requires: contrail-config-openstack >= %{_verstr}-%{_relstr}
Requires: python-contrail >= %{_verstr}-%{_relstr}
%if 0%{?rhel} <= 6
%if 0%{?rhel} && 0%{?rhel} <= 6
Requires: python-importlib
%endif

Expand Down
2 changes: 1 addition & 1 deletion common/rpm/contrail-openstack-havana-config.spec
Expand Up @@ -45,7 +45,7 @@ Requires: contrail-config-openstack >= %{_verstr}-%{_relstr}
Requires: python-bottle
Requires: contrail-nodemgr >= %{_verstr}-%{_relstr}
Requires: ifmap-server >= 0.3.2-2contrail
%if 0%{?rhel} <= 6
%if 0%{?rhel} && 0%{?rhel} <= 6
Requires: python-importlib
%endif

Expand Down
2 changes: 1 addition & 1 deletion common/rpm/contrail-openstack-icehouse-config.spec
Expand Up @@ -45,7 +45,7 @@ Requires: contrail-config-openstack >= %{_verstr}-%{_relstr}
Requires: python-bottle
Requires: contrail-nodemgr >= %{_verstr}-%{_relstr}
Requires: ifmap-server >= 0.3.2-2contrail
%if 0%{?rhel} <= 6
%if 0%{?rhel} && 0%{?rhel} <= 6
Requires: python-importlib
%endif

Expand Down
2 changes: 1 addition & 1 deletion common/rpm/contrail-openstack-icehouse.spec
Expand Up @@ -41,7 +41,7 @@ Requires: qpid-cpp-server
Requires: haproxy
Requires: rabbitmq-server >= 3.5.0
Requires: supervisor
%if 0%{?rhel} <= 6
%if 0%{?rhel} && 0%{?rhel} <= 6
Requires: python-importlib
%endif
%if 0%{?centos} >= 6
Expand Down
2 changes: 1 addition & 1 deletion common/rpm/contrail-openstack-juno.spec
Expand Up @@ -41,7 +41,7 @@ Requires: qpid-cpp-server
Requires: haproxy
Requires: rabbitmq-server
Requires: supervisor
%if 0%{?rhel} <= 6
%if 0%{?rhel} && 0%{?rhel} <= 6
Requires: python-importlib
%endif
%if 0%{?centos} >= 6
Expand Down
5 changes: 1 addition & 4 deletions common/rpm/contrail-openstack.spec
Expand Up @@ -36,16 +36,13 @@ Requires: memcached
Requires: openstack-nova-novncproxy = 2013.2-2contrail
Requires: python-glance
Requires: python-glanceclient
%if 0%{?rhel}
Requires: python-importlib
%endif
Requires: euca2ools >= 1.0-2contrail
Requires: m2crypto
Requires: qpid-cpp-server
Requires: haproxy
Requires: rabbitmq-server >= 3.5.0
Requires: supervisor
%if 0%{?rhel} <= 6
%if 0%{?rhel} && 0%{?rhel} <= 6
Requires: python-importlib
%endif

Expand Down

0 comments on commit 52e7d88

Please sign in to comment.