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