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