mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
(cherry picked from commit 52c552cae8)
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "flashrom-cros.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
%global commit_date 20240911
|
||||
%global commit c1ab7468d28d164a30d598eb3e42a5febaf73bbc
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
|
||||
Name: flashrom-cros
|
||||
Version: %shortcommit
|
||||
Release: 1%{?dist}
|
||||
Summary: Simple program for reading/writing flash chips content (ChromiumOS fork)
|
||||
License: GPL-2.0-only
|
||||
URL: https://chromium.googlesource.com/chromiumos/third_party/flashrom
|
||||
Source0: %url/+archive/refs/heads/release-R130-16033.B.tar.gz
|
||||
BuildRequires: gcc gnupg2 libusb1-devel meson pciutils-devel python3-sphinx systemd zlib-devel dmidecode
|
||||
Requires: dmidecode udev
|
||||
Conflicts: flashrom
|
||||
Packager: WeirdTreeThing <bradyn127@protonmail.com>
|
||||
|
||||
%description
|
||||
flashrom is a utility for identifying, reading, writing, verifying and erasing
|
||||
flash chips. It is designed to flash BIOS/EFI/coreboot/firmware/optionROM
|
||||
images on mainboards, network/graphics/storage controller cards, and various
|
||||
other programmer devices.
|
||||
|
||||
%package devel
|
||||
Summary: Development package for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Conflicts: flashrom-devel
|
||||
|
||||
%description devel
|
||||
Files for development with %{name}.
|
||||
|
||||
%prep
|
||||
%setup -c
|
||||
|
||||
%build
|
||||
%meson -Dtests=disabled -Ddocumentation=disabled -Duse_internal_dmi=false
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
install -Dm755 %{_vpath_builddir}/flashrom %{buildroot}%{_bindir}/%{name}
|
||||
|
||||
install -Dm755 include/libflashrom.h %{buildroot}%{_includedir}/libflashrom.h
|
||||
install -Dm755 %{_vpath_builddir}/meson-private/flashrom.pc %{buildroot}%{_libdir}/pkgconfig/flashrom.pc
|
||||
install -Dm755 %{_vpath_builddir}/libflashrom.so %{buildroot}%{_libdir}/libflashrom.so
|
||||
install -Dm755 %{_vpath_builddir}/libflashrom.so.1 %{buildroot}%{_libdir}/libflashrom.so.1
|
||||
install -Dm755 %{_vpath_builddir}/libflashrom.so.1.0.0 %{buildroot}%{_libdir}/libflashrom.so.1.0.0
|
||||
|
||||
%files
|
||||
%{_bindir}/%{name}
|
||||
%license COPYING
|
||||
%doc README.rst README.chromiumos doc/
|
||||
|
||||
%files devel
|
||||
%{_includedir}/libflashrom.h
|
||||
%{_libdir}/libflashrom.so
|
||||
%{_libdir}/libflashrom.so.1
|
||||
%{_libdir}/libflashrom.so.1.0.0
|
||||
%{_libdir}/pkgconfig/flashrom.pc
|
||||
|
||||
%changelog
|
||||
* Fri Jul 04 2025 Owen Zimmerman <owen@fyralabs.com>
|
||||
- Add back to terra, conflict with flashrom, add devel package, include other needed files
|
||||
|
||||
* Fri Oct 25 2024 WeirdTreeThing <bradyn127@protonmail.com>
|
||||
- initial release
|
||||
Reference in New Issue
Block a user