82 lines
2.3 KiB
RPMSpec
82 lines
2.3 KiB
RPMSpec
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 <silvan.calarco@mambasoft.it>
|
|
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 <silvan.calarco@mambasoft.it> 1.4.0-1mamba
|
|
- package created using the webbuild interface
|