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
14 Source5: kernel-old.conf
17 URL: http://www.pld-linux.org/
18 BuildRequires: help2man
20 Suggests: efi-shell-x64
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define _sbindir /sbin
26 Script to update EFI bootloaders.
28 %description -l pl.UTF-8
29 Skrypt do uaktualniania bootloaderów EFI.
34 cp %{SOURCE10} %{SOURCE11} .
38 help2man --no-info ./%{name} > %{name}.8
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT/etc/efi-boot/update.d
43 install -d $RPM_BUILD_ROOT{/lib/efi/{ia32,x64},%{_sbindir},%{_mandir}/man8}
45 install %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
46 install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}.8
47 install %{SOURCE1} $RPM_BUILD_ROOT/etc/efi-boot
48 install %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT/etc/efi-boot/update.d
49 install %{SOURCE4} %{SOURCE5} $RPM_BUILD_ROOT/etc/efi-boot/update.d
52 rm -rf $RPM_BUILD_ROOT
54 # Most efi-boot-update-managed loaders will use kernel files
55 # even if the kernel itself is not built as EFI
57 /sbin/efi-boot-update --auto || :
58 %triggerin -- kernel-longterm
59 /sbin/efi-boot-update --auto || :
62 %defattr(644,root,root,755)
64 %attr(755,root,root) %{_sbindir}/%{name}
66 %config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.conf
67 %dir /etc/efi-boot/update.d
68 %config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/grub.conf
69 %config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/grub-installed.conf
70 %config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/kernel.conf
71 %config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/kernel-old.conf
75 %{_mandir}/man8/%{name}.8*