1 # $Revision: 1.81 $, $Date: 2012/04/20 10:52:52 $
3 Summary: EFI bootloader updater
11 Source2: shellx64.conf
12 Source3: shellx32.conf
16 URL: http://www.pld-linux.org/
17 BuildRequires: help2man
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _sbindir /sbin
24 Script to update EFI bootloaders.
29 cp %{SOURCE10} %{SOURCE11} .
33 help2man --no-info ./%{name} > %{name}.8
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT/etc/efi-boot/update.d
38 install -d $RPM_BUILD_ROOT{%{_prefix}/lib{,64}/efi,%{_sbindir},%{_mandir}/man8}
40 install %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
41 install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}.8
42 install %{SOURCE1} $RPM_BUILD_ROOT/etc/efi-boot
43 install %{SOURCE2} %{SOURCE3} %{SOURCE4} $RPM_BUILD_ROOT/etc/efi-boot/update.d
46 rm -rf $RPM_BUILD_ROOT
48 # Most efi-boot-update-managed loaders will use kernel files
49 # even if the kernel itself is not build as EFI
52 %triggerin -- kernel-longterm
56 %defattr(644,root,root,755)
58 %attr(755,root,root) %{_sbindir}/%{name}
60 %config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.conf
61 %config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/*.conf
62 %dir /etc/efi-boot/update.d
64 %if "%{_libdir}" != "%{_prefix}/lib"
65 %dir %{_prefix}/lib/efi
67 %{_mandir}/man8/%{name}.8*