forked from pool/gnu-efi
af95526b69
- Resolve merge conflicts - Update to gnu-efi 3.0.2 + Fix ARM32 and AARCH64 builds + _SPrint: fix NULL termination + Add current OsIndications values + Add the QueryVariableInfo() API + Add the capsule API + Fix Table Header misspelling. Change from EFI_TABLE_HEARDER to EFI_TABLE_HEADER. + Allow reuse of this file beyond GPL compatible software, update the license of crt0-efi-aarch64.S to dual 2-clause BSD/GPLv2+. + Add the missing Variable attributes + document that binutils >= 2.24 needed + allow to use external stdarg.h + Add support for 32-bit ARM - Enable ARM 32 - Add upstream patches + gnu-efi-setjmp.patch + gnu-efi-missing-error-code.patch - Drop patches + gnu-efi-allow-external-stdarg.patch (upstreamed) + gnu-efi-build-fix.patch (no necessary) OBS-URL: https://build.opensuse.org/request/show/311737 OBS-URL: https://build.opensuse.org/package/show/Base:System/gnu-efi?expand=0&rev=18
71 lines
2.0 KiB
RPMSpec
71 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package gnu-efi
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: gnu-efi
|
|
Version: 3.0.2
|
|
Release: 0
|
|
Summary: Library for EFI Applications
|
|
License: BSD-3-Clause and GPL-2.0+
|
|
Group: Development/Libraries/Other
|
|
Url: http://sourceforge.net/projects/gnu-efi
|
|
Source: http://sourceforge.net/projects/gnu-efi/files/gnu-efi-%{version}.tar.bz2
|
|
Source1: %{name}-rpmlintrc
|
|
Patch1: %{name}-setjmp.patch
|
|
Patch2: %{name}-missing-error-code.patch
|
|
BuildRequires: kernel-source
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
ExclusiveArch: ia64 %ix86 x86_64 aarch64 %arm
|
|
|
|
%description
|
|
Library to develop EFI applications for IA-64 (IPF), IA-32 (x86), x86_64,
|
|
ARM-32, and ARM-64 platforms using the GNU toolchain and the EFI development
|
|
environment.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
|
|
%build
|
|
##########################
|
|
## DO NOT ADD RPM OPT FLAGS! THIS DOES NOT BUILD AGAINST GLIBC
|
|
##
|
|
##########################
|
|
make %{?_smp_mflags} LINUX_HEADERS=%{_prefix}/src/linux
|
|
|
|
%install
|
|
make install INSTALLROOT=%{buildroot} LIBDIR=%{_libdir} PREFIX=%{_prefix}
|
|
%if 0
|
|
mkdir %{buildroot}%{_libdir}/%{name}
|
|
cp -p apps/*.efi %{buildroot}%{_libdir}/%{name}
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc README.*
|
|
%{_includedir}/efi
|
|
%{_libdir}/crt0-efi-*.o
|
|
%{_libdir}/elf_*_efi.lds
|
|
%{_libdir}/libefi.a
|
|
%{_libdir}/libgnuefi.a
|
|
%if 0
|
|
%{_libdir}/%{name}
|
|
%endif
|
|
|
|
%changelog
|