]> git.pld-linux.org Git - packages/efi-boot-update.git/blame - efi-boot-update.spec
The EFI shell is now packaged separately
[packages/efi-boot-update.git] / efi-boot-update.spec
CommitLineData
7a63766a
JK
1# $Revision: 1.81 $, $Date: 2012/04/20 10:52:52 $
2#
3Summary: EFI bootloader updater
4Name: efi-boot-update
5Version: 0.1
6Release: 0.1
7License: GPL v2
8Group: Applications
9Source0: %{name}
10Source1: update.conf
99b2887b
JK
11Source2: grub.conf
12Source3: grub-installed.conf
7a63766a
JK
13Source10: README
14Source11: TODO
15URL: http://www.pld-linux.org/
16BuildRequires: help2man
17Suggests: efibootmgr
99b2887b 18Suggests: efi-shell-x64
7a63766a
JK
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%define _sbindir /sbin
22
23%description
24Script to update EFI bootloaders.
25
26%prep
27%setup -qcT
28cp %{SOURCE0} .
29cp %{SOURCE10} %{SOURCE11} .
30
31%build
32chmod a+x %{name}
33help2man --no-info ./%{name} > %{name}.8
34
35%install
36rm -rf $RPM_BUILD_ROOT
37install -d $RPM_BUILD_ROOT/etc/efi-boot/update.d
f8b86fe2 38install -d $RPM_BUILD_ROOT{/lib/efi/{ia32,x64},%{_sbindir},%{_mandir}/man8}
7a63766a
JK
39
40install %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
41install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}.8
42install %{SOURCE1} $RPM_BUILD_ROOT/etc/efi-boot
99b2887b 43install %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT/etc/efi-boot/update.d
7a63766a
JK
44
45%clean
46rm -rf $RPM_BUILD_ROOT
47
48# Most efi-boot-update-managed loaders will use kernel files
49# even if the kernel itself is not build as EFI
50%triggerin -- kernel
45f5d1d8 51/sbin/efi-boot-update || :
7a63766a 52%triggerin -- kernel-longterm
45f5d1d8 53/sbin/efi-boot-update || :
7a63766a
JK
54
55%files
56%defattr(644,root,root,755)
57%doc README TODO
58%attr(755,root,root) %{_sbindir}/%{name}
59%dir /etc/efi-boot
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
85de1e0b 63%dir /lib/efi
f8b86fe2 64%dir /lib/efi/ia32
85de1e0b 65%dir /lib/efi/x64
7a63766a 66%{_mandir}/man8/%{name}.8*
This page took 0.074745 seconds and 4 git commands to generate.