forked from pool/grub2
Accepting request 396985 from home:jengelh:branches:Base:System
- Make sure all systemd unit files are passed to %service_ macros. This is merely required for completeness. At the very least this ensures that the grub2-once service really is terminally removed from the system on uninstall. OBS-URL: https://build.opensuse.org/request/show/396985 OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=217
This commit is contained in:
parent
3e8e326ed9
commit
6194e7535c
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 20 09:28:16 UTC 2016 - jengelh@inai.de
|
||||
|
||||
- Make sure all systemd unit files are passed to %service_ macros.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 19 14:56:53 UTC 2016 - agraf@suse.com
|
||||
|
||||
|
@ -700,7 +700,11 @@ perl -ni -e '
|
||||
%fdupes %buildroot%{_bindir}
|
||||
%fdupes %buildroot%{_libdir}
|
||||
|
||||
%pre
|
||||
%service_add_pre grub2-once.service
|
||||
|
||||
%post
|
||||
%service_add_post grub2-once.service
|
||||
/sbin/install-info %{_infodir}/grub-dev.info %{_infodir}/dir || :
|
||||
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
|
||||
|
||||
@ -785,6 +789,7 @@ exit 0
|
||||
%endif
|
||||
|
||||
%preun
|
||||
%service_del_preun grub2-once.service
|
||||
if [ $1 = 0 ]; then
|
||||
/sbin/install-info --delete %{_infodir}/grub-dev.info %{_infodir}/dir || :
|
||||
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
||||
@ -825,6 +830,9 @@ fi
|
||||
%define source_dir build
|
||||
%endif
|
||||
|
||||
%postun
|
||||
%service_del_postun grub2-once.service
|
||||
|
||||
%files -f %{source_dir}/%{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING NEWS README
|
||||
|
Loading…
Reference in New Issue
Block a user