]>
Commit | Line | Data |
---|---|---|
50806133 | 1 | Summary: ELILO: EFI Linux Boot Loader |
912f5ae5 | 2 | Summary(pl.UTF-8): ELILO - linuksowy bootloader dla platform EFI |
50806133 | 3 | Name: elilo |
a6044d98 | 4 | Version: 3.14 |
a2bb9ceb | 5 | Release: 1.1 |
95c8ecae | 6 | License: GPL v2+ |
50806133 | 7 | Group: Applications/System |
a6044d98 JB |
8 | Source0: http://downloads.sourceforge.net/elilo/%{name}-%{version}-all.tar.gz |
9 | # Source0-md5: d16086bcb228d2c25e241d73c1bf36be | |
50806133 | 10 | URL: http://elilo.sourceforge.net/ |
95c8ecae JB |
11 | BuildRequires: gnu-efi >= 3.0d |
12 | ExclusiveArch: %{ix86} %{x8664} ia64 | |
50806133 JB |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
14 | ||
a2bb9ceb JK |
15 | %ifarch %{ix86} |
16 | %define efi_arch ia32 | |
17 | %endif | |
18 | %ifarch %{x8664} | |
19 | %define efi_arch x64 | |
20 | %endif | |
21 | %ifarch ia64 | |
22 | %define efi_arch ia64 | |
23 | %endif | |
24 | ||
50806133 | 25 | %description |
95c8ecae JB |
26 | ELILO is the EFI Linux boot loader for IA-64 (IPF), IA-32 (x86) and |
27 | x86_64 EFI-based platforms. | |
50806133 | 28 | |
6c49dd77 | 29 | %description -l pl.UTF-8 |
95c8ecae JB |
30 | ELILO to linuksowy bootloader dla platform IA-64 (IPF), IA-32 (x86) |
31 | oraz x86_64 opartych na EFI. | |
50806133 JB |
32 | |
33 | %prep | |
a6044d98 JB |
34 | %setup -q -c |
35 | ||
36 | tar xf elilo-%{version}-source.tar.gz | |
50806133 JB |
37 | |
38 | %build | |
a6044d98 | 39 | %{__make} -C elilo -j1 \ |
2f5fbc5d | 40 | ARCH=$(echo %{_target_base_arch} | sed -e 's/i386/ia32/') \ |
50806133 | 41 | CC="%{__cc}" \ |
2f5fbc5d JB |
42 | OPTIMFLAGS="%{rpmcflags}" \ |
43 | EFICRT0=%{_libdir} \ | |
44 | EFILIB=%{_libdir} \ | |
45 | GNUEFILIB=%{_libdir} | |
50806133 JB |
46 | |
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
a2bb9ceb | 49 | install -d $RPM_BUILD_ROOT{%{_sbindir},/lib/efi/%{efi_arch}} |
50806133 | 50 | |
a6044d98 | 51 | install elilo/tools/eliloalt $RPM_BUILD_ROOT%{_sbindir} |
a2bb9ceb JK |
52 | install elilo/elilo.efi $RPM_BUILD_ROOT/lib/efi/%{efi_arch}/elilo.efi |
53 | ||
54 | %triggerpostun -- %{name} < 3.14-1.1 | |
55 | # someone may have boot configured from this misplaced location | |
56 | # better put elilo.efi copy there too | |
57 | echo "Upgrade detected, copying elilo.efi to /boot/efi/elilo.efi..." | |
58 | cp --preserve=ship,timestamps /lib/efi/%{efi_arch}/elilo.efi /boot/efi/elilo.efi || : | |
59 | echo "Remove /boot/efi/elilo.efi if you don't need it." | |
50806133 JB |
60 | |
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
a6044d98 | 66 | %doc %{version}-release-notes.txt elilo/{ChangeLog,README*,TODO} elilo/docs/*.txt elilo/examples |
50806133 | 67 | %attr(755,root,root) %{_sbindir}/eliloalt |
a2bb9ceb | 68 | /lib/efi/%{efi_arch}/elilo.efi |