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