David Johansen cc1666
Name:			rasdaemon
David Johansen 52e459
Version:		0.6.7
Michel Alexandre Salim 09c31d
Release:		3%{?dist}
David Johansen cc1666
Summary:		Utility to receive RAS error tracings
David Johansen cc1666
License:		GPLv2
David Johansen cc1666
URL:			http://git.infradead.org/users/mchehab/rasdaemon.git
David Johansen cc1666
Source0:		http://www.infradead.org/~mchehab/rasdaemon/%{name}-%{version}.tar.bz2
Michel Alexandre Salim 09c31d
# add unified SEL logging for OpenBMC
Michel Alexandre Salim 09c31d
# https://github.com/mchehab/rasdaemon/pull/97
Michel Alexandre Salim 09c31d
Patch0:			https://github.com/mchehab/rasdaemon/pull/97.patch#/%{name}-openbmc-unified-sel.diff
David Johansen cc1666
David Johansen cc1666
ExcludeArch:		s390 s390x
Michel Alexandre Salim 09c31d
BuildRequires:		autoconf
Michel Alexandre Salim 09c31d
BuildRequires:		automake
Michel Alexandre Salim 09c31d
BuildRequires:		libtool
David Johansen cc1666
BuildRequires:		gcc
David Johansen cc1666
BuildRequires:		gettext-devel
Michel Alexandre Salim 09c31d
BuildRequires:		make
David Johansen cc1666
BuildRequires:		perl-generators
David Johansen cc1666
BuildRequires:		sqlite-devel
David Johansen cc1666
BuildRequires:		systemd
David Johansen cc1666
Provides:		bundled(kernel-event-lib)
David Johansen cc1666
Requires:		hwdata
David Johansen cc1666
Requires:		perl-DBD-SQLite
David Johansen cc1666
%ifarch %{ix86} x86_64
David Johansen cc1666
Requires:		dmidecode
David Johansen cc1666
%endif
David Johansen cc1666
David Johansen cc1666
Requires(post):		systemd
David Johansen cc1666
Requires(preun):	systemd
David Johansen cc1666
Requires(postun):	systemd
David Johansen cc1666
David Johansen cc1666
%description
David Johansen cc1666
%{name} is a RAS (Reliability, Availability and Serviceability) logging tool.
David Johansen cc1666
It currently records memory errors, using the EDAC tracing events.
David Johansen cc1666
EDAC is drivers in the Linux kernel that handle detection of ECC errors
David Johansen cc1666
from memory controllers for most chipsets on i386 and x86_64 architectures.
David Johansen cc1666
EDAC drivers for other architectures like arm also exists.
David Johansen cc1666
This userspace component consists of an init script which makes sure
David Johansen cc1666
EDAC drivers and DIMM labels are loaded at system startup, as well as
David Johansen cc1666
an utility for reporting current error counts from the EDAC sysfs files.
David Johansen cc1666
David Johansen cc1666
%prep
Michel Alexandre Salim 09c31d
%autosetup -p1
Michel Alexandre Salim 09c31d
autoreconf -fiv
David Johansen cc1666
David Johansen cc1666
%build
David Johansen cc1666
%ifarch %{arm} aarch64
Michel Alexandre Salim 09c31d
%configure --enable-sqlite3 --enable-aer --enable-mce --enable-extlog --enable-devlink --enable-diskerror --enable-abrt-report --enable-non-standard --enable-arm --enable-hisi-ns-decode --enable-openbmc-unified-sel --with-sysconfdefdir="%{_sysconfdir}/sysconfig"
David Johansen cc1666
%else
Michel Alexandre Salim 09c31d
%configure --enable-sqlite3 --enable-aer --enable-mce --enable-extlog --enable-devlink --enable-diskerror --enable-abrt-report --enable-memory-ce-pfa --enable-openbmc-unified-sel --with-sysconfdefdir="%{_sysconfdir}/sysconfig"
David Johansen cc1666
%endif
David Johansen cc1666
make %{?_smp_mflags}
David Johansen cc1666
David Johansen cc1666
%install
David Johansen cc1666
make install DESTDIR=%{buildroot}
David Johansen cc1666
install -D -p -m 0644 misc/rasdaemon.service %{buildroot}/%{_unitdir}/rasdaemon.service
David Johansen cc1666
install -D -p -m 0644 misc/ras-mc-ctl.service %{buildroot}%{_unitdir}/ras-mc-ctl.service
David Johansen cc1666
rm INSTALL %{buildroot}/usr/include/*.h
David Johansen cc1666
David Johansen cc1666
%files
David Johansen cc1666
%doc AUTHORS ChangeLog COPYING README TODO
David Johansen cc1666
%{_sbindir}/rasdaemon
David Johansen cc1666
%{_sbindir}/ras-mc-ctl
David Johansen cc1666
%{_mandir}/*/*
David Johansen cc1666
%{_unitdir}/*.service
David Johansen cc1666
%{_sysconfdir}/ras/dimm_labels.d
David Johansen 0073e8
%ifnarch %{arm} aarch64
David Johansen 447ac5
%{_sysconfdir}/sysconfig/rasdaemon
David Johansen 0073e8
%endif
David Johansen cc1666
David Johansen cc1666
%changelog
Michel Alexandre Salim 09c31d
* Tue Jun 27 2023 Michel Alexandre Salim <salimma@centosproject.org> - 0.6.7-3
Michel Alexandre Salim 09c31d
- Enable unified SEL logging for OpenBMC
Michel Alexandre Salim 09c31d
Michel Alexandre Salim 54f396
* Wed Mar 01 2023 Michel Alexandre Salim <salimma@centosproject.org> - 0.6.7-2.1
Michel Alexandre Salim 54f396
- Rebuild to fix vendor tag
Michel Alexandre Salim 54f396
Justin Vreeland 9fed97
* Thu Sep 30 2021 Justin Vreeland <jvreeland@twitter.com> - 0.6.7-2
Justin Vreeland 9fed97
- Bump release for aarch64
Justin Vreeland 9fed97
Michel Alexandre Salim 09c31d
* Fri Jun 18 2021 David Johansen <david@makewhat.is> - 0.6.7-1
David Johansen 52e459
- Build release 0.6.7 and remove backport patches
David Johansen 52e459
- shardstatdir/rasdaemon is now created at runtime.
David Johansen 52e459
David Johansen 97bbe1
* Thu Apr 01 2021 David Johansen <david@makewhat.is> - 0.6.6-2
David Johansen 97bbe1
- Include later patches for ras-mc-ctl fixes
David Johansen 97bbe1
David Johansen 447ac5
* Fri Feb 26 2021 David Johansen <david@makewhat.is> - 0.6.6-1
David Johansen 45192c
- Bump to version 0.6.6 and include patches for ras-mc-ctl fixes
David Johansen 447ac5
- Include patches for page-offlining fixes
David Johansen cc1666
David Johansen cc1666
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-4
David Johansen cc1666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
David Johansen cc1666
David Johansen cc1666
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-3
David Johansen cc1666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
David Johansen cc1666
David Johansen cc1666
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-2
David Johansen cc1666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
David Johansen cc1666
David Johansen cc1666
David Johansen cc1666
* Thu Oct 10 2019 Mauro Carvalho Chehab <mchehab+samsung@kernel.org>  0.6.4-1
David Johansen cc1666
- Bump to version 0.6.4 with some DB changes for hip08 and some fixes
David Johansen cc1666
David Johansen cc1666
* Fri Aug 23 2019 Mauro Carvalho Chehab <mchehab+samsung@kernel.org>  0.6.3-1
David Johansen cc1666
- Bump to version 0.6.3 with new ARM events, plus disk I/O and netlink support
David Johansen cc1666
David Johansen cc1666
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-3
David Johansen cc1666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
David Johansen cc1666
David Johansen cc1666
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-2
David Johansen cc1666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
David Johansen cc1666
David Johansen cc1666
* Tue Aug 14 2018 Mauro Carvalho Chehab <mchehab+samsung@kernel.org>  0.6.2-1
David Johansen cc1666
- Bump to version 0.6.2 with improvements for PCIe AER parsing and at ras-mc-ctl tool
David Johansen cc1666
David Johansen cc1666
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-2
David Johansen cc1666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
David Johansen cc1666
David Johansen cc1666
* Wed Apr 25 2018 Mauro Carvalho Chehab <mchehab+samsung@kernel.org>  0.6.1-1
David Johansen cc1666
- Bump to version 0.6.1 adding support for Skylake Xeon MSCOD, a bug fix and some new DELL labels
David Johansen cc1666
David Johansen cc1666
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
David Johansen cc1666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
David Johansen cc1666
David Johansen cc1666
* Sat Oct 14 2017 Mauro Carvalho Chehab <mchehab@osg.samsung.com>  0.6.0-1
David Johansen cc1666
- Bump to version 0.6.0 adding support for Arm and Hisilicon events and update Dell Skylate labels
David Johansen cc1666
David Johansen cc1666
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.8-6
David Johansen cc1666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
David Johansen cc1666
David Johansen cc1666
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.8-5
David Johansen cc1666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
David Johansen cc1666
David Johansen cc1666
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.8-4
David Johansen cc1666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
David Johansen cc1666
David Johansen cc1666
* Fri Apr 15 2016 Mauro Carvalho Chehab <mchehab@osg.samsung.com> 0.5.8-3
David Johansen cc1666
- Add a virtual provide, per BZ#104132
David Johansen cc1666
David Johansen cc1666
* Fri Apr 15 2016 Mauro Carvalho Chehab <mchehab@osg.samsung.com> 0.5.8-2
David Johansen cc1666
- Bump to version 0.5.8 with support for Broadwell EP/EX MSCOD/DE MSCOD
David Johansen cc1666
David Johansen cc1666
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.6-2
David Johansen cc1666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
David Johansen cc1666
David Johansen cc1666
* Fri Jul 03 2015 Mauro Carvalho Chehab <mchehab@osg.samsung.com> 0.5.6-1
David Johansen cc1666
- Bump to version 0.5.6 with support for LMCE and some fixes
David Johansen cc1666
David Johansen cc1666
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.5-2
David Johansen cc1666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
David Johansen cc1666
David Johansen cc1666
* Wed Jun 03 2015 Mauro Carvalho Chehab <mchehab@osg.samsung.com> 0.5.5-1
David Johansen cc1666
- Bump to version 0.5.5 with support for newer Intel platforms & some fixes
David Johansen cc1666
David Johansen cc1666
* Tue Sep 16 2014 Peter Robinson <pbrobinson@fedoraproject.org> 0.5.4-3
David Johansen cc1666
- aarch64/ppc64 have edac capabilities
David Johansen cc1666
- spec cleanups
David Johansen cc1666
- No need to run autoreconf
David Johansen cc1666
David Johansen cc1666
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-2
David Johansen cc1666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
David Johansen cc1666
David Johansen cc1666
* Fri Aug 15 2014 Mauro Carvalho Chehab <m.chehab@samsung.com> 0.5.4-1
David Johansen cc1666
- Bump to version 0.5.4 with some fixes, mainly for amd64
David Johansen cc1666
David Johansen cc1666
* Sun Aug 10 2014 Mauro Carvalho Chehab <m.chehab@samsung.com> 0.5.3-1
David Johansen cc1666
- Bump to version 0.5.3 and enable ABRT and ExtLog
David Johansen cc1666
David Johansen cc1666
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-2
David Johansen cc1666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
David Johansen cc1666
David Johansen cc1666
* Thu Apr 03 2014 Mauro Carvalho Chehab <m.chehab@samsung.com> 0.5.2-1
David Johansen cc1666
- fix and enable ABRT report support
David Johansen cc1666
David Johansen cc1666
* Fri Mar 28 2014 Mauro Carvalho Chehab <m.chehab@samsung.com> 0.5.1-1
David Johansen cc1666
- Do some fixes at the service files and add some documentation for --record
David Johansen cc1666
David Johansen cc1666
* Sun Feb 16 2014  Mauro Carvalho Chehab <m.chehab@samsung.com> 0.5.0-1
David Johansen cc1666
- Add experimental ABRT support
David Johansen cc1666
David Johansen cc1666
* Tue Sep 10 2013 Mauro Carvalho Chehab <m.chehab@samsung.com> 0.4.2-1
David Johansen cc1666
- Fix ras-mc-ctl layout filling
David Johansen cc1666
David Johansen cc1666
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-5
David Johansen cc1666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
David Johansen cc1666
David Johansen cc1666
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.4.1-4
David Johansen cc1666
- Perl 5.18 rebuild
David Johansen cc1666
David Johansen cc1666
* Sun Jun  2 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.4.1-3
David Johansen cc1666
- ARM has EDMA drivers (currently supported in Calxeda highbank)
David Johansen cc1666
David Johansen cc1666
* Wed May 29 2013 Mauro Carvalho Chehab <mchehab@redhat.com> 0.4.1-2
David Johansen cc1666
- Fix the name of perl-DBD-SQLite package
David Johansen cc1666
David Johansen cc1666
* Wed May 29 2013 Mauro Carvalho Chehab <mchehab@redhat.com> 0.4.1-1
David Johansen cc1666
- Updated to version 0.4.1 with contains some bug fixes
David Johansen cc1666
David Johansen cc1666
* Tue May 28 2013 Mauro Carvalho Chehab <mchehab@redhat.com> 0.4.0-1
David Johansen cc1666
- Updated to version 0.4.0 and added support for mce, aer and sqlite3 storage
David Johansen cc1666
David Johansen cc1666
* Mon May 20 2013 Mauro Carvalho Chehab <mchehab@redhat.com> 0.3.0-1
David Johansen cc1666
- Package created
David Johansen cc1666