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

View File

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