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
This commit is contained in:
Marcus Meissner 2012-07-18 15:44:11 +00:00 committed by Git OBS Bridge
parent 8718c2e547
commit 53807894eb
4 changed files with 34 additions and 16 deletions

View File

@ -0,0 +1,12 @@
diff -Naur a/Make.defaults b/Make.defaults
--- a/Make.defaults 2012-04-30 10:35:44.000000000 -0500
+++ b/Make.defaults 2012-07-16 21:39:42.208929565 -0500
@@ -48,7 +48,7 @@
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
+CFLAGS = $(ARCH3264) -fmessage-length=0 -O2 -fpic -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fshort-wchar -fno-strict-aliasing -fno-merge-constants
ASFLAGS = $(ARCH3264)
LDFLAGS = -nostdlib
INSTALL = install

View File

@ -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.*")

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
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

View File

@ -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,20 @@ 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
%install
make install INSTALLROOT=$RPM_BUILD_ROOT%{_prefix}
make install INSTALLROOT=%{buildroot}%{_prefix}
[ "%{_lib}" == "lib" ] ||
mv $RPM_BUILD_ROOT/usr/lib $RPM_BUILD_ROOT/usr/%{_lib}
mv %{buildroot}/usr/lib %{buildroot}/usr/%{_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.*