2007-01-16 00:24:56 +01:00
|
|
|
#
|
2011-06-16 10:53:25 +02:00
|
|
|
# spec file for package mcelog
|
2007-01-16 00:24:56 +01:00
|
|
|
#
|
2014-04-28 19:00:23 +02:00
|
|
|
# Copyright (c) 2014 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/
|
|
|
|
#
|
|
|
|
|
2008-09-29 18:00:24 +02:00
|
|
|
|
2007-01-16 00:24:56 +01:00
|
|
|
Name: mcelog
|
|
|
|
Summary: Log Machine Check Events
|
2014-07-18 07:32:44 +02:00
|
|
|
License: GPL-2.0
|
2012-07-18 14:50:39 +02:00
|
|
|
Group: System/Monitoring
|
2014-04-28 19:00:23 +02:00
|
|
|
Version: 1.0.1
|
2012-07-18 14:50:39 +02:00
|
|
|
Release: 0
|
|
|
|
ExclusiveArch: ix86 x86_64
|
2010-10-25 15:51:14 +02:00
|
|
|
BuildRequires: libesmtp-devel
|
2013-11-27 09:05:19 +01:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
BuildRequires: pkgconfig(udev)
|
2010-10-25 15:51:14 +02:00
|
|
|
Requires: logrotate
|
2009-11-16 18:01:52 +01:00
|
|
|
Source: mcelog-%{version}.tar.bz2
|
2010-10-25 15:51:14 +02:00
|
|
|
Source2: mcelog.sysconfig
|
2011-11-24 17:57:46 +01:00
|
|
|
Source3: mcelog.systemd
|
2013-11-27 09:05:19 +01:00
|
|
|
Source4: 90-mcelog.rules
|
2010-10-25 15:51:14 +02:00
|
|
|
Source6: README.email_setup
|
|
|
|
Patch1: email.patch
|
2011-08-18 17:12:58 +02:00
|
|
|
Patch2: mcelog_invert_prefill_db_warning.patch
|
2014-05-16 17:58:42 +02:00
|
|
|
Patch3: Start-consolidating-AMD-specific-stuff.patch
|
|
|
|
Patch4: patches/add-defines.patch
|
|
|
|
Patch5: patches/add-f10h-support.patch
|
|
|
|
Patch6: patches/add-f11h-support.patch
|
|
|
|
Patch7: patches/add-f12h-support.patch
|
|
|
|
Patch8: patches/add-f14h-support.patch
|
|
|
|
Patch9: patches/add-f15h-support.patch
|
|
|
|
Patch10: patches/add-f16h-support.patch
|
2014-07-04 16:20:51 +02:00
|
|
|
Patch11: 0001-Continue-without-dmi-when-no-SMBIOS-or-SMBIOS-0x0-in.patch
|
2007-01-16 00:24:56 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-11-27 09:05:19 +01:00
|
|
|
PreReq: %fillup_prereq
|
2014-04-28 19:00:23 +02:00
|
|
|
Url: https://git.kernel.org/cgit/utils/cpu/mce/mcelog.git
|
|
|
|
# Previously version was wrong, mainline decided to go for 1.0.1. not 1.1
|
|
|
|
Obsoletes: mcelog = 1.1
|
2013-11-27 09:05:19 +01:00
|
|
|
%{?systemd_requires}
|
2013-02-23 08:36:00 +01:00
|
|
|
|
2007-01-16 00:24:56 +01:00
|
|
|
%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
|
2013-11-27 09:05:19 +01:00
|
|
|
%setup -q
|
2010-09-16 12:23:45 +02:00
|
|
|
%patch1 -p1
|
2011-08-18 17:12:58 +02:00
|
|
|
%patch2 -p1
|
2014-05-16 17:58:42 +02:00
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
2014-07-04 16:20:51 +02:00
|
|
|
%patch11 -p1
|
2007-01-16 00:24:56 +01:00
|
|
|
|
|
|
|
%build
|
2010-10-25 15:51:14 +02:00
|
|
|
export SUSE_ASNEEDED=0
|
2007-01-16 00:24:56 +01:00
|
|
|
make CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
|
|
|
|
%install
|
2010-09-16 12:23:45 +02:00
|
|
|
export prefix=$RPM_BUILD_ROOT/usr
|
|
|
|
export etcprefix=$RPM_BUILD_ROOT
|
|
|
|
make -e install
|
2007-01-16 00:24:56 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d/
|
2010-01-12 16:13:00 +01:00
|
|
|
install -m644 mcelog.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/mcelog
|
2007-01-16 00:24:56 +01:00
|
|
|
|
2010-10-25 15:51:14 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
|
|
|
|
install -m 644 %SOURCE2 $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.mcelog
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%_docdir/%name
|
|
|
|
install -m 644 %SOURCE6 $RPM_BUILD_ROOT/%_docdir/%name/README.email_setup
|
|
|
|
install -m 644 lk10-mcelog.pdf $RPM_BUILD_ROOT/%_docdir/%name/lk10-mcelog.pdf
|
2013-11-27 09:05:19 +01:00
|
|
|
install -D -m 0644 %SOURCE3 %{buildroot}%{_unitdir}/mcelog.service
|
|
|
|
install -D -m 0644 %SOURCE4 %{buildroot}%{_udevrulesdir}/90-mcelog.rules
|
2014-04-28 19:00:23 +02:00
|
|
|
ln -sf %_sbindir/service ${RPM_BUILD_ROOT}%_sbindir/rcmcelog
|
2010-10-25 15:51:14 +02:00
|
|
|
|
2007-01-16 00:24:56 +01:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2013-11-27 09:05:19 +01:00
|
|
|
%pre
|
|
|
|
%service_add_pre %{name}.service
|
|
|
|
|
2010-01-12 16:13:00 +01:00
|
|
|
%post
|
2013-11-27 09:05:19 +01:00
|
|
|
%fillup_only
|
|
|
|
%udev_rules_update
|
|
|
|
%service_add_post %{name}.service
|
2010-01-12 16:13:00 +01:00
|
|
|
|
|
|
|
%preun
|
2013-11-27 09:05:19 +01:00
|
|
|
%service_del_preun %{name}.service
|
2010-01-12 16:13:00 +01:00
|
|
|
|
|
|
|
%postun
|
2013-11-27 09:05:19 +01:00
|
|
|
%service_del_postun %{name}.service
|
2010-01-12 16:13:00 +01:00
|
|
|
|
2007-01-16 00:24:56 +01:00
|
|
|
%files
|
|
|
|
%defattr (-,root,root,755)
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
/usr/sbin/mcelog
|
2010-01-12 16:13:00 +01:00
|
|
|
%config /etc/logrotate.d/mcelog
|
2010-09-16 12:23:45 +02:00
|
|
|
%dir /etc/mcelog
|
|
|
|
%config /etc/mcelog/mcelog.conf
|
2010-10-25 15:51:14 +02:00
|
|
|
/var/adm/fillup-templates/sysconfig.mcelog
|
2010-09-16 12:23:45 +02:00
|
|
|
/etc/mcelog/*trigger
|
2013-11-27 09:05:19 +01:00
|
|
|
%{_unitdir}/mcelog.service
|
|
|
|
%{_udevrulesdir}/90-mcelog.rules
|
2010-10-25 15:51:14 +02:00
|
|
|
%_docdir/%name
|
2014-04-28 19:00:23 +02:00
|
|
|
%_sbindir/rcmcelog
|
2007-01-16 00:24:56 +01:00
|
|
|
|
2008-09-29 18:00:24 +02:00
|
|
|
%changelog
|