1 # $Revision: 1.81 $, $Date: 2012/04/20 10:52:52 $
3 Summary: EFI bootloader updater
11 Source2: shellx64.conf
12 Source3: shellia32.conf
14 Source5: grub-installed.conf
17 URL: http://www.pld-linux.org/
18 BuildRequires: help2man
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _sbindir /sbin
25 Script to update EFI bootloaders.
30 cp %{SOURCE10} %{SOURCE11} .
34 help2man --no-info ./%{name} > %{name}.8
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT/etc/efi-boot/update.d
39 install -d $RPM_BUILD_ROOT{/lib/efi/{ia32,x64},%{_sbindir},%{_mandir}/man8}
41 install %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
42 install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}.8
43 install %{SOURCE1} $RPM_BUILD_ROOT/etc/efi-boot
44 install %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} \
45 $RPM_BUILD_ROOT/etc/efi-boot/update.d
48 rm -rf $RPM_BUILD_ROOT
50 # Most efi-boot-update-managed loaders will use kernel files
51 # even if the kernel itself is not build as EFI
53 /sbin/efi-boot-update || :
54 %triggerin -- kernel-longterm
55 /sbin/efi-boot-update || :
58 %defattr(644,root,root,755)
60 %attr(755,root,root) %{_sbindir}/%{name}
62 %config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.conf
63 %config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/*.conf
64 %dir /etc/efi-boot/update.d
68 %{_mandir}/man8/%{name}.8*