f338ef
From 58bc818f19cbc8e4dd97097dc3e4ec7af8fa8d4a Mon Sep 17 00:00:00 2001
f338ef
From: Rinku Kothiya <rkothiya@redhat.com>
f338ef
Date: Tue, 7 May 2019 05:35:11 +0000
f338ef
Subject: [PATCH 193/221] spec: fixed python dependency for rhel6
f338ef
f338ef
Installing redhat-storage-server was failing with python dependency
f338ef
for glusterfs-geo-replication package. This patch conditionally sets
f338ef
the python version for rhel7 and fixes the problem.
f338ef
f338ef
Label: DOWNSTREAM ONLY
f338ef
f338ef
BUG: 1704207
f338ef
f338ef
Change-Id: Ie3b079fd1ccfa6fd2cbf5b08b7a70bd03f090e01
f338ef
fixes: bz#1704207
f338ef
Signed-off-by: Rinku Kothiya <rkothiya@redhat.com>
f338ef
Reviewed-on: https://code.engineering.redhat.com/gerrit/169555
f338ef
Tested-by: RHGS Build Bot <nigelb@redhat.com>
f338ef
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
f338ef
---
f338ef
 glusterfs.spec.in | 4 ++++
f338ef
 1 file changed, 4 insertions(+)
f338ef
f338ef
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
f338ef
index c505cd9..1150101 100644
f338ef
--- a/glusterfs.spec.in
f338ef
+++ b/glusterfs.spec.in
f338ef
@@ -500,7 +500,11 @@ Summary:          GlusterFS Geo-replication
f338ef
 Requires:         %{name}%{?_isa} = %{version}-%{release}
f338ef
 Requires:         %{name}-server%{?_isa} = %{version}-%{release}
f338ef
 Requires:         python%{_pythonver}
f338ef
+%if ( 0%{?rhel} && 0%{?rhel} < 7 )
f338ef
+Requires:         python-prettytable
f338ef
+%else
f338ef
 Requires:         python%{_pythonver}-prettytable
f338ef
+%endif
f338ef
 Requires:         python%{_pythonver}-gluster = %{version}-%{release}
f338ef
 
f338ef
 Requires:         rsync
f338ef
-- 
f338ef
1.8.3.1
f338ef