1 # $Revision: 1.81 $, $Date: 2012/04/20 10:52:52 $
2 Summary: EFI bootloader updater
3 Summary(pl.UTF-8): Skrypt do uaktualniania bootloaderów EFI
8 Group: Applications/System
12 Source3: grub-installed.conf
15 URL: http://www.pld-linux.org/
16 BuildRequires: help2man
18 Suggests: efi-shell-x64
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _sbindir /sbin
24 Script to update EFI bootloaders.
26 %description -l pl.UTF-8
27 Skrypt do uaktualniania bootloaderów EFI.
32 cp %{SOURCE10} %{SOURCE11} .
36 help2man --no-info ./%{name} > %{name}.8
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT/etc/efi-boot/update.d
41 install -d $RPM_BUILD_ROOT{/lib/efi/{ia32,x64},%{_sbindir},%{_mandir}/man8}
43 install %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
44 install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}.8
45 install %{SOURCE1} $RPM_BUILD_ROOT/etc/efi-boot
46 install %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT/etc/efi-boot/update.d
49 rm -rf $RPM_BUILD_ROOT
51 # Most efi-boot-update-managed loaders will use kernel files
52 # even if the kernel itself is not built as EFI
54 /sbin/efi-boot-update --auto || :
55 %triggerin -- kernel-longterm
56 /sbin/efi-boot-update --auto || :
59 %defattr(644,root,root,755)
61 %attr(755,root,root) %{_sbindir}/%{name}
63 %config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.conf
64 %dir /etc/efi-boot/update.d
65 %config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/grub.conf
66 %config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/grub-installed.conf
70 %{_mandir}/man8/%{name}.8*