1 Summary: ELILO: EFI Linux Boot Loader
2 Summary(pl.UTF-8): ELILO - linuksowy bootloader dla platform EFI
7 Group: Applications/System
8 Source0: http://downloads.sourceforge.net/elilo/%{name}-%{version}-all.tar.gz
9 # Source0-md5: d16086bcb228d2c25e241d73c1bf36be
11 Source2: %{name}.efi-boot-update
12 URL: http://elilo.sourceforge.net/
13 BuildRequires: gnu-efi >= 3.0d
14 Suggests: efi-boot-update
15 ExclusiveArch: %{ix86} %{x8664} ia64
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 ELILO is the EFI Linux boot loader for IA-64 (IPF), IA-32 (x86) and
30 x86_64 EFI-based platforms.
32 %description -l pl.UTF-8
33 ELILO to linuksowy bootloader dla platform IA-64 (IPF), IA-32 (x86)
34 oraz x86_64 opartych na EFI.
39 tar xf elilo-%{version}-source.tar.gz
42 %{__make} -C elilo -j1 \
43 ARCH=$(echo %{_target_base_arch} | sed -e 's/i386/ia32/') \
45 OPTIMFLAGS="%{rpmcflags}" \
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_sbindir},/lib/efi/%{efi_arch}} \
53 $RPM_BUILD_ROOT/etc/efi-boot/update.d
55 install elilo/tools/eliloalt $RPM_BUILD_ROOT%{_sbindir}
56 install elilo/elilo.efi $RPM_BUILD_ROOT/lib/efi/%{efi_arch}/elilo.efi
58 install %{SOURCE1} $RPM_BUILD_ROOT/etc/efi-boot/%{name}.conf
59 sed -e's/ARCH=.*/ARCH=%{efi_arch}/' %{SOURCE2} \
60 > $RPM_BUILD_ROOT/etc/efi-boot/update.d/%{name}.conf
62 %triggerpostun -- %{name} < 3.14-1.1
63 # someone may have boot configured from this misplaced location
64 # better put elilo.efi copy there too
65 echo "Upgrade detected, copying elilo.efi to /boot/efi/elilo.efi..."
66 cp --preserve=ship,timestamps /lib/efi/%{efi_arch}/elilo.efi /boot/efi/elilo.efi || :
67 echo "Remove /boot/efi/elilo.efi if you don't need it."
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
74 %doc %{version}-release-notes.txt elilo/{ChangeLog,README*,TODO} elilo/docs/*.txt elilo/examples
75 %attr(755,root,root) %{_sbindir}/eliloalt
76 /etc/efi-boot/%{name}.conf
77 /etc/efi-boot/update.d/%{name}.conf
78 /lib/efi/%{efi_arch}/elilo.efi