Scriptlets replaced with new systemd macros
This commit is contained in:
parent
d2bcec649b
commit
5b976e5f84
19
dlm.spec
19
dlm.spec
@ -1,6 +1,6 @@
|
|||||||
Name: dlm
|
Name: dlm
|
||||||
Version: 3.99.5
|
Version: 3.99.5
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
License: GPLv2 and GPLv2+ and LGPLv2+
|
License: GPLv2 and GPLv2+ and LGPLv2+
|
||||||
# For a breakdown of the licensing, see README.license
|
# For a breakdown of the licensing, see README.license
|
||||||
Group: System Environment/Kernel
|
Group: System Environment/Kernel
|
||||||
@ -53,21 +53,13 @@ install -Dm 0644 init/dlm.service %{buildroot}%{_unitdir}/dlm.service
|
|||||||
install -Dm 0644 init/dlm.sysconfig %{buildroot}/etc/sysconfig/dlm
|
install -Dm 0644 init/dlm.sysconfig %{buildroot}/etc/sysconfig/dlm
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ $1 -eq 1 ] ; then
|
%systemd_post dlm.service
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ] ; then
|
%systemd_preun dlm.service
|
||||||
/bin/systemctl --no-reload disable dlm.service > /dev/null 2>&1 || :
|
|
||||||
/bin/systemctl stop dlm.service > /dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
%systemd_postun_with_restart dlm.service
|
||||||
if [ $1 -ge 1 ] ; then
|
|
||||||
/bin/systemctl try-restart dlm.service >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -116,6 +108,9 @@ developing applications that use %{name}.
|
|||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 05 2012 Václav Pavlín <vpavlin@redhat.com> - 3.99.5-7
|
||||||
|
- Scriptlets replaced with new systemd macros (#850093)
|
||||||
|
|
||||||
* Tue Aug 28 2012 David Teigland <teigland@redhat.com> - 3.99.5-6
|
* Tue Aug 28 2012 David Teigland <teigland@redhat.com> - 3.99.5-6
|
||||||
- only fedora requires kernel-modules-extra
|
- only fedora requires kernel-modules-extra
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user