Accepting request 128243 from Base:System
- cleaned below up, pass in OPTFLAGS and LIBDIR to make. - Add gnu-efi-add-optflags-to-make-defaults.patch: Add additional RPM OPT FLAGS to Make.defaults to avoid brp check warning. - Spec file clean up and rename rpmlintrc file. OBS-URL: https://build.opensuse.org/request/show/128243 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnu-efi?expand=0&rev=16
This commit is contained in:
commit
eab0bc202c
14
gnu-efi-add-optflags-to-make-defaults.patch
Normal file
14
gnu-efi-add-optflags-to-make-defaults.patch
Normal file
@ -0,0 +1,14 @@
|
||||
Index: gnu-efi-3.0/Make.defaults
|
||||
===================================================================
|
||||
--- gnu-efi-3.0.orig/Make.defaults
|
||||
+++ gnu-efi-3.0/Make.defaults
|
||||
@@ -48,7 +48,8 @@ ARCH := $(shell uname -m | sed s,i[34
|
||||
OS = $(shell uname -s)
|
||||
INCDIR = -I$(SRCDIR) -I$(TOPDIR)/inc -I$(TOPDIR)/inc/$(ARCH) -I$(TOPDIR)/inc/protocol
|
||||
CPPFLAGS = -DCONFIG_$(ARCH)
|
||||
-CFLAGS = $(ARCH3264) -O2 -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants
|
||||
+OPTFLAGS = -O2 -g
|
||||
+CFLAGS = $(ARCH3264) $(OPTFLAGS) -fpic -fshort-wchar -fno-strict-aliasing -fno-merge-constants
|
||||
ASFLAGS = $(ARCH3264)
|
||||
LDFLAGS = -nostdlib
|
||||
INSTALL = install
|
@ -1,3 +1,4 @@
|
||||
addFilter(".*devel-file-in-non-devel-package.*")
|
||||
addFilter(".*static-library-without-debuginfo.*")
|
||||
addFilter(".*source-or-patch-not-compressed.*")
|
||||
addFilter(".*source-or-patch-not-bzipped.*")
|
@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 18 15:47:22 UTC 2012 - meissner@suse.com
|
||||
|
||||
- cleaned below up, pass in OPTFLAGS and LIBDIR to make.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 18 03:06:46 UTC 2012 - malcolmlewis@opensuse.org
|
||||
|
||||
- Add gnu-efi-add-optflags-to-make-defaults.patch: Add additional
|
||||
RPM OPT FLAGS to Make.defaults to avoid brp check warning.
|
||||
- Spec file clean up and rename rpmlintrc file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 14 03:17:09 UTC 2012 - glin@suse.com
|
||||
|
||||
|
32
gnu-efi.spec
32
gnu-efi.spec
@ -17,22 +17,23 @@
|
||||
|
||||
|
||||
Name: gnu-efi
|
||||
ExclusiveArch: ia64 %ix86 x86_64
|
||||
Version: 3.0q
|
||||
Release: 0
|
||||
Summary: Library for EFI Applications
|
||||
License: BSD-3-Clause ; GPL-2.0+
|
||||
Group: Development/Libraries/Other
|
||||
Version: 3.0q
|
||||
Release: 0
|
||||
Url: http://sourceforge.net/projects/gnu-efi
|
||||
Source: http://downloads.sourceforge.net/gnu-efi/gnu-efi_3.0q.orig.tar.gz
|
||||
Source1: rpmlintrc
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
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 for EFI applications.
|
||||
|
||||
|
||||
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:
|
||||
--------
|
||||
@ -42,23 +43,18 @@ Authors:
|
||||
|
||||
%prep
|
||||
%setup -q -n gnu-efi-3.0
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
#CFLAGS="-fpic -fshort-wchar -fno-strict-aliasing -funsigned-char -fno-stack-protector"
|
||||
make LINUX_HEADERS=/usr/src/linux
|
||||
make LINUX_HEADERS=/usr/src/linux OPTFLAGS="$RPM_OPT_FLAGS"
|
||||
|
||||
%install
|
||||
make install INSTALLROOT=$RPM_BUILD_ROOT%{_prefix}
|
||||
[ "%{_lib}" == "lib" ] ||
|
||||
mv $RPM_BUILD_ROOT/usr/lib $RPM_BUILD_ROOT/usr/%{_lib}
|
||||
make install INSTALLROOT=%{buildroot}%{_prefix} LIBDIR=%_lib
|
||||
%if 0
|
||||
mkdir $RPM_BUILD_ROOT%{_prefix}/%{_lib}/%{name}
|
||||
cp -p apps/*.efi $RPM_BUILD_ROOT%{_prefix}/%{_lib}/%{name}
|
||||
mkdir %{buildroot}%{_prefix}/%{_lib}/%{name}
|
||||
cp -p apps/*.efi %{buildroot}%{_prefix}/%{_lib}/%{name}
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -fr $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc README.*
|
||||
|
Loading…
Reference in New Issue
Block a user