|
|
|
@ -1,33 +1,26 @@
|
|
|
|
|
Name: flashrom
|
|
|
|
|
Version: 1.3.0
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Version: 1.2
|
|
|
|
|
Release: 10%{?dist}
|
|
|
|
|
Summary: Simple program for reading/writing flash chips content
|
|
|
|
|
License: GPL-2.0-only
|
|
|
|
|
License: GPLv2
|
|
|
|
|
URL: https://flashrom.org
|
|
|
|
|
|
|
|
|
|
Source0: https://download.flashrom.org/releases/%{name}-v%{version}.tar.bz2
|
|
|
|
|
Source1: https://download.flashrom.org/releases/%{name}-v%{version}.tar.bz2.asc
|
|
|
|
|
# Find which key was used for signing the release:
|
|
|
|
|
#
|
|
|
|
|
# $ LANG=C gpg --verify flashrom-v1.3.0.tar.bz2.asc flashrom-v1.3.0.tar.bz2
|
|
|
|
|
# gpg: Signature made Wed Feb 8 03:57:51 2023 CET
|
|
|
|
|
# gpg: using DSA key 6E6EF9A0BA478006E2776E4CC037BB413134D111
|
|
|
|
|
# gpg: Can't check signature: No public key
|
|
|
|
|
#
|
|
|
|
|
# Now export the key required as follows:
|
|
|
|
|
#
|
|
|
|
|
# gpg --no-default-keyring --keyring ./keyring.gpg --keyserver keyserver.ubuntu.com --recv-key 6E6EF9A0BA478006E2776E4CC037BB413134D111
|
|
|
|
|
# gpg --no-default-keyring --keyring ./keyring.gpg --output 6E6EF9A0BA478006E2776E4CC037BB413134D111.gpg --export
|
|
|
|
|
Source2: 6E6EF9A0BA478006E2776E4CC037BB413134D111.gpg
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
Source2: gpgkey-58A4868B25C7CFD662FB0132A3EB95B8D9780F68.gpg
|
|
|
|
|
|
|
|
|
|
# upstream already: https://review.coreboot.org/c/flashrom/+/38939
|
|
|
|
|
Patch0: 0001-Install-the-man-file-when-using-meson-as-a-buildsyst.patch
|
|
|
|
|
# upstreamed: https://review.coreboot.org/c/flashrom/+/48478
|
|
|
|
|
Patch1: 0002-meson-Add-missing-config-option-for-J-Link-SPI.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
|
%if ! 0%{?rhel}
|
|
|
|
|
BuildRequires: libftdi-devel
|
|
|
|
|
BuildRequires: libjaylink-devel
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: libusb1-devel
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: meson
|
|
|
|
|
BuildRequires: pciutils-devel
|
|
|
|
|
BuildRequires: libusb-devel
|
|
|
|
|
# Used for new programmers (libusb0 will eventually be removed)
|
|
|
|
|
BuildRequires: libusbx-devel
|
|
|
|
|
BuildRequires: systemd
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
%ifarch %{ix86} x86_64 aarch64
|
|
|
|
@ -56,17 +49,46 @@ Files for development with %{name}.
|
|
|
|
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
|
|
|
%autosetup -p1 -n %{name}-v%{version}
|
|
|
|
|
# Replace GROUP="plugdev" specifiers with TAG+="uaccess"
|
|
|
|
|
sed -e 's/MODE="[0-9]*", GROUP="plugdev"/TAG+="uaccess"/g' util/flashrom_udev.rules -i
|
|
|
|
|
sed -e 's/MODE="[0-9]*", GROUP="plugdev"/TAG+="uaccess"/g' util/z60_flashrom.rules -i
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%meson -Dtests=disabled
|
|
|
|
|
%meson \
|
|
|
|
|
-Dconfig_ft2232_spi=false \
|
|
|
|
|
-Dconfig_usbblaster_spi=false \
|
|
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
|
-Dconfig_internal=true
|
|
|
|
|
%else
|
|
|
|
|
-Dconfig_atahpt=false \
|
|
|
|
|
-Dconfig_atapromise=false \
|
|
|
|
|
-Dconfig_atavia=false \
|
|
|
|
|
-Dconfig_drkaiser=false \
|
|
|
|
|
-Dconfig_gfxnvidia=false \
|
|
|
|
|
-Dconfig_it8212=false \
|
|
|
|
|
-Dconfig_jlink_spi=false \
|
|
|
|
|
-Dconfig_nic3com=false \
|
|
|
|
|
-Dconfig_nicintel_eeprom=false \
|
|
|
|
|
-Dconfig_nicintel=false \
|
|
|
|
|
-Dconfig_nicintel_spi=false \
|
|
|
|
|
-Dconfig_nicnatsemi=false \
|
|
|
|
|
-Dconfig_nicrealtek=false \
|
|
|
|
|
-Dconfig_ogp_spi=false \
|
|
|
|
|
-Dconfig_rayer_spi=false \
|
|
|
|
|
-Dconfig_satamv=false \
|
|
|
|
|
-Dconfig_satasii=false \
|
|
|
|
|
-Dconfig_internal=false
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%meson_build
|
|
|
|
|
|
|
|
|
|
%if 0%{?enable_tests}
|
|
|
|
|
%check
|
|
|
|
|
%meson_test
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%meson_install
|
|
|
|
|
|
|
|
|
|
install -D -p -m 0644 util/flashrom_udev.rules %{buildroot}/%{_udevrulesdir}/60_flashrom.rules
|
|
|
|
|
rm %{buildroot}/%{_libdir}/libflashrom.a
|
|
|
|
|
install -D -p -m 0644 util/z60_flashrom.rules %{buildroot}/%{_udevrulesdir}/60_flashrom.rules
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license COPYING
|
|
|
|
@ -83,38 +105,20 @@ rm %{buildroot}/%{_libdir}/libflashrom.a
|
|
|
|
|
%{_libdir}/pkgconfig/flashrom.pc
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.3.0-7
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Oct 21 2023 Peter Lemenkov <lemenkov@gmail.com> - 1.3.0-4
|
|
|
|
|
- Check GPG signature
|
|
|
|
|
|
|
|
|
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jun 18 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 1.3.0-2
|
|
|
|
|
- Drop unused libusb-0.1 dependency
|
|
|
|
|
|
|
|
|
|
* Thu Feb 09 2023 Richard Hughes <richard@hughsie.com> - 1.3.0-1
|
|
|
|
|
- Update to latest upstream release
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.2-10
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
* Mon May 17 2021 Richard Hughes <richard@hughsie.com> 1.2-9
|
|
|
|
|
- Disable FTDI support to remove one extra dep we are not going to support
|
|
|
|
|
- Resolves: rhbz#1961170
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.2-8
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
* Mon Apr 12 2021 Richard Hughes <richard@hughsie.com> 1.2-7
|
|
|
|
|
- Disable JLink support to remove one extra dep we are not going to support
|
|
|
|
|
- Resolves: rhbz#1948597
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|