2010-12-21 17:32:06 +01:00
|
|
|
#
|
|
|
|
# spec file for package flashrom
|
|
|
|
#
|
2018-01-09 11:54:21 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-12-21 17:32:06 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2011-10-14 16:10:42 +02:00
|
|
|
|
2010-12-21 17:32:06 +01:00
|
|
|
Name: flashrom
|
2018-01-09 11:49:33 +01:00
|
|
|
Version: 1.0
|
2015-04-03 12:37:26 +02:00
|
|
|
Release: 0
|
2010-12-21 17:32:06 +01:00
|
|
|
Summary: A universal flash programming utility
|
2013-03-18 15:12:41 +01:00
|
|
|
License: GPL-2.0
|
2010-12-21 17:32:06 +01:00
|
|
|
Group: Development/Tools/Other
|
2018-01-09 11:49:33 +01:00
|
|
|
Url: https://flashrom.org/Flashrom
|
|
|
|
Source0: https://download.flashrom.org/releases/%{name}-%{version}.tar.bz2
|
|
|
|
Source1: https://download.flashrom.org/releases/%{name}-%{version}.tar.bz2.asc#/%{name}-%{version}.tar.bz2.sig
|
|
|
|
# Got the key from David Hendricks
|
|
|
|
Source2: %{name}.keyring
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(libftdi1)
|
|
|
|
BuildRequires: pkgconfig(libpci)
|
|
|
|
BuildRequires: pkgconfig(libusb)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2010-12-21 17:32:06 +01:00
|
|
|
Requires: dmidecode
|
2018-01-09 11:49:33 +01:00
|
|
|
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64
|
2010-12-21 17:32:06 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
2011-06-03 03:49:27 +02:00
|
|
|
%setup -q
|
2010-12-21 17:32:06 +01:00
|
|
|
|
|
|
|
%build
|
2011-09-19 18:12:36 +02:00
|
|
|
make %{?_smp_mflags} \
|
2016-07-26 11:54:02 +02:00
|
|
|
CFLAGS="%{optflags}"
|
2010-12-21 17:32:06 +01:00
|
|
|
|
|
|
|
%install
|
2018-01-09 11:49:33 +01:00
|
|
|
install -d %{buildroot}/%{_sbindir}
|
|
|
|
install -d %{buildroot}/%{_mandir}/man8
|
2011-06-03 03:49:27 +02:00
|
|
|
install -m 0755 flashrom %{buildroot}/%{_sbindir}
|
2013-08-15 13:41:37 +02:00
|
|
|
install -m 0644 flashrom.8 %{buildroot}/%{_mandir}/man8
|
2010-12-21 17:32:06 +01:00
|
|
|
|
|
|
|
%files
|
2018-01-09 11:49:33 +01:00
|
|
|
%doc COPYING README
|
2010-12-21 17:32:06 +01:00
|
|
|
%{_sbindir}/flashrom
|
2018-01-09 11:49:33 +01:00
|
|
|
%{_mandir}/man8/flashrom.8%{ext_man}
|
2010-12-21 17:32:06 +01:00
|
|
|
|
|
|
|
%changelog
|