forked from pool/flashrom
104 lines
3.2 KiB
RPMSpec
104 lines
3.2 KiB
RPMSpec
|
#
|
||
|
# spec file for package flashrom
|
||
|
#
|
||
|
# Copyright (c) 2008 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: flashrom
|
||
|
Url: http://coreboot.org/
|
||
|
Summary: A universal flash programming utility
|
||
|
Version: 0.9.3_r1246
|
||
|
Release: 1
|
||
|
License: GPL v2 only; GPL v2 or later
|
||
|
Group: Development/Tools/Other
|
||
|
Source0: flashrom-%{version}.tar.bz2
|
||
|
Source23: update-snapshots.sh
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
BuildRequires: pciutils-devel zlib-devel
|
||
|
BuildRequires: libftdi1 libftdi1-devel
|
||
|
%if 0%{?suse_version} <= 1110
|
||
|
Requires: pmtools
|
||
|
%else
|
||
|
Requires: dmidecode
|
||
|
%endif
|
||
|
ExclusiveArch: %ix86 x86_64
|
||
|
|
||
|
%description
|
||
|
flashrom is a utility for reading, writing, verifying and erasing flash ROM
|
||
|
chips. It's often used to flash BIOS/EFI/coreboot/firmware images in-system
|
||
|
using a supported mainboard, but it also supports flashing of network
|
||
|
cards (NICs), SATA controller cards, and other external devices which can
|
||
|
program flash chips.
|
||
|
|
||
|
It supports a wide range of DIP32, PLCC32, DIP8, SO8/SOIC8, TSOP32, and
|
||
|
TSOP40 chips, which use various protocols such as LPC, FWH, parallel flash,
|
||
|
or SPI.
|
||
|
|
||
|
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>
|
||
|
David S. Peterson <dsp@llnl.gov> <dave_peterson@pobox.com>
|
||
|
some others
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n flashrom-%{version}
|
||
|
|
||
|
%build
|
||
|
make %{?jobs:-j%jobs} \
|
||
|
CFLAGS="$RPM_OPT_FLAGS -Os -Wall -DDISABLE_DOC " \
|
||
|
LDFLAGS="-lpci -lz"
|
||
|
strip flashrom
|
||
|
gzip flashrom.8
|
||
|
|
||
|
%install
|
||
|
mkdir -p %{buildroot}%{_bindir}
|
||
|
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
|
||
|
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
|
||
|
|
||
|
%clean
|
||
|
rm -rf %{buildroot}
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%doc COPYING
|
||
|
%doc README
|
||
|
%{_sbindir}/flashrom
|
||
|
%{_mandir}/man8/flashrom.8.gz
|
||
|
|
||
|
%changelog
|