revised spec to correctly do init.d for fedora<=16, rhel<=6; native

systemd for f17 and rhel7
This commit is contained in:
Kaleb KEITHLEY 2012-01-03 11:24:13 -05:00
parent a61c3d3795
commit 5b0b5ff729

View File

@ -40,7 +40,7 @@ Source6: glusterfsd.logrotate
Patch0: libglusterfs.Makefile.patch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%if ( 0%{?fedora} < 17 || 0%{?rhel} < 7 )
%if ( 0%{?fedora} && 0%{?fedora} < 17 ) || ( 0%{?rhel} && 0%{?rhel} < 7 )
Source7: glusterd.init
Source8: glusterfsd.init
Requires(post): /sbin/chkconfig
@ -391,6 +391,10 @@ if [ $1 -ge 1 ]; then
fi
%changelog
* Tue Jan 3 2012 Kaleb S. KEITHLEY <kkeithle@redhat.com> - 3.2.5-5
- revised spec for init.d for fedora<=16, rhel<=6; native systemd for
f17 and rhel7
* Wed Dec 7 2011 Kaleb S. KEITHLEY <kkeithle@redhat.com> - 3.2.5-4
- revised sysconfig and init.d scripts. (glusterfsd.{init,sysconfig,service}
should go away, as glusterd is responsible for starting and stopping it.)