Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 9701121718f4b3493d61dd92dde90df0 > files > 4

microcode_ctl-1.17-1mdv2008.0.src.rpm

Summary:   Intel P6 CPU Microcode Utility
Name:      microcode_ctl
Version: 1.17
Release:   %mkrel 1
Group:     System/Kernel and hardware
License:   GPL
Url:       http://www.urbanmyth.org/microcode/
Source:    http://www.urbanmyth.org/microcode/%name-%version.tar.bz2
Source1:   microcode_ctl
Patch1:    microcode_ctl-build.diff
Buildroot: %_tmppath/%name-%version-buildroot
ExclusiveArch: %ix86
BuildRequires: kernel-source

%description
Since PentiumPro, Intel CPU are made of a RISC chip and of a microcode whose
purpose is to decompose "old" ia32 instruction into new risc ones.
P6 familly is concerned: PPro, PII, Celeron, PIII, Celeron2.
Recent kernels have the ability to update this microcode.

The microcode update is volatile and needs to be uploaded on each system
boot. I.e. it doesn't reflash your cpu permanently.
Reboot and it reverts back to the old microcode.

%prep
%setup -q
%patch1 -p0

%build
make

%install
%makeinstall DESTDIR=$RPM_BUILD_ROOT PREFIX=%_prefix MANDIR=%_mandir/man8
mkdir -p $RPM_BUILD_ROOT/%_initrddir
install -m 755 %SOURCE1 $RPM_BUILD_ROOT/%_initrddir
rm -f %buildroot%_sysconfdir/init.d/microcode_ctl

%clean
rm -r $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%_sbindir/microcode_ctl
%_mandir/man8/*
%config(noreplace) %{_sysconfdir}/microcode.dat
%config(noreplace) %_initrddir/%name

%post
/sbin/chkconfig --add %{name}
	
%preun
[[ "$1" = "0" ]] && /sbin/chkconfig --del %name || :


%changelog
* Fri Jun 29 2007 Götz Waschk <waschk@mandriva.org> 1.17-1mdv2008.0
+ Revision: 45858
- new version

  + Thierry Vignaud <tvignaud@mandriva.com>
    - Import microcode_ctl



* Fri Jun 30 2006 Götz Waschk <waschk@mandriva.org> 1.14-1mdk
- New release 1.14

* Thu Mar 02 2006 Götz Waschk <waschk@mandriva.org> 1.13-1mdk
- New release 1.13

* Mon Jan  9 2006 Olivier Blin <oblin@mandriva.com> 1.12-4mdk
- convert parallel init to LSB

* Sat Dec 31 2005 Götz Waschk <waschk@mandriva.org> 1.12-3mdk
- fix error on preun

* Sat Dec 31 2005 Götz Waschk <waschk@mandriva.org> 1.12-2mdk
- first try of parallel init

* Tue Sep 13 2005 Götz Waschk <waschk@mandriva.org> 1.12-1mdk
- new version

* Thu Aug 11 2005 Thierry Vignaud <tvignaud@mandriva.com> 1.11-3mdk
- drop devfs support
- drop udev rule, udev is already aware of it

* Thu Nov 18 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.11-2mdk
- source 1: fix init script (Eric Pielbug, #12286)

* Wed Nov 03 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.11-1mdk
- new release

* Tue Oct 26 2004 Goetz Waschk <waschk@linux-mandrake.com> 1.10-1mdk
- New release 1.10

* Fri Sep 10 2004 Goetz Waschk <waschk@linux-mandrake.com> 1.09-1mdk
- New release 1.09

* Mon Sep  6 2004 Götz Waschk <waschk@linux-mandrake.com> 1.08-2mdk
- add udev support, fixes bug #11204

* Thu Aug 12 2004 Goetz Waschk <waschk@linux-mandrake.com> 1.08-1mdk
- New release 1.08

* Tue Jun 08 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.06-10mdk
- fix typo in description (Eskild Hustvedt)

* Tue Jun 08 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.06-9mdk
- fix microcode update on 2.6.x with devfs (anthill #897)

* Thu Oct  9 2003 Götz Waschk <waschk@linux-mandrake.com> 1.06-8mdk
- spec fixes
- it's x86-only

* Fri Apr 25 2003 Götz Waschk <waschk@linux-mandrake.com> 1.06-7mdk
- fix buildrequires (thanks to the bot from Stefan van der Eijk)

* Tue Mar 11 2003 Götz Waschk <waschk@linux-mandrake.com> 1.06-6mdk
- fix build

* Fri Mar 22 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.06-5mdk
- more macros use
- simplify %%preun

* Mon Feb 25 2002 Götz Waschk <waschk@linux-mandrake.com> 1.06-4mdk
- fix init script, thanks to DUCLOS Andre <shirka@wanadoo.fr>

* Mon Feb 18 2002 Götz Waschk <waschk@linux-mandrake.com> 1.06-3mdk
- update init script, load microcode module for devfs users

* Fri Oct 12 2001 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.06-2mdk
- happy birthday, mister rpmlint

* Tue Aug 21 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.06-1mdk
- updated to 1.06

* Thu Mar 22 2001 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.04-1mdk
- new version

* Wed Feb 28 2001 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.03-1mdk
- Initial RPM