]>
Commit | Line | Data |
---|---|---|
aadd997a JB |
1 | Summary: x86 CPU Microcode Utility |
2 | Summary(pl.UTF-8): Aktualizator mikrokodu procesorów architektury x86 | |
6b3bbe9b | 3 | Name: microcode_ctl |
016a3543 | 4 | Version: 1.17 |
f2fa3f2e | 5 | Release: 8 |
421d696c | 6 | Epoch: 1 |
d547f4e5 | 7 | License: GPL |
6b3bbe9b | 8 | Group: Base |
6b3bbe9b | 9 | Source0: http://www.urbanmyth.org/microcode/%{name}-%{version}.tar.gz |
016a3543 | 10 | # Source0-md5: 98a7f06acef8459c8ef2a1b0fb86a99e |
6b3bbe9b AM |
11 | Source1: %{name}.init |
12 | URL: http://www.urbanmyth.org/microcode/ | |
d685e3c7 | 13 | Requires(post,preun): /sbin/chkconfig |
4fa4adeb | 14 | Requires: rc-scripts >= 0.4.3.0 |
016a3543 | 15 | Requires: uname(release) >= 2.6.20 |
2816b731 | 16 | ExclusiveArch: i686 pentium2 pentium3 pentium4 %{x8664} |
6b3bbe9b AM |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
aadd997a | 20 | The microcode_ctl utility is a companion to the x86 microcode driver. |
6b3bbe9b | 21 | The utility has two uses: a) it decodes and sends new microcode to the |
aadd997a JB |
22 | kernel driver to be uploaded to Intel IA32 or AMD64 family processors. |
23 | (Pentium Pro, PII, Celeron, PIII, Xeon Pentium 4 etc.) b) it signals | |
24 | the kernel driver to release any buffers it may hold. | |
6b3bbe9b AM |
25 | |
26 | The microcode update is volatile and needs to be uploaded on each | |
27 | system boot i.e. it doesn't reflash your cpu permanently, reboot and | |
28 | it reverts back to the old microcode. | |
29 | ||
a67b4bc9 | 30 | %description -l pl.UTF-8 |
aadd997a | 31 | Narzędzie będące dodatkiem do sterownika mikrokodu x86. Program |
a67b4bc9 JR |
32 | dekoduje i wysyła nowy mikrokod do jądra systemu w celu załadowania go |
33 | do jednego z procesorów rodziny IA32 (Pentium Pro, PII, Celeron, PIII, | |
aadd997a JB |
34 | Xeon, Pentium 4 itd.) oraz AMD64. Ponadto wysyłany jest sygnał do |
35 | jądra by to zwolniło wszystkie bufory. | |
6b3bbe9b | 36 | |
a67b4bc9 JR |
37 | Aktualizacja mikrokodu musi być dokonywana po każdym restarcie systemu |
38 | tzn. nie jest to trwała aktualizacja. Po restarcie procesor zawiera | |
6b3bbe9b AM |
39 | stary mikrokod. |
40 | ||
41 | %prep | |
b12f3c71 | 42 | %setup -q |
6b3bbe9b AM |
43 | |
44 | %build | |
b12f3c71 | 45 | %{__cc} %{rpmldflags} %{rpmcflags} %{rpmcppflags} -Wall \ |
6b3bbe9b AM |
46 | microcode_ctl.c -o microcode_ctl |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
f2fa3f2e | 50 | install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d},%{_sysconfdir},%{_sbindir},%{_mandir}/man8} |
2d284bc5 ER |
51 | install -p %{name} $RPM_BUILD_ROOT%{_sbindir} |
52 | cp -p %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
53 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
6b3bbe9b | 54 | |
6b3bbe9b AM |
55 | %clean |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %post | |
6867889e | 59 | /sbin/chkconfig --add %{name} |
6b3bbe9b AM |
60 | |
61 | %preun | |
6867889e | 62 | if [ "$1" = "0" ]; then |
eb3805ed | 63 | /sbin/chkconfig --del %{name} |
6867889e | 64 | fi |
6b3bbe9b AM |
65 | |
66 | %files | |
67 | %defattr(644,root,root,755) | |
93d00158 | 68 | %doc Changelog README |
e5182d12 | 69 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
2d284bc5 ER |
70 | %attr(755,root,root) %{_sbindir}/microcode_ctl |
71 | %{_mandir}/man8/microcode_ctl.8* |