gnu-efi/gnu-efi.spec
Marcus Meissner 53807894eb Accepting request 128182 from home:malcolmlewis:branches:Base:System
Add additional RPM OPT FLAGS to Make.defaults to avoid brp check warning and spec file clean up and rename rpmlintrc file.

OBS-URL: https://build.opensuse.org/request/show/128182
OBS-URL: https://build.opensuse.org/package/show/Base:System/gnu-efi?expand=0&rev=6
2012-07-18 15:44:11 +00:00

73 lines
2.3 KiB
RPMSpec

#
# spec file for package gnu-efi
#
# Copyright (c) 2012 SUSE LINUX Products 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.0q
Release: 0
Summary: Library for EFI Applications
License: BSD-3-Clause ; GPL-2.0+
Group: Development/Libraries/Other
Url: http://sourceforge.net/projects/gnu-efi
Source: http://downloads.sourceforge.net/gnu-efi/gnu-efi_3.0q.orig.tar.gz
Source1: %{name}-rpmlintrc
# PATCH-FIX-OPENSUSE gnu-efi-add-optflags-to-make-defaults.patch malcolmlewis@opensuse.org -- Add additional RPM OPT FLAGS to Make.defaults to avoid brp check warning.
Patch0: gnu-efi-add-optflags-to-make-defaults.patch
BuildRequires: kernel-source
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: ia64 %ix86 x86_64
%description
Library to develop EFI applications for IA-64 (IPF), IA-32 (x86) and x86_64
platforms using the GNU toolchain and the EFI development environment.
Authors:
--------
Johannes Erdfelt <jerdfelt@valinux.com>
David Mosberger <davidm@hpl.hp.com>
Stephane Eranian <eranian@hpl.hp.com>
%prep
%setup -q -n gnu-efi-3.0
%patch0 -p1
%build
make LINUX_HEADERS=/usr/src/linux
%install
make install INSTALLROOT=%{buildroot}%{_prefix}
[ "%{_lib}" == "lib" ] ||
mv %{buildroot}/usr/lib %{buildroot}/usr/%{_lib}
%if 0
mkdir %{buildroot}%{_prefix}/%{_lib}/%{name}
cp -p apps/*.efi %{buildroot}%{_prefix}/%{_lib}/%{name}
%endif
%files
%defattr(-, root, root)
%doc README.*
%{_prefix}/include/efi
%{_prefix}/%{_lib}/crt0-efi-*.o
%{_prefix}/%{_lib}/elf_*_efi.lds
%{_prefix}/%{_lib}/libefi.a
%{_prefix}/%{_lib}/libgnuefi.a
%if 0
%{_prefix}/%{_lib}/%{name}
%endif
%changelog