X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=microcode-data-intel.spec;h=47d93a7be25b479ba4c84f07224d55ca511c6d2c;hb=e9f19a59204e241866a31f83bd72cfbae405e6b5;hp=de4129646735eee0f8b9483f19da56c46831af64;hpb=165fd4a035f94687f2fa5027e5d5cd955a04e0bd;p=packages%2Fmicrocode-data-intel.git diff --git a/microcode-data-intel.spec b/microcode-data-intel.spec index de41296..47d93a7 100644 --- a/microcode-data-intel.spec +++ b/microcode-data-intel.spec @@ -1,33 +1,62 @@ Summary: Microcode definitions for Intel processors +Summary(pl.UTF-8): Definicje mikrokodu dla procesorów Intela Name: microcode-data-intel -Version: 20090330 +Version: 20191112 Release: 1 License: INTEL SOFTWARE LICENSE AGREEMENT Group: Base -# http://downloadcenter.intel.com/, enter "microcode" to the search -Source0: http://downloadmirror.intel.com/14303/eng/microcode-%{version}.tgz -# Source0-md5: 5efec742621f830bd49ae11274766208 +Source0: https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-%{version}.tar.gz +# Source0-md5: b215c5a8fd438afd867d8a42d01e27f6 +BuildRequires: iucode-tool Provides: microcode-data -ExclusiveArch: i686 pentium2 pentium3 pentium4 x86_64 ia32e +BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %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 +%setup -q -n Intel-Linux-Processor-Microcode-Data-Files-microcode-%{version} %build +%{_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%{_sysconfdir} +install -d $RPM_BUILD_ROOT{/lib/firmware,/boot} -install microcode*.dat $RPM_BUILD_ROOT%{_sysconfdir}/microcode.dat +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) %{_sysconfdir}/microcode.dat +%doc releasenote +/lib/firmware/intel-ucode + +%files initrd +%defattr(644,root,root,755) +%doc releasenote +/boot/intel-ucode.img