]> git.pld-linux.org Git - packages/efi-boot-update.git/blame - efi-boot-update.spec
- pl, better Group
[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
JK
4Name: efi-boot-update
5Version: 0.1
e962d027 6Release: 1
7a63766a 7License: GPL v2
566f1b8d 8Group: Applications/System
7a63766a
JK
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
566f1b8d
JB
26%description -l pl.UTF-8
27Skrypt do uaktualniania bootloaderów EFI.
28
7a63766a
JK
29%prep
30%setup -qcT
31cp %{SOURCE0} .
32cp %{SOURCE10} %{SOURCE11} .
33
34%build
35chmod a+x %{name}
36help2man --no-info ./%{name} > %{name}.8
37
38%install
39rm -rf $RPM_BUILD_ROOT
40install -d $RPM_BUILD_ROOT/etc/efi-boot/update.d
f8b86fe2 41install -d $RPM_BUILD_ROOT{/lib/efi/{ia32,x64},%{_sbindir},%{_mandir}/man8}
7a63766a
JK
42
43install %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
44install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}.8
45install %{SOURCE1} $RPM_BUILD_ROOT/etc/efi-boot
99b2887b 46install %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT/etc/efi-boot/update.d
7a63766a
JK
47
48%clean
49rm -rf $RPM_BUILD_ROOT
50
51# Most efi-boot-update-managed loaders will use kernel files
566f1b8d 52# even if the kernel itself is not built as EFI
7a63766a 53%triggerin -- kernel
3509151f 54/sbin/efi-boot-update --auto || :
7a63766a 55%triggerin -- kernel-longterm
3509151f 56/sbin/efi-boot-update --auto || :
7a63766a
JK
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
7a63766a 64%dir /etc/efi-boot/update.d
566f1b8d
JB
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
85de1e0b 67%dir /lib/efi
f8b86fe2 68%dir /lib/efi/ia32
85de1e0b 69%dir /lib/efi/x64
7a63766a 70%{_mandir}/man8/%{name}.8*
This page took 0.054045 seconds and 4 git commands to generate.