1 Summary: GNU-EFI - building EFI applications using the GNU toolchain
2 Summary(pl.UTF-8): GNU-EFI - tworzenie aplikacji EFI przy użyciu narzędzi GNU
4 # NOTE: don't use early 3.1, it doesn't support EFI x86_64
8 # Intel and HP's BSD-like license, except setjmp code coming from GRUB
10 Group: Development/Libraries
11 Source0: http://downloads.sourceforge.net/gnu-efi/%{name}-%{version}.tar.bz2
12 # Source0-md5: ae32011cfe6b1c40c0f244b9a49ba181
13 URL: http://gnu-efi.sourceforge.net/
14 BuildRequires: binutils >= 3:2.17.50.0.14
15 BuildRequires: gcc >= 6:4.1.1
16 Requires: binutils >= 3:2.17.50.0.14
17 Requires: gcc >= 6:4.1.1
18 ExclusiveArch: %{ix86} %{x8664} x32 %{arm} aarch64 ia64
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define efi_arch %(echo %{_target_base_arch} | sed -e 's/i386/ia32/')
24 GNU-EFI development environment allows to create EFI applications for
25 IA-64 and x86 platforms using the GNU toolchain.
27 %description -l pl.UTF-8
28 Środowisko programistyczne GNU-EFI umożliwia tworzenie aplikacji EFI
29 dla platform IA-64 i x86 przy użyciu narzędzi GNU.
37 ARCHFLAGS=-frename-registers
39 # on x32: use x86_64 EFI ABI
40 CFLAGS="%{rpmcflags} $ARCHFLAGS" \
50 rm -rf $RPM_BUILD_ROOT
54 INSTALLROOT=$RPM_BUILD_ROOT \
58 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59 cp -a apps/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
66 %doc ChangeLog README.*
68 %{_libdir}/libgnuefi.a
69 %{_libdir}/crt0-efi-*.o
70 %{_libdir}/elf_*_efi.lds
72 %{_examplesdir}/%{name}-%{version}