summaryrefslogtreecommitdiffstats
path: root/glusterfs.spec.in
diff options
context:
space:
mode:
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r--glusterfs.spec.in11
1 files changed, 8 insertions, 3 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index 0f300f694..f795444da 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -193,9 +193,6 @@ Group: Applications/File
BuildRequires: fuse-devel
Requires: %{name} = %{version}-%{release}
-%if ! 0%{?_with_fusermount}
-Requires: /usr/bin/fusermount
-%endif
Obsoletes: %{name}-client < %{version}-%{release}
Provides: %{name}-client = %{version}-%{release}
@@ -325,6 +322,11 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%{__rm} -f %{buildroot}%{_sysconfdir}/init.d/glusterd
%endif
+%if 0%{?rhel} && 0%{?rhel} <= 5
+%{__install} -D -p -m 0755 extras/init.d/rhel5-load-fuse.modules \
+ %{buildroot}%{_sysconfdir}/sysconfig/modules/glusterfs-fuse.modules
+%endif
+
%{__mkdir_p} %{buildroot}%{_localstatedir}/log/glusterd
%{__mkdir_p} %{buildroot}%{_localstatedir}/log/glusterfs
%{__mkdir_p} %{buildroot}%{_localstatedir}/log/glusterfsd
@@ -483,6 +485,9 @@ fi
%if 0%{!?_without_fusermount:1}
%{_bindir}/fusermount-glusterfs
%endif
+%if 0%{?rhel} && 0%{?rhel} <= 5
+%{_sysconfdir}/sysconfig/modules/glusterfs-fuse.modules
+%endif
%files server
%defattr(-,root,root,-)