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