intel-ucode/intel-ucode.spec

42 lines
1.3 KiB
RPMSpec

Name: intel-ucode
Version: 20220510
Release: 1mamba
Summary: Intel Processor Microcode Package for Linux
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files
Source: https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/refs/tags/microcode-%{version}.tar.gz
License: Distributable
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: iucode-tool
%description
Intel Processor Microcode Package for Linux.
%prep
%setup -q -n Intel-Linux-Processor-Microcode-Data-Files-microcode-%{version}
%build
rm -f intel-ucode{,-with-caveats}/list
mkdir -p kernel/x86/microcode
%{_sbindir}/iucode_tool --write-earlyfw=intel-ucode.img intel-ucode{,-with-caveats}/
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -D -m0644 intel-ucode.img %{buildroot}/boot/intel-ucode.img
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
/boot/intel-ucode.img
%doc license
%changelog
* Sun Jun 05 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 20220510-1mamba
- package created using the webbuild interface