]> git.pld-linux.org Git - packages/microcode-data-intel.git/blob - microcode-data-intel.spec
up to 20201112
[packages/microcode-data-intel.git] / microcode-data-intel.spec
1 Summary:        Microcode definitions for Intel processors
2 Summary(pl.UTF-8):      Definicje mikrokodu dla procesorów Intela
3 Name:           microcode-data-intel
4 Version:        20201112
5 Release:        1
6 License:        INTEL SOFTWARE LICENSE AGREEMENT
7 Group:          Base
8 Source0:        https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-%{version}.tar.gz
9 # Source0-md5:  d48388782e322c258e17f7d79201a9e0
10 BuildRequires:  iucode-tool
11 Provides:       microcode-data
12 BuildArch:      noarch
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 The microcode data file for Linux contains the latest microcode
17 definitions for all Intel processors.
18
19 %description -l pl.UTF-8
20 Te pliki danych mikrokodu dla Linuksa zawierają najnowsze definicje
21 mikrokodu dla procesorów Intela.
22
23 %package initrd
24 Summary:        Microcode for initrd
25 Summary(pl.UTF-8):      Mikrokod dla initrd
26 Group:          Base
27
28 %description initrd
29 Intel microcode for initrd.
30
31 %description initrd -l pl.UTF-8
32 Mikrokod dla procesorów Intel dla initrd.
33
34 %prep
35 %setup -q -n Intel-Linux-Processor-Microcode-Data-Files-microcode-%{version}
36
37 %build
38 %{_sbindir}/iucode_tool intel-ucode*/*-* -tb --write-to=microcode.bin
39
40 install -d kernel/x86/microcode
41 ln microcode.bin kernel/x86/microcode/GenuineIntel.bin
42 echo kernel/x86/microcode/GenuineIntel.bin | cpio -o -H newc -R 0:0 > intel-ucode.img
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{/lib/firmware,/boot}
47
48 cp -a intel-ucode $RPM_BUILD_ROOT/lib/firmware
49 cp -p intel-ucode.img $RPM_BUILD_ROOT/boot
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc README.md releasenote.md security.md
57 /lib/firmware/intel-ucode
58
59 %files initrd
60 %defattr(644,root,root,755)
61 %doc README.md releasenote.md security.md
62 /boot/intel-ucode.img
This page took 0.045675 seconds and 3 git commands to generate.