2010-12-21 17:32:06 +01:00
|
|
|
#
|
|
|
|
# spec file for package flashrom
|
|
|
|
#
|
2023-09-25 11:00:19 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
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.
|
|
|
|
|
2019-04-05 09:37:35 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-12-21 17:32:06 +01:00
|
|
|
#
|
|
|
|
|
2011-10-14 16:10:42 +02:00
|
|
|
|
2010-12-21 17:32:06 +01:00
|
|
|
Name: flashrom
|
2023-09-25 11:00:19 +02:00
|
|
|
Version: 1.3.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
|
2019-04-05 09:37:35 +02:00
|
|
|
License: GPL-2.0-only
|
2010-12-21 17:32:06 +01:00
|
|
|
Group: Development/Tools/Other
|
Accepting request 777778 from home:mnhauke
- Update to version 1.2
- Meson support
- Layout improvements/fixes and many, many code cleanups.
- New chips: MX25U25635F, MX25L51245G, GD25Q256D, M95M02-A125,
N25Q/MT25Q variants, W25Q128JW_DTR, AT25SF321, S25FL512S
- New programmers: National Instruments USB-845x, Tin Can Tools
Flyswatter/Flyswatter 2, STLINK V3, more Intel PCHs (Apollo
Lake, Cannon Lake variants, Ice Lake U)
- Reduced dependency on libusb0
- Syntax: Added --flash-name and --flash-size arguments to print
information about the flash chip
OBS-URL: https://build.opensuse.org/request/show/777778
OBS-URL: https://build.opensuse.org/package/show/hardware/flashrom?expand=0&rev=40
2020-02-21 10:26:33 +01:00
|
|
|
URL: https://flashrom.org/Flashrom
|
2019-04-05 09:37:35 +02:00
|
|
|
Source0: https://download.flashrom.org/releases/%{name}-v%{version}.tar.bz2
|
|
|
|
Source1: https://download.flashrom.org/releases/%{name}-v%{version}.tar.bz2.asc#/%{name}-%{version}.tar.bz2.sig
|
2018-01-09 11:49:33 +01:00
|
|
|
# Got the key from David Hendricks
|
|
|
|
Source2: %{name}.keyring
|
2023-09-25 11:00:19 +02:00
|
|
|
BuildRequires: meson >= 0.53.0
|
2018-01-09 11:49:33 +01:00
|
|
|
BuildRequires: pkgconfig
|
2023-09-25 11:00:19 +02:00
|
|
|
BuildRequires: pkgconfig(cmocka)
|
2018-01-09 11:49:33 +01:00
|
|
|
BuildRequires: pkgconfig(libftdi1)
|
2022-07-25 12:44:56 +02:00
|
|
|
BuildRequires: pkgconfig(libjaylink)
|
2018-01-09 11:49:33 +01:00
|
|
|
BuildRequires: pkgconfig(libpci)
|
|
|
|
BuildRequires: pkgconfig(libusb)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2021-09-20 22:08:31 +02:00
|
|
|
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 riscv64
|
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.
|
|
|
|
|
2022-07-25 12:44:56 +02:00
|
|
|
%package -n libflashrom1
|
|
|
|
Summary: A universal flash programming utility
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
|
|
|
|
%description -n libflashrom1
|
|
|
|
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.
|
|
|
|
|
2010-12-21 17:32:06 +01:00
|
|
|
%prep
|
2022-07-25 12:44:56 +02:00
|
|
|
%autosetup -p1 -n %{name}-v%{version}
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: A universal flash programming utility
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
Requires: libflashrom1 = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
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.
|
|
|
|
|
|
|
|
This package contains the headers needed to compile against libflashrom.
|
2010-12-21 17:32:06 +01:00
|
|
|
|
|
|
|
%build
|
2022-07-25 12:44:56 +02:00
|
|
|
%meson \
|
2023-09-25 11:00:19 +02:00
|
|
|
-Dtests=disabled
|
2022-07-25 12:44:56 +02:00
|
|
|
%meson_build
|
2010-12-21 17:32:06 +01:00
|
|
|
|
|
|
|
%install
|
2022-07-25 12:44:56 +02:00
|
|
|
%meson_install
|
2023-09-25 11:00:19 +02:00
|
|
|
rm %{buildroot}%{_libdir}/libflashrom.a
|
|
|
|
|
|
|
|
%post -n libflashrom1 -p /sbin/ldconfig
|
|
|
|
%postun -n libflashrom1 -p /sbin/ldconfig
|
2010-12-21 17:32:06 +01:00
|
|
|
|
|
|
|
%files
|
2022-07-25 12:44:56 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc 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
|
|
|
|
2022-07-25 12:44:56 +02:00
|
|
|
%files -n libflashrom1
|
|
|
|
%{_libdir}/libflashrom.so.1
|
|
|
|
%{_libdir}/libflashrom.so.1.0.0
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/libflashrom.h
|
|
|
|
%{_libdir}/libflashrom.so
|
|
|
|
%{_libdir}/pkgconfig/flashrom.pc
|
|
|
|
|
2010-12-21 17:32:06 +01:00
|
|
|
%changelog
|