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