1
0

Accepting request 83129 from home:jengelh:bl-c

- Remove redundant tags/sections from specfile
- Use %_smp_mflags for parallel build

OBS-URL: https://build.opensuse.org/request/show/83129
OBS-URL: https://build.opensuse.org/package/show/hardware/coreboot-utils?expand=0&rev=13
This commit is contained in:
Ismail Dönmez 2011-09-18 18:47:03 +00:00 committed by Git OBS Bridge
parent 9d964488e1
commit 643c38552f
2 changed files with 18 additions and 21 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Sep 17 23:52:47 UTC 2011 - jengelh@medozas.de
- Remove redundant tags/sections from specfile
- Use %_smp_mflags for parallel build
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Dec 9 22:11:02 CET 2010 - stepan@coresystems.de Thu Dec 9 22:11:02 CET 2010 - stepan@coresystems.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package coreboot-utils # spec file for package coreboot-utils
# #
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,7 +15,6 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: coreboot-utils Name: coreboot-utils
@ -23,7 +22,7 @@ Url: http://coreboot.org/
Summary: A universal flash programming utility Summary: A universal flash programming utility
Version: r6158 Version: r6158
Release: 1 Release: 1
License: GPL v2 only; GPL v2 or later License: GPLv2 ; GPLv2+
Group: Development/Tools/Other Group: Development/Tools/Other
Source0: coreboot-utils-%{version}.tar.bz2 Source0: coreboot-utils-%{version}.tar.bz2
Source23: update-snapshots.sh Source23: update-snapshots.sh
@ -40,10 +39,6 @@ coreboot utilities are a comprehensive set of tools to work with coreboot.
Currently it includes: Currently it includes:
* nvramtool - a tool to set CMOS variables * nvramtool - a tool to set CMOS variables
Authors:
--------
Stefan Reinauer <stepan@coresystems.de> et al.
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
@ -52,7 +47,7 @@ Authors:
%build %build
cd nvramtool cd nvramtool
make %{?jobs:-j%jobs} \ make %{?_smp_mflags} \
CFLAGS="$RPM_OPT_FLAGS -Os -Wall" \ CFLAGS="$RPM_OPT_FLAGS -Os -Wall" \
LDFLAGS="-lpci -lz" LDFLAGS="-lpci -lz"
strip nvramtool strip nvramtool
@ -66,35 +61,34 @@ strip inteltool
gzip inteltool.8 gzip inteltool.8
cd ../superiotool cd ../superiotool
make %{?jobs:-j%jobs} \ make %{?_smp_mflags} \
CFLAGS="$RPM_OPT_FLAGS -Os -Wall -DPCI_SUPPORT" \ CFLAGS="$RPM_OPT_FLAGS -Os -Wall -DPCI_SUPPORT" \
LDFLAGS="-lpci -lz" LDFLAGS="-lpci -lz"
strip superiotool strip superiotool
gzip superiotool.8 gzip superiotool.8
cd ../ectool cd ../ectool
make %{?jobs:-j%jobs} \ make %{?_smp_mflags} \
CFLAGS="$RPM_OPT_FLAGS -Os -Wall" \ CFLAGS="$RPM_OPT_FLAGS -Os -Wall" \
LDFLAGS="-lpci -lz" LDFLAGS="-lpci -lz"
strip ectool strip ectool
cd ../msrtool cd ../msrtool
CFLAGS="$RPM_OPT_FLAGS" ./configure CFLAGS="$RPM_OPT_FLAGS" ./configure
make %{?jobs:-j%jobs} make %{?_smp_mflags}
strip msrtool strip msrtool
cd ../k8resdump cd ../k8resdump
make %{?jobs:-j%jobs} make %{?_smp_mflags}
strip k8resdump strip k8resdump
cd ../cbfstool cd ../cbfstool
make %{?jobs:-j%jobs} \ make %{?_smp_mflags} \
CFLAGS="$RPM_OPT_FLAGS -Os -Wall" \ CFLAGS="$RPM_OPT_FLAGS -Os -Wall" \
CXXFLAGS="$RPM_OPT_FLAGS -Os -Wall -DCOMPACT" CXXFLAGS="$RPM_OPT_FLAGS -Os -Wall -DCOMPACT"
cd ../ cd ../
%install %install
mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_sbindir} mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
@ -141,9 +135,6 @@ cd ../cbfstool
install -m 0755 cbfstool $RPM_BUILD_ROOT/%{_bindir} install -m 0755 cbfstool $RPM_BUILD_ROOT/%{_bindir}
cp EXAMPLE EXAMPLE.cbfstool cp EXAMPLE EXAMPLE.cbfstool
%clean
rm -rf %{buildroot}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc nvramtool/COPYING %doc nvramtool/COPYING