From 1c789ec1baf8554ce07910fdfe8755aea2032416 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 16 Oct 2024 12:13:21 +0200 Subject: [PATCH] package created using the webbuild interface [release 1.4.0-1mamba;Wed Oct 16 2024] --- README.md | 2 ++ flashrom.spec | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 flashrom.spec diff --git a/README.md b/README.md index f5e484a..eec5e37 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # flashrom +flashrom is a utility for detecting, reading, writing, verifying and erasing flash chips. It is 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. + diff --git a/flashrom.spec b/flashrom.spec new file mode 100644 index 0000000..a75dc68 --- /dev/null +++ b/flashrom.spec @@ -0,0 +1,81 @@ +Name: flashrom +Version: 1.4.0 +Release: 1mamba +Summary: A utility for detecting, reading, writing, verifying and erasing flash chips +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/flashrom/flashrom +Source: https://github.com/flashrom/flashrom.git/v%{version}/flashrom-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libftdi1-devel +BuildRequires: libpci-devel +BuildRequires: libusb-devel +## AUTOBUILDREQ-END +BuildRequires: meson +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +flashrom is a utility for detecting, reading, writing, verifying and erasing flash chips. It is 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. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +%meson +%meson_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%meson_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_sbindir}/flashrom +%{_datadir}/bash-completion/completions/flashrom.bash + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libflashrom.so.* +%{_mandir}/man8/flashrom.8* +%doc COPYING + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/libflashrom.h +%{_libdir}/libflashrom.a +%{_libdir}/libflashrom.so +%{_libdir}/pkgconfig/flashrom.pc +%dir %{_docdir}/flashrom +%dir %{_docdir}/flashrom/html +%{_docdir}/flashrom/html/.buildinfo +%{_docdir}/flashrom/html/* +%doc README.rst + +%changelog +* Wed Oct 16 2024 Silvan Calarco 1.4.0-1mamba +- package created using the webbuild interface