summaryrefslogtreecommitdiffstats
path: root/glusterfs.spec.in
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2016-10-27 08:01:44 -0400
committerPranith Kumar Karampuri <pkarampu@redhat.com>2016-10-28 05:30:30 -0700
commit1e421f75e040ebfce1bb6b36f9c213630807a45c (patch)
tree95453b79e6cb4ce1e3df3f5543df15d6017c33cd /glusterfs.spec.in
parentad9957af5ce8d351bebe494ba4fa474fac972c6b (diff)
build: incorrect Requires for portblock resource agent
was: Requires: /usr/lib/ocf/resource.d/portblock s/b: Requires: /usr/lib/ocf/resource.d/heartbeat/portblock or: Requires: resource-agents >= 3.9.6 Note: RHEL6.8 and RHEL7.2 have resource-agents-3.9.5 which does not contain the portblock resource agent. I'm not sure what the point is actually of: Requires: /usr/lib/ocf/resource.d/heartbeat/portblock as it will fail to install on RHEL whether you have the resource-agents package installed or not. Hence wrapping it in %if ( fedora ). Change-Id: Ia7d6a475464c7469018678c98fc710a3b3bfc553 BUG: 1389293 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/15743 Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: jiffin tony Thottan <jthottan@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r--glusterfs.spec.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index 3753651df4a..bf294ee0ae2 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -378,8 +378,10 @@ Requires: pcs, dbus
%if ( 0%{?rhel} && 0%{?rhel} == 6 )
Requires: cman, pacemaker, corosync
%endif
-# we need portblock resource-agent
-Requires: %{_prefix}/lib/ocf/resource.d/portblock
+%if ( 0%{?fedora} )
+# we need portblock resource-agent in 3.9.6 and later.
+Requires: resource-agents >= 3.9.6
+%endif
%description ganesha
GlusterFS is a distributed file-system capable of scaling to several