diff --git a/README.md b/README.md index b5282eb..cd0cdae 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # intel-ucode +Intel Processor Microcode Package for Linux. + diff --git a/intel-ucode.spec b/intel-ucode.spec new file mode 100644 index 0000000..458f220 --- /dev/null +++ b/intel-ucode.spec @@ -0,0 +1,41 @@ +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 +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 20220510-1mamba +- package created using the webbuild interface