X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=microcode-data-intel.spec;h=f1fcca3ae4acfdf8cfcfd0e4cf43d6c3c6869d16;hb=refs%2Ftags%2Fauto%2Fth%2Fmicrocode-data-intel-20191113-1;hp=52ea4fe44a7ec2e225597d153895c62b2049490e;hpb=8c4afd6d2bd57123cf22f380bb0841ba1e5c423b;p=packages%2Fmicrocode-data-intel.git diff --git a/microcode-data-intel.spec b/microcode-data-intel.spec index 52ea4fe..f1fcca3 100644 --- a/microcode-data-intel.spec +++ b/microcode-data-intel.spec @@ -1,41 +1,62 @@ Summary: Microcode definitions for Intel processors +Summary(pl.UTF-8): Definicje mikrokodu dla procesorów Intela Name: microcode-data-intel -Version: 20100209 +Version: 20191113 Release: 1 License: INTEL SOFTWARE LICENSE AGREEMENT Group: Base -# http://downloadcenter.intel.com/, enter "microcode" to the search -Source0: http://downloadmirror.intel.com/18683/eng/microcode-%{version}.tgz -# Source0-md5: 3d3014d8c8751041a8400b0dac53688e +Source0: https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-%{version}.tar.gz +# Source0-md5: 9d7ce9e801697814440cc096413ee130 +BuildRequires: iucode-tool Provides: microcode-data -ExclusiveArch: i686 pentium2 pentium3 pentium4 %{x8664} +BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -# nothing to put there -%define _enable_debug_packages 0 - %description The microcode data file for Linux contains the latest microcode definitions for all Intel processors. +%description -l pl.UTF-8 +Te pliki danych mikrokodu dla Linuksa zawierają najnowsze definicje +mikrokodu dla procesorów Intela. + +%package initrd +Summary: Microcode for initrd +Summary(pl.UTF-8): Mikrokod dla initrd +Group: Base + +%description initrd +Intel microcode for initrd. + +%description initrd -l pl.UTF-8 +Mikrokod dla procesorów Intel dla initrd. + %prep -%setup -q -c -mv microcode*.dat microcode.dat +%setup -q -n Intel-Linux-Processor-Microcode-Data-Files-microcode-%{version} %build -if ! grep -q 0x00000000 microcode.dat; then - echo >&2 microcode.dat contains giberrish - exit 1 -fi +%{_sbindir}/iucode_tool intel-ucode*/*-* -tb --write-to=microcode.bin + +install -d kernel/x86/microcode +ln microcode.bin kernel/x86/microcode/GenuineIntel.bin +echo kernel/x86/microcode/GenuineIntel.bin | cpio -o -H newc -R 0:0 > intel-ucode.img %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/lib/firmware -cp -a microcode.dat $RPM_BUILD_ROOT/lib/firmware/microcode.dat +install -d $RPM_BUILD_ROOT{/lib/firmware,/boot} + +cp -a intel-ucode $RPM_BUILD_ROOT/lib/firmware +cp -p intel-ucode.img $RPM_BUILD_ROOT/boot %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%attr(640,root,root) /lib/firmware/microcode.dat +%doc releasenote +/lib/firmware/intel-ucode + +%files initrd +%defattr(644,root,root,755) +%doc releasenote +/boot/intel-ucode.img