]> git.pld-linux.org Git - packages/efi-boot-update.git/blame - efi-boot-update.spec
- disable debug packages
[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
fa487b06 6Release: 3
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
fa487b06
MK
23%define _debugsource_packages 0
24
7a63766a
JK
25%define _sbindir /sbin
26
27%description
28Script to update EFI bootloaders.
29
566f1b8d
JB
30%description -l pl.UTF-8
31Skrypt do uaktualniania bootloaderów EFI.
32
7a63766a
JK
33%prep
34%setup -qcT
35cp %{SOURCE0} .
36cp %{SOURCE10} %{SOURCE11} .
37
38%build
39chmod a+x %{name}
40help2man --no-info ./%{name} > %{name}.8
41
42%install
43rm -rf $RPM_BUILD_ROOT
44install -d $RPM_BUILD_ROOT/etc/efi-boot/update.d
f8b86fe2 45install -d $RPM_BUILD_ROOT{/lib/efi/{ia32,x64},%{_sbindir},%{_mandir}/man8}
7a63766a
JK
46
47install %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
48install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}.8
49install %{SOURCE1} $RPM_BUILD_ROOT/etc/efi-boot
99b2887b 50install %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT/etc/efi-boot/update.d
7dca6d58 51install %{SOURCE4} %{SOURCE5} $RPM_BUILD_ROOT/etc/efi-boot/update.d
7a63766a
JK
52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56# Most efi-boot-update-managed loaders will use kernel files
566f1b8d 57# even if the kernel itself is not built as EFI
7a63766a 58%triggerin -- kernel
3509151f 59/sbin/efi-boot-update --auto || :
7a63766a 60%triggerin -- kernel-longterm
3509151f 61/sbin/efi-boot-update --auto || :
7a63766a
JK
62
63%files
64%defattr(644,root,root,755)
65%doc README TODO
66%attr(755,root,root) %{_sbindir}/%{name}
67%dir /etc/efi-boot
68%config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.conf
7a63766a 69%dir /etc/efi-boot/update.d
566f1b8d
JB
70%config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/grub.conf
71%config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/grub-installed.conf
7dca6d58
JK
72%config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/kernel.conf
73%config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/kernel-old.conf
85de1e0b 74%dir /lib/efi
f8b86fe2 75%dir /lib/efi/ia32
85de1e0b 76%dir /lib/efi/x64
7a63766a 77%{_mandir}/man8/%{name}.8*
This page took 0.158626 seconds and 5 git commands to generate.