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