From 3e980c5eff495725e7c01793451bc81fd6f94ad5 Mon Sep 17 00:00:00 2001 From: Kaleb KEITHLEY Date: Tue, 8 Nov 2016 15:08:37 +0530 Subject: build: Update version check for resource-agents on RHEL With bug1302545[1] and bug1303037[2], portblock resource agent is made available as part of resource-agents-3.9.5* package on RHEL 6.8 and RHEL 7.3 respectively. This change is to update the same in the glusterfs spec. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1302545 [2] https://bugzilla.redhat.com/show_bug.cgi?id=1303037 Change-Id: I5917e5f22f07b4121d636b099dd8815847e1338f BUG: 1389293 Author: Kaleb KEITHLEY Signed-off-by: Soumya Koduri Reviewed-on: http://review.gluster.org/15803 Reviewed-by: Kaleb KEITHLEY Reviewed-by: jiffin tony Thottan NetBSD-regression: NetBSD Build System Smoke: Gluster Build System CentOS-regression: Gluster Build System --- glusterfs.spec.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glusterfs.spec.in b/glusterfs.spec.in index bf294ee0ae2..4e834dedd67 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -378,9 +378,9 @@ Requires: pcs, dbus %if ( 0%{?rhel} && 0%{?rhel} == 6 ) Requires: cman, pacemaker, corosync %endif -%if ( 0%{?fedora} ) -# we need portblock resource-agent in 3.9.6 and later. -Requires: resource-agents >= 3.9.6 +%if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} > 5 ) +# we need portblock resource-agent in 3.9.5 and later. +Requires: resource-agents >= 3.9.5 %endif %description ganesha -- cgit