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