1fe2594fca
Copy from hardware/coreboot-utils based on submit request 18553 from user hennevogel OBS-URL: https://build.opensuse.org/request/show/18553 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/coreboot-utils?expand=0&rev=2
114 lines
3.7 KiB
RPMSpec
114 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package coreboot-utils (Version 0.9.0)
|
|
#
|
|
# Copyright (c) 2009 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: coreboot-utils
|
|
Url: http://coreboot.org/
|
|
Summary: A universal flashrom programming utility
|
|
Version: 0.9.0
|
|
Release: 1
|
|
%define flashrom_svnrevision r687
|
|
%define nvramtool_version r3852
|
|
License: GPL v2 only ; GPL v2 or later
|
|
Group: Development/Tools/Other
|
|
Source0: flashrom-%{version}-%{flashrom_svnrevision}.tar.bz2
|
|
Source1: nvramtool-svn-%{nvramtool_version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: pciutils-devel zlib-devel
|
|
Provides: flashrom = %{version}
|
|
Obsoletes: flashrom < %{version}
|
|
ExclusiveArch: %ix86 x86_64
|
|
|
|
%description
|
|
flashrom is a universal flash programming utility for DIP, PLCC, or
|
|
SPI flash ROM chips. It can be used to flash BIOS/LinuxBIOS/firmware
|
|
images, for example.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Carl-Daniel Hailfinger
|
|
Claus Gindhart <claus.gindhart@kontron.com>
|
|
Dominik Geyer <dominik.geyer@kontron.com>
|
|
Eric Biederman <ebiederman@lnxi.com>
|
|
Giampiero Giancipoli <gianci@email.it>
|
|
Joe Bao <Zheng.Bao@amd.com>
|
|
Luc Verhaegen <libv@skynet.be>
|
|
Li-Ta Lo
|
|
Markus Boas <ryven@ryven.de>
|
|
Nikolay Petukhov <nikolay.petukhov@gmail.com>
|
|
Peter Stuge <peter@stuge.se>
|
|
Reinder E.N. de Haan <lb_reha@mveas.com>
|
|
Ronald G. Minnich <rminnich@gmail.com>
|
|
Ronald Hoogenboom <ronald@zonnet.nl>
|
|
Stefan Reinauer <stepan@coresystems.de>
|
|
Stefan Wildemann <stefan.wildemann@kontron.com>
|
|
Steven James <pyro@linuxlabs.com>
|
|
Uwe Hermann <uwe@hermann-uwe.de>
|
|
Wang Qingpei <Qingpei.Wang@amd.com>
|
|
Yinghai Lu <yinghai.lu@amd.com>
|
|
some others
|
|
|
|
%prep
|
|
%setup -q -n flashrom-%{version}-%{flashrom_svnrevision} -a 1
|
|
|
|
%build
|
|
make %{?jobs:-j%jobs} \
|
|
CFLAGS="$RPM_OPT_FLAGS -Os -Wall "
|
|
gzip flashrom.8
|
|
cd nvramtool-svn-%{nvramtool_version}
|
|
make %{?jobs:-j%jobs} \
|
|
CFLAGS="$RPM_OPT_FLAGS -Os -Wall -DDISABLE_DOC " \
|
|
LDFLAGS="-lpci -lz"
|
|
gzip nvramtool.8
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
|
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
|
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
|
|
install -m 0755 flashrom $RPM_BUILD_ROOT/%{_sbindir}
|
|
install -m 0644 flashrom.8.gz $RPM_BUILD_ROOT/%{_mandir}/man8
|
|
cd nvramtool-svn-%{nvramtool_version}
|
|
install -m 0755 nvramtool $RPM_BUILD_ROOT/%{_bindir}
|
|
install -m 0644 nvramtool.8.gz $RPM_BUILD_ROOT/%{_mandir}/man8
|
|
cd -
|
|
cp README README.flashrom
|
|
cp ChangeLog ChangeLog.flashrom
|
|
cp nvramtool-svn-%{nvramtool_version}/COPYING .
|
|
cp nvramtool-svn-%{nvramtool_version}/DISCLAIMER DISCLAIMER.nvramtool
|
|
cp nvramtool-svn-%{nvramtool_version}/README README.nvramtool
|
|
cp nvramtool-svn-%{nvramtool_version}/ChangeLog ChangeLog.nvramtool
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc COPYING
|
|
%doc README.flashrom ChangeLog.flashrom serprog-protocol.txt
|
|
%doc DISCLAIMER.nvramtool ChangeLog.nvramtool README.nvramtool
|
|
%{_sbindir}/flashrom
|
|
%{_bindir}/nvramtool
|
|
%{_mandir}/man8/nvramtool.8.gz
|
|
%{_mandir}/man8/flashrom.8.gz
|
|
|
|
%changelog
|