]> git.pld-linux.org Git - packages/microcode-data-intel.git/blob - microcode-data-intel.spec
6a9f848d1c2eb0803d0cd04ee7efa5c06b718464
[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:        20190514
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:  ad5fe712f54387c0737caef8131b4770
10 Provides:       microcode-data
11 BuildRequires:  iucode-tool
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
39 %{_sbindir}/iucode_tool intel-ucode*/*-* -tb --write-to=microcode.bin
40
41 install -d kernel/x86/microcode
42 ln microcode.bin kernel/x86/microcode/GenuineIntel.bin
43 echo kernel/x86/microcode/GenuineIntel.bin | cpio -o -H newc -R 0:0 > intel-ucode.img
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{/lib/firmware,/boot}
48
49 cp -a intel-ucode $RPM_BUILD_ROOT/lib/firmware
50 cp -p intel-ucode.img $RPM_BUILD_ROOT/boot
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc releasenote
58 /lib/firmware/intel-ucode
59
60 %files initrd
61 %doc releasenote
62 %defattr(644,root,root,755)
63 /boot/intel-ucode.img
This page took 0.082605 seconds and 2 git commands to generate.