]>
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 JB |
4 | # NOTE: don't use early 3.1, it doesn't support EFI x86_64 |
5 | Version: 3.0s | |
2b9762eb | 6 | Release: 1 |
b5a273a2 JB |
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) | |
8db950bd | 9 | Group: Development/Libraries |
e2b69c26 | 10 | Source0: http://downloads.sourceforge.net/gnu-efi/%{name}_%{version}.orig.tar.gz |
8892e088 | 11 | # Source0-md5: 11f63d52071f7382f56c9e81d0aece91 |
f7cc0991 | 12 | URL: http://gnu-efi.sourceforge.net/ |
e9e39156 | 13 | BuildRequires: binutils >= 3:2.17.50.0.14 |
1b2ac276 | 14 | BuildRequires: gcc >= 6:4.1.1 |
e9e39156 | 15 | Requires: binutils >= 3:2.17.50.0.14 |
1b2ac276 | 16 | Requires: gcc >= 6:4.1.1 |
f7cc0991 | 17 | ExclusiveArch: %{ix86} %{x8664} ia64 |
8db950bd JB |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %define specflags_ia64 -frename-registers | |
21 | ||
22 | %description | |
23 | GNU-EFI development environment allows to create EFI applications for | |
24 | IA-64 and x86 platforms using the GNU toolchain. | |
25 | ||
e0803b09 JR |
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. | |
8db950bd JB |
29 | |
30 | %prep | |
8c8e262d | 31 | %setup -q -n %{name}-3.0 |
8db950bd JB |
32 | |
33 | %build | |
897cdb91 | 34 | %ifarch %{x8664} |
2b9762eb | 35 | CFADD=" -DEFI_FUNCTION_WRAPPER -mno-red-zone" |
897cdb91 | 36 | %else |
2b9762eb JB |
37 | %ifarch ia64 |
38 | CFADD=" -mfixed-range=f32-f127" | |
39 | %else | |
40 | CFADD= | |
41 | %endif | |
897cdb91 JB |
42 | %endif |
43 | %{__make} -j1 \ | |
27f95784 | 44 | ARCH=$(echo %{_target_base_arch} | sed -e 's/i386/ia32/') \ |
8db950bd | 45 | CC="%{__cc}" \ |
e2b69c26 | 46 | CFLAGS="%{rpmcflags} -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector$CFADD" \ |
897cdb91 | 47 | OBJCOPY=objcopy |
8db950bd JB |
48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} install \ | |
53 | INSTALLROOT=$RPM_BUILD_ROOT%{_prefix} | |
54 | ||
897cdb91 JB |
55 | %if "%{_lib}" != "lib" |
56 | mv -f $RPM_BUILD_ROOT%{_prefix}/{lib,%{_lib}} | |
57 | %endif | |
58 | ||
8db950bd JB |
59 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
60 | cp -a apps/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
61 | ||
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
67 | %doc ChangeLog README.* | |
897cdb91 JB |
68 | %{_libdir}/libefi.a |
69 | %{_libdir}/libgnuefi.a | |
8db950bd JB |
70 | %{_libdir}/crt0-efi-*.o |
71 | %{_libdir}/elf_*_efi.lds | |
72 | %{_includedir}/efi | |
73 | %{_examplesdir}/%{name}-%{version} |