]>
Commit | Line | Data |
---|---|---|
165fd4a0 | 1 | Summary: Microcode definitions for Intel processors |
1db93e84 | 2 | Summary(pl.UTF-8): Definicje mikrokodu dla procesorów Intela |
165fd4a0 | 3 | Name: microcode-data-intel |
887306f4 | 4 | Version: 20160714 |
b6bec107 | 5 | Release: 1 |
165fd4a0 AM |
6 | License: INTEL SOFTWARE LICENSE AGREEMENT |
7 | Group: Base | |
e54dfb65 | 8 | # http://downloadcenter.intel.com/, enter "processor microcode data file" to the search |
887306f4 JP |
9 | Source0: http://downloadmirror.intel.com/26156/eng/microcode-%{version}.tgz |
10 | # Source0-md5: 84e4c0530dc38fd7b804daf894b1bdf9 | |
343a5efd AM |
11 | # Tool for splitting Intel's microcode file. From Fedora |
12 | Source1: intel-microcode2ucode.c | |
165fd4a0 | 13 | Provides: microcode-data |
73ca58af | 14 | ExclusiveArch: i686 pentium2 pentium3 pentium4 %{x8664} x32 |
165fd4a0 AM |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | The microcode data file for Linux contains the latest microcode | |
19 | definitions for all Intel processors. | |
20 | ||
1db93e84 JB |
21 | %description -l pl.UTF-8 |
22 | Te pliki danych mikrokodu dla Linuksa zawierają najnowsze definicje | |
23 | mikrokodu dla procesorów Intela. | |
24 | ||
165fd4a0 AM |
25 | %prep |
26 | %setup -q -c | |
27 | ||
28 | %build | |
23d57ba9 ER |
29 | if ! grep -q 0x00000000 microcode.dat; then |
30 | echo >&2 microcode.dat contains giberrish | |
31 | exit 1 | |
32 | fi | |
33 | ||
343a5efd AM |
34 | %{__cc} %{rpmcflags} %{rpmcppflags} %{rpmldflags} -Wall -o intel-microcode2ucode %{SOURCE1} |
35 | ./intel-microcode2ucode microcode.dat > /dev/null || exit 1 | |
36 | ||
165fd4a0 AM |
37 | %install |
38 | rm -rf $RPM_BUILD_ROOT | |
343a5efd AM |
39 | install -d $RPM_BUILD_ROOT{%{_sbindir},/lib/firmware} |
40 | ||
41 | install intel-microcode2ucode $RPM_BUILD_ROOT%{_sbindir} | |
42 | mv intel-ucode $RPM_BUILD_ROOT/lib/firmware | |
165fd4a0 AM |
43 | |
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
343a5efd AM |
49 | %attr(755,root,root) %{_sbindir}/intel-microcode2ucode |
50 | /lib/firmware/intel-ucode |