]> git.pld-linux.org Git - packages/efi-boot-update.git/blob - efi-boot-update.spec
be645cb09f75e8d3aab3320de2b58527f2544be9
[packages/efi-boot-update.git] / efi-boot-update.spec
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
4 Name:           efi-boot-update
5 Version:        0.1
6 Release:        1
7 License:        GPL v2
8 Group:          Applications/System
9 Source0:        %{name}
10 Source1:        update.conf
11 Source2:        grub.conf
12 Source3:        grub-installed.conf
13 Source10:       README
14 Source11:       TODO
15 URL:            http://www.pld-linux.org/
16 BuildRequires:  help2man
17 Suggests:       efibootmgr
18 Suggests:       efi-shell-x64
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         _sbindir /sbin
22
23 %description
24 Script to update EFI bootloaders.
25
26 %description -l pl.UTF-8
27 Skrypt do uaktualniania bootloaderów EFI.
28
29 %prep
30 %setup -qcT
31 cp %{SOURCE0} .
32 cp %{SOURCE10} %{SOURCE11} .
33
34 %build
35 chmod a+x %{name}
36 help2man --no-info ./%{name} > %{name}.8
37
38 %install
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}
42
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
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 # Most efi-boot-update-managed loaders will use kernel files
52 # even if the kernel itself is not built as EFI
53 %triggerin -- kernel
54 /sbin/efi-boot-update --auto || :
55 %triggerin -- kernel-longterm
56 /sbin/efi-boot-update --auto || :
57
58 %files
59 %defattr(644,root,root,755)
60 %doc README TODO
61 %attr(755,root,root) %{_sbindir}/%{name}
62 %dir /etc/efi-boot
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
67 %dir /lib/efi
68 %dir /lib/efi/ia32
69 %dir /lib/efi/x64
70 %{_mandir}/man8/%{name}.8*
This page took 0.026452 seconds and 2 git commands to generate.