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 3.1, it doesn't support EFI x86_64
7 # Intel and HP's BSD-like license, except setjmp code coming from GRUB
8 License: GPL v2+ (setjmp code), BSD-like (all the rest)
9 Group: Development/Libraries
10 Source0: http://downloads.sourceforge.net/gnu-efi/%{name}_%{version}.orig.tar.gz
11 # Source0-md5: d0a21125aee56c0c7291ad260e916cb3
12 URL: http://gnu-efi.sourceforge.net/
13 BuildRequires: binutils >= 3:2.17.50.0.14
14 BuildRequires: gcc >= 6:4.1.1
15 Requires: binutils >= 3:2.17.50.0.14
16 Requires: gcc >= 6:4.1.1
17 ExclusiveArch: %{ix86} %{x8664} ia64
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define specflags_ia64 -frename-registers
23 GNU-EFI development environment allows to create EFI applications for
24 IA-64 and x86 platforms using the GNU toolchain.
26 %description -l pl.UTF-8
27 Środowisko programistyczne GNU-EFI umożliwia tworzenie aplikacji EFI
28 dla platform IA-64 i x86 przy użyciu narzędzi GNU.
31 %setup -q -n %{name}-3.0
35 CFADD=" -DEFI_FUNCTION_WRAPPER -mno-red-zone"
38 CFADD=" -mfixed-range=f32-f127"
44 ARCH=$(echo %{_target_base_arch} | sed -e 's/i386/ia32/') \
46 CFLAGS="%{rpmcflags} -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector$CFADD" \
50 rm -rf $RPM_BUILD_ROOT
53 INSTALLROOT=$RPM_BUILD_ROOT%{_prefix}
55 %if "%{_lib}" != "lib"
56 mv -f $RPM_BUILD_ROOT%{_prefix}/{lib,%{_lib}}
59 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
60 cp -a apps/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
67 %doc ChangeLog README.*
69 %{_libdir}/libgnuefi.a
70 %{_libdir}/crt0-efi-*.o
71 %{_libdir}/elf_*_efi.lds
73 %{_examplesdir}/%{name}-%{version}