]>
Commit | Line | Data |
---|---|---|
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: 20160714 | |
5 | Release: 1 | |
6 | License: INTEL SOFTWARE LICENSE AGREEMENT | |
7 | Group: Base | |
8 | # http://downloadcenter.intel.com/, enter "processor microcode data file" to the search | |
9 | Source0: http://downloadmirror.intel.com/26156/eng/microcode-%{version}.tgz | |
10 | # Source0-md5: 84e4c0530dc38fd7b804daf894b1bdf9 | |
11 | # Tool for splitting Intel's microcode file. From Fedora | |
12 | Source1: intel-microcode2ucode.c | |
13 | Provides: microcode-data | |
14 | ExclusiveArch: i686 pentium2 pentium3 pentium4 %{x8664} x32 | |
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 | ||
21 | %description -l pl.UTF-8 | |
22 | Te pliki danych mikrokodu dla Linuksa zawierają najnowsze definicje | |
23 | mikrokodu dla procesorów Intela. | |
24 | ||
25 | %prep | |
26 | %setup -q -c | |
27 | ||
28 | %build | |
29 | if ! grep -q 0x00000000 microcode.dat; then | |
30 | echo >&2 microcode.dat contains giberrish | |
31 | exit 1 | |
32 | fi | |
33 | ||
34 | %{__cc} %{rpmcflags} %{rpmcppflags} %{rpmldflags} -Wall -o intel-microcode2ucode %{SOURCE1} | |
35 | ./intel-microcode2ucode microcode.dat > /dev/null || exit 1 | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
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 | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %attr(755,root,root) %{_sbindir}/intel-microcode2ucode | |
50 | /lib/firmware/intel-ucode |