74b1de
From b9a19aef5de94eb91162448ad687f2d2d194f82c Mon Sep 17 00:00:00 2001
74b1de
From: Rinku Kothiya <rkothiya@redhat.com>
74b1de
Date: Thu, 14 Nov 2019 09:55:15 +0000
74b1de
Subject: [PATCH 316/316] spec: fixed python-prettytable dependency for rhel6
74b1de
74b1de
Installing glusterfs on rhel6 was failing with python-prettytable
74b1de
dependency as it required python2-prettytable for glusterfs-events.
74b1de
This patch conditionally sets the python version for rhel7 and
74b1de
fixes the problem.
74b1de
74b1de
Label: DOWNSTREAM ONLY
74b1de
74b1de
BUG: 1771614
74b1de
74b1de
Change-Id: I6288daa5d8c2d82a6d73a0d9722786a2a99b9db5
74b1de
fixes: bz#1771614
74b1de
Signed-off-by: Rinku Kothiya <rkothiya@redhat.com>
74b1de
Reviewed-on: https://code.engineering.redhat.com/gerrit/185385
74b1de
Tested-by: RHGS Build Bot <nigelb@redhat.com>
74b1de
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
74b1de
---
74b1de
 glusterfs.spec.in | 5 ++++-
74b1de
 1 file changed, 4 insertions(+), 1 deletion(-)
74b1de
74b1de
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
74b1de
index 3c2e2dc..eeadb65 100644
74b1de
--- a/glusterfs.spec.in
74b1de
+++ b/glusterfs.spec.in
74b1de
@@ -706,7 +706,7 @@ This package provides the translators needed on any GlusterFS client.
74b1de
 %package events
74b1de
 Summary:          GlusterFS Events
74b1de
 Requires:         %{name}-server%{?_isa} = %{version}-%{release}
74b1de
-Requires:         python%{_pythonver} python%{_pythonver}-prettytable
74b1de
+Requires:         python%{_pythonver}
74b1de
 Requires:         python%{_pythonver}-gluster = %{version}-%{release}
74b1de
 %if ( 0%{?rhel} && 0%{?rhel} < 8 )
74b1de
 Requires:         python-requests
74b1de
@@ -714,7 +714,10 @@ Requires:         python-requests
74b1de
 Requires:         python%{_pythonver}-requests
74b1de
 %endif
74b1de
 %if ( 0%{?rhel} && 0%{?rhel} < 7 )
74b1de
+Requires:         python-prettytable
74b1de
 Requires:         python-argparse
74b1de
+%else
74b1de
+Requires:         python%{_pythonver}-prettytable
74b1de
 %endif
74b1de
 %if ( 0%{?_with_systemd:1} )
74b1de
 %{?systemd_requires}
74b1de
-- 
74b1de
1.8.3.1
74b1de