2007-01-16 00:24:56 +01:00
|
|
|
#
|
|
|
|
# spec file for package mcelog (Version 0.7)
|
|
|
|
#
|
2009-01-10 04:39:56 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:24:56 +01:00
|
|
|
#
|
2008-09-29 18:00:24 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:24:56 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-09-29 18:00:24 +02:00
|
|
|
|
2007-01-16 00:24:56 +01:00
|
|
|
Name: mcelog
|
2008-09-29 18:00:24 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:24:56 +01:00
|
|
|
Summary: Log Machine Check Events
|
|
|
|
Version: 0.7
|
2009-01-10 04:39:56 +01:00
|
|
|
Release: 112
|
2008-09-29 18:00:24 +02:00
|
|
|
AutoReqProv: on
|
2009-01-10 04:39:56 +01:00
|
|
|
ExclusiveArch: x86_64
|
2007-01-16 00:24:56 +01:00
|
|
|
Source: mcelog-%{version}.tar.gz
|
2008-09-29 18:00:24 +02:00
|
|
|
Patch0: mcelog-0.7-newcpus-1.diff
|
|
|
|
Patch1: mcelog-thermal.diff
|
2007-01-16 00:24:56 +01:00
|
|
|
Group: System/Monitoring
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
mcelog retrieves machine check events from an x86-64 kernel in a cron
|
|
|
|
job, decodes them, and logs them to /var/log/mcelog.
|
|
|
|
|
|
|
|
A machine check event is a hardware error detected by the CPU.
|
|
|
|
|
|
|
|
It should run on any x86-64 system.
|
|
|
|
|
|
|
|
In addition, it allows decoding machine check kernel panic messages.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2008-09-29 18:00:24 +02:00
|
|
|
Andi Kleen <andi@firstfloor.org>
|
2007-01-16 00:24:56 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
%patch0 -p1
|
2008-09-29 18:00:24 +02:00
|
|
|
%patch1 -p1
|
2007-01-16 00:24:56 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
make CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/sbin/
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/cron.hourly/
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d/
|
|
|
|
cp mcelog $RPM_BUILD_ROOT/usr/sbin
|
|
|
|
cp mcelog.cron $RPM_BUILD_ROOT/etc/cron.hourly/mcelog
|
|
|
|
cp mcelog.8 $RPM_BUILD_ROOT/%{_mandir}/man8
|
|
|
|
cp mcelog.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/mcelog
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr (-,root,root,755)
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
/usr/sbin/mcelog
|
|
|
|
/etc/cron.hourly/mcelog
|
|
|
|
/etc/logrotate.d/mcelog
|
|
|
|
|
2008-09-29 18:00:24 +02:00
|
|
|
%changelog
|
2009-01-10 04:39:56 +01:00
|
|
|
* Fri Jan 09 2009 olh@suse.de
|
|
|
|
- use ExclusiveArch as in /SRC/arch/
|
2008-09-29 18:00:24 +02:00
|
|
|
* Sat Sep 27 2008 trenn@suse.de
|
|
|
|
- fate #304279 mcelog support for Tigerton/Dunnington
|
|
|
|
Patch is from Andi himself with this statement:
|
|
|
|
While it looks large most of it is just new tables.
|
|
|
|
* Mon May 29 2006 ak@suse.de
|
2007-01-16 00:24:56 +01:00
|
|
|
- decode intel thermal events too (#179327)
|
2008-09-29 18:00:24 +02:00
|
|
|
* Fri May 05 2006 ak@suse.de
|
2007-01-16 00:24:56 +01:00
|
|
|
- Update to 0.7. This fixes
|
2008-09-29 18:00:24 +02:00
|
|
|
- Fix --dmi option (#166324)
|
|
|
|
- Incorporate old patches
|
|
|
|
* Fri Mar 03 2006 ak@suse.de
|
2007-01-16 00:24:56 +01:00
|
|
|
- Avoid cosmetic problem in --filter (#153347)
|
2008-09-29 18:00:24 +02:00
|
|
|
* Wed Feb 08 2006 ak@suse.de
|
2007-01-16 00:24:56 +01:00
|
|
|
- update to mcelog 0.6
|
|
|
|
* Fixes bugs (#148869, #137985)
|
|
|
|
* Adds --dmi option to map addresses to DIMMs using SMBIOS
|
|
|
|
(default to off)
|
2008-09-29 18:00:24 +02:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2007-01-16 00:24:56 +01:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-09-29 18:00:24 +02:00
|
|
|
* Mon Dec 19 2005 sf@suse.de
|
2007-01-16 00:24:56 +01:00
|
|
|
- update to version 0.5
|
|
|
|
* Clarify --ascii in the manpage
|
|
|
|
*Support for AMD K8 Revision F machine check DRAM error
|
|
|
|
thresholding
|
2008-09-29 18:00:24 +02:00
|
|
|
* Fri Feb 11 2005 ak@suse.de
|
2007-01-16 00:24:56 +01:00
|
|
|
- Use RPM_OPT_FLAGS
|
|
|
|
- Improve description again
|
2008-09-29 18:00:24 +02:00
|
|
|
* Thu Feb 10 2005 ak@suse.de
|
2007-01-16 00:24:56 +01:00
|
|
|
- mcelog-0.4:
|
|
|
|
* add support to decode AMD K8 (Opteron/Athlon64/AthlonFX) and
|
|
|
|
Intel P4 (Xeon and Pentium 4) events
|
|
|
|
* add --ascii option to decode machine check panic information
|
|
|
|
- Rewrite description in .spec file
|
2008-09-29 18:00:24 +02:00
|
|
|
* Wed Jun 09 2004 ak@suse.de
|
2007-01-16 00:24:56 +01:00
|
|
|
- memlog-0.2:
|
|
|
|
* fix mcelog looping (#41863)
|
|
|
|
* Add GPL notices
|
2008-09-29 18:00:24 +02:00
|
|
|
* Thu Mar 25 2004 sf@suse.de
|
2007-01-16 00:24:56 +01:00
|
|
|
- initial version
|
|
|
|
- fixes #36898
|