]> git.pld-linux.org Git - packages/efi-boot-update.git/blame_incremental - efi-boot-update.spec
- x32 rebuild
[packages/efi-boot-update.git] / efi-boot-update.spec
... / ...
CommitLineData
1# $Revision: 1.81 $, $Date: 2012/04/20 10:52:52 $
2Summary: EFI bootloader updater
3Summary(pl.UTF-8): Skrypt do uaktualniania bootloaderów EFI
4Name: efi-boot-update
5Version: 0.2
6Release: 2
7License: GPL v2
8Group: Applications/System
9Source0: %{name}
10Source1: update.conf
11Source2: grub.conf
12Source3: grub-installed.conf
13Source4: kernel.conf
14Source5: kernel-old.conf
15Source10: README
16Source11: TODO
17URL: http://www.pld-linux.org/
18BuildRequires: help2man
19Suggests: efibootmgr
20Suggests: efi-shell-x64
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%define _sbindir /sbin
24
25%description
26Script to update EFI bootloaders.
27
28%description -l pl.UTF-8
29Skrypt do uaktualniania bootloaderów EFI.
30
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
43install -d $RPM_BUILD_ROOT{/lib/efi/{ia32,x64},%{_sbindir},%{_mandir}/man8}
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
48install %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT/etc/efi-boot/update.d
49install %{SOURCE4} %{SOURCE5} $RPM_BUILD_ROOT/etc/efi-boot/update.d
50
51%clean
52rm -rf $RPM_BUILD_ROOT
53
54# Most efi-boot-update-managed loaders will use kernel files
55# even if the kernel itself is not built as EFI
56%triggerin -- kernel
57/sbin/efi-boot-update --auto || :
58%triggerin -- kernel-longterm
59/sbin/efi-boot-update --auto || :
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
67%dir /etc/efi-boot/update.d
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
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
72%dir /lib/efi
73%dir /lib/efi/ia32
74%dir /lib/efi/x64
75%{_mandir}/man8/%{name}.8*
This page took 0.069216 seconds and 4 git commands to generate.