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