]>
Commit | Line | Data |
---|---|---|
165fd4a0 AM |
1 | Summary: Microcode definitions for Intel processors |
2 | Name: microcode-data-intel | |
61cbfb85 | 3 | Version: 20101123 |
165fd4a0 AM |
4 | Release: 1 |
5 | License: INTEL SOFTWARE LICENSE AGREEMENT | |
6 | Group: Base | |
7 | # http://downloadcenter.intel.com/, enter "microcode" to the search | |
61cbfb85 KK |
8 | Source0: http://downloadmirror.intel.com/19611/eng/microcode-%{version}.tgz |
9 | # Source0-md5: e19dd592d3357cd47e4d360ce43f4032 | |
165fd4a0 | 10 | Provides: microcode-data |
bc02db33 | 11 | ExclusiveArch: i686 pentium2 pentium3 pentium4 %{x8664} |
165fd4a0 AM |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
13 | ||
23d57ba9 ER |
14 | # nothing to put there |
15 | %define _enable_debug_packages 0 | |
16 | ||
165fd4a0 AM |
17 | %description |
18 | The microcode data file for Linux contains the latest microcode | |
19 | definitions for all Intel processors. | |
20 | ||
21 | %prep | |
22 | %setup -q -c | |
23d57ba9 | 23 | mv microcode*.dat microcode.dat |
165fd4a0 AM |
24 | |
25 | %build | |
23d57ba9 ER |
26 | if ! grep -q 0x00000000 microcode.dat; then |
27 | echo >&2 microcode.dat contains giberrish | |
28 | exit 1 | |
29 | fi | |
30 | ||
165fd4a0 AM |
31 | %install |
32 | rm -rf $RPM_BUILD_ROOT | |
0e5ddd0b | 33 | install -d $RPM_BUILD_ROOT/lib/firmware |
23d57ba9 | 34 | cp -a microcode.dat $RPM_BUILD_ROOT/lib/firmware/microcode.dat |
165fd4a0 AM |
35 | |
36 | %clean | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %files | |
40 | %defattr(644,root,root,755) | |
0e5ddd0b | 41 | %attr(640,root,root) /lib/firmware/microcode.dat |