]>
Commit | Line | Data |
---|---|---|
8db950bd | 1 | Summary: GNU-EFI - building EFI applications using the GNU toolchain |
cba3c99f | 2 | Summary(pl.UTF-8): GNU-EFI - tworzenie aplikacji EFI przy użyciu narzędzi GNU |
8db950bd | 3 | Name: gnu-efi |
8892e088 | 4 | # NOTE: don't use early 3.1, it doesn't support EFI x86_64 |
77410af1 | 5 | Version: 3.0.11 |
eaa28bd0 | 6 | Release: 1 |
4a338a38 | 7 | Epoch: 1 |
b5a273a2 | 8 | # Intel and HP's BSD-like license, except setjmp code coming from GRUB |
9808f4d4 | 9 | License: BSD-like |
8db950bd | 10 | Group: Development/Libraries |
4a338a38 | 11 | Source0: http://downloads.sourceforge.net/gnu-efi/%{name}-%{version}.tar.bz2 |
77410af1 | 12 | # Source0-md5: 21148bbcccec385a9bfdf5f678959577 |
f7cc0991 | 13 | URL: http://gnu-efi.sourceforge.net/ |
e9e39156 | 14 | BuildRequires: binutils >= 3:2.17.50.0.14 |
1b2ac276 | 15 | BuildRequires: gcc >= 6:4.1.1 |
e9e39156 | 16 | Requires: binutils >= 3:2.17.50.0.14 |
1b2ac276 | 17 | Requires: gcc >= 6:4.1.1 |
3015dce0 | 18 | ExclusiveArch: %{ix86} %{x8664} x32 %{arm} aarch64 ia64 mips64el |
8db950bd JB |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
9808f4d4 JB |
21 | %define efi_arch %(echo %{_target_base_arch} | sed -e 's/i386/ia32/') |
22 | ||
8db950bd JB |
23 | %description |
24 | GNU-EFI development environment allows to create EFI applications for | |
77410af1 | 25 | IA-64, x86, ARM and MIPS platforms using the GNU toolchain. |
8db950bd | 26 | |
e0803b09 JR |
27 | %description -l pl.UTF-8 |
28 | Środowisko programistyczne GNU-EFI umożliwia tworzenie aplikacji EFI | |
77410af1 | 29 | dla platform IA-64, x86, ARM i MIPS przy użyciu narzędzi GNU. |
8db950bd JB |
30 | |
31 | %prep | |
4a338a38 | 32 | %setup -q |
8db950bd JB |
33 | |
34 | %build | |
1d10118d JB |
35 | ARCHFLAGS= |
36 | %ifarch ia64 | |
37 | ARCHFLAGS=-frename-registers | |
38 | %endif | |
9acb055c | 39 | # on x32: use x86_64 EFI ABI |
1d10118d | 40 | CFLAGS="%{rpmcflags} $ARCHFLAGS" \ |
897cdb91 | 41 | %{__make} -j1 \ |
9808f4d4 | 42 | ARCH=%{efi_arch} \ |
9acb055c JB |
43 | %ifarch x32 |
44 | ARCH3264=-m64 \ | |
45 | %endif | |
8db950bd | 46 | CC="%{__cc}" \ |
897cdb91 | 47 | OBJCOPY=objcopy |
8db950bd JB |
48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} install \ | |
9808f4d4 | 53 | ARCH=%{efi_arch} \ |
c38475d8 JB |
54 | INSTALLROOT=$RPM_BUILD_ROOT \ |
55 | PREFIX=%{_prefix} \ | |
56 | LIBDIR=%{_libdir} | |
897cdb91 | 57 | |
8db950bd JB |
58 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
59 | cp -a apps/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
66 | %doc ChangeLog README.* | |
897cdb91 JB |
67 | %{_libdir}/libefi.a |
68 | %{_libdir}/libgnuefi.a | |
8db950bd JB |
69 | %{_libdir}/crt0-efi-*.o |
70 | %{_libdir}/elf_*_efi.lds | |
71 | %{_includedir}/efi | |
72 | %{_examplesdir}/%{name}-%{version} |