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