2005-01-08 08:23:02 +00:00
|
|
|
Summary: Tool to update x86/x86-64 CPU microcode.
|
|
|
|
Name: microcode_ctl
|
2006-01-27 21:20:55 +00:00
|
|
|
Version: 1.13
|
2006-07-17 23:44:58 +00:00
|
|
|
Release: %(R="$Revision$"; RR="${R##: }"; echo ${RR%%?})%{?dist}
|
2005-02-18 00:03:26 +00:00
|
|
|
Epoch: 1
|
2005-01-08 08:23:02 +00:00
|
|
|
Group: System Environment/Base
|
|
|
|
License: GPL
|
2005-09-14 02:57:16 +00:00
|
|
|
Source0: microcode_ctl-%{version}.tar.gz
|
2005-01-08 08:23:02 +00:00
|
|
|
Source1: microcode_ctl.init
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
Prereq: /sbin/chkconfig /sbin/service
|
2006-06-17 03:12:29 +00:00
|
|
|
Prereq: grep gawk coreutils
|
2005-01-08 08:23:02 +00:00
|
|
|
Obsoletes: kernel-utils
|
|
|
|
ExclusiveArch: i386 x86_64
|
|
|
|
|
|
|
|
Patch1: microcode_ctl.patch
|
|
|
|
|
|
|
|
%description
|
|
|
|
microcode_ctl - updates the microcode on Intel x86/x86-64 CPU's
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c
|
|
|
|
%patch1 -p0
|
|
|
|
|
|
|
|
%build
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/usr/sbin
|
|
|
|
mkdir -p %{buildroot}/usr/man
|
|
|
|
mkdir -p %{buildroot}/etc/rc.d/init.d
|
|
|
|
mkdir -p %{buildroot}/etc/sysconfig
|
|
|
|
|
2005-09-14 02:57:16 +00:00
|
|
|
cd microcode_ctl-%{version}
|
2005-01-08 08:23:02 +00:00
|
|
|
make CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}/usr/share/man/man{1,8}
|
|
|
|
|
2005-09-14 02:57:16 +00:00
|
|
|
cd microcode_ctl-%{version}
|
2005-01-08 08:23:02 +00:00
|
|
|
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} \
|
|
|
|
INSDIR=/sbin MANDIR=%{_mandir}/man8 RCDIR=/etc MICDIR=/etc/firmware install clean
|
|
|
|
|
|
|
|
install %{SOURCE1} %{buildroot}/etc/rc.d/init.d/microcode_ctl
|
|
|
|
rm %{buildroot}/etc/init.d/microcode_ctl
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
chmod -R a-s %{buildroot}
|
|
|
|
%clean
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/etc/rc.d/init.d/microcode_ctl
|
|
|
|
/etc/firmware/*
|
|
|
|
/sbin/microcode_ctl
|
|
|
|
%attr(0644,root,root) %{_mandir}/*/*
|
|
|
|
|
2005-01-14 06:45:38 +00:00
|
|
|
|
|
|
|
|
2005-01-08 08:23:02 +00:00
|
|
|
%preun
|
|
|
|
if [ "$1" = "0" ] ; then
|
2005-01-14 06:45:38 +00:00
|
|
|
/sbin/chkconfig --del microcode_ctl
|
2005-01-08 08:23:02 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%post
|
2005-01-14 07:42:02 +00:00
|
|
|
# Only enable on Intel 686's and above.
|
2005-01-14 06:45:38 +00:00
|
|
|
vendor=`cat /proc/cpuinfo | grep "^vendor_id" | sort -u | awk -F ": " '{ print $2 }'`
|
2005-01-14 07:42:02 +00:00
|
|
|
[ "$vendor" != "GenuineIntel" ] && exit 0
|
2005-01-14 06:45:38 +00:00
|
|
|
family=`cat /proc/cpuinfo | grep "^cpu family" | sort -u | awk -F ": " '{ print $2 }'`
|
2005-01-14 07:42:02 +00:00
|
|
|
[ $family -lt 6 ] && exit 0
|
2005-01-08 08:23:02 +00:00
|
|
|
/sbin/chkconfig --add microcode_ctl
|
|
|
|
|
2005-01-14 06:25:49 +00:00
|
|
|
%triggerpostun -- kernel-utils
|
2005-01-14 07:42:02 +00:00
|
|
|
# Only enable on Intel 686's and above.
|
2005-01-14 06:49:25 +00:00
|
|
|
vendor=`cat /proc/cpuinfo | grep "^vendor_id" | sort -u | awk -F ": " '{ print $2 }'`
|
2005-01-14 07:42:02 +00:00
|
|
|
[ "$vendor" != "GenuineIntel" ] && exit 0
|
2005-01-14 06:49:25 +00:00
|
|
|
family=`cat /proc/cpuinfo | grep "^cpu family" | sort -u | awk -F ": " '{ print $2 }'`
|
2005-01-14 07:42:02 +00:00
|
|
|
[ $family -lt 6 ] && exit 0
|
2005-01-14 06:25:49 +00:00
|
|
|
/sbin/chkconfig --add microcode_ctl
|
|
|
|
exit 0
|
|
|
|
|
2005-01-08 08:23:02 +00:00
|
|
|
%changelog
|
2006-07-17 23:44:58 +00:00
|
|
|
* Mon Jul 17 2006 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuild
|
|
|
|
|
2006-06-17 03:12:29 +00:00
|
|
|
* Fri Jun 16 2006 Bill Nottingham <notting@redhat.com>
|
|
|
|
- remove kudzu requirement
|
|
|
|
- add prereq for coreutils, awk, grep
|
|
|
|
|
2006-02-09 06:23:55 +00:00
|
|
|
* Thu Feb 09 2006 Dave Jones <davej@redhat.com>
|
|
|
|
- rebuild.
|
|
|
|
|
2006-01-27 21:20:55 +00:00
|
|
|
* Fri Jan 27 2006 Dave Jones <davej@redhat.com>
|
|
|
|
- Update to upstream 1.13
|
|
|
|
|
2005-12-16 23:21:47 +00:00
|
|
|
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt for new gcj
|
|
|
|
|
2005-12-09 22:42:01 +00:00
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2005-11-15 04:06:33 +00:00
|
|
|
* Mon Nov 14 2005 Dave Jones <davej@redhat.com>
|
|
|
|
- initscript tweaks.
|
|
|
|
|
2005-09-14 02:57:16 +00:00
|
|
|
* Tue Sep 13 2005 Dave Jones <davej@redhat.com>
|
|
|
|
- Update to upstream 1.12
|
|
|
|
|
2005-08-17 17:50:45 +00:00
|
|
|
* Wed Aug 17 2005 Dave Jones <davej@redhat.com>
|
|
|
|
- Check for device node *after* loading the module. (#157672)
|
|
|
|
|
2005-03-02 04:06:20 +00:00
|
|
|
* Tue Mar 1 2005 Dave Jones <davej@redhat.com>
|
|
|
|
- Rebuild for gcc4
|
|
|
|
|
2005-02-18 00:03:26 +00:00
|
|
|
* Thu Feb 17 2005 Dave Jones <davej@redhat.com>
|
|
|
|
- s/Serial/Epoch/
|
|
|
|
|
2005-01-25 09:37:26 +00:00
|
|
|
* Tue Jan 25 2005 Dave Jones <davej@redhat.com>
|
|
|
|
- Drop the node creation/deletion change from previous release.
|
|
|
|
It'll cause grief with selinux, and was a hack to get around
|
|
|
|
a udev shortcoming that should be fixed properly.
|
|
|
|
|
2005-01-21 22:29:56 +00:00
|
|
|
* Fri Jan 21 2005 Dave Jones <davej@redhat.com>
|
|
|
|
- Create/remove the /dev/cpu/microcode dev node as needed.
|
2005-01-21 22:45:05 +00:00
|
|
|
- Use correct path again for the microcode.dat.
|
|
|
|
- Remove some no longer needed tests in the init script.
|
2005-01-21 22:29:56 +00:00
|
|
|
|
2005-01-14 06:45:38 +00:00
|
|
|
* Fri Jan 14 2005 Dave Jones <davej@redhat.com>
|
|
|
|
- Only enable microcode_ctl service if the CPU is capable.
|
2005-01-14 07:42:02 +00:00
|
|
|
- Prevent microcode_ctl getting restarted multiple times on initlevel change (#141581)
|
|
|
|
- Make restart/reload work properly
|
|
|
|
- Do nothing if not started by root.
|
2005-01-14 06:45:38 +00:00
|
|
|
|
2005-01-13 04:23:43 +00:00
|
|
|
* Wed Jan 12 2005 Dave Jones <davej@redhat.com>
|
|
|
|
- Adjust dev node location. (#144963)
|
|
|
|
|
2005-01-11 17:31:34 +00:00
|
|
|
* Tue Jan 11 2005 Dave Jones <davej@redhat.com>
|
|
|
|
- Load/Remove microcode module in initscript.
|
|
|
|
|
2005-01-10 23:48:30 +00:00
|
|
|
* Mon Jan 10 2005 Dave Jones <davej@redhat.com>
|
|
|
|
- Update to upstream 1.11 release.
|
|
|
|
|
2005-01-08 08:23:02 +00:00
|
|
|
* Sat Dec 18 2004 Dave Jones <davej@redhat.com>
|
|
|
|
- Initial packaging, based upon kernel-utils.
|
|
|
|
|