8051f9
Name:			rasdaemon
8051f9
Version:		0.6.1
d70786
Release:		3%{?dist}
8051f9
Summary:		Utility to receive RAS error tracings
8051f9
Group:			Applications/System
8051f9
License:		GPLv2
8051f9
URL:			http://git.infradead.org/users/mchehab/rasdaemon.git
8051f9
Source0:		http://www.infradead.org/~mchehab/rasdaemon/%{name}-%{version}.tar.bz2
8051f9
8051f9
ExcludeArch:		s390 s390x
8051f9
BuildRequires:		gettext-devel
8051f9
BuildRequires:		perl-generators
8051f9
BuildRequires:		sqlite-devel
8051f9
BuildRequires:		systemd
8051f9
Provides:		bundled(kernel-event-lib)
8051f9
Requires:		hwdata
8051f9
Requires:		perl-DBD-SQLite
8051f9
%ifarch %{ix86} x86_64
8051f9
Requires:		dmidecode
8051f9
%endif
8051f9
8051f9
Requires(post):		systemd
8051f9
Requires(preun):	systemd
8051f9
Requires(postun):	systemd
8051f9
8051f9
Patch1: 60a91e4da4f2daf2b10143fc148a8043312b61e5.patch
d70786
Patch2: a16ca0711001957ee98f2c124abce0fa1f801529.patch
8051f9
8051f9
%description
8051f9
%{name} is a RAS (Reliability, Availability and Serviceability) logging tool.
8051f9
It currently records memory errors, using the EDAC tracing events.
8051f9
EDAC is drivers in the Linux kernel that handle detection of ECC errors
8051f9
from memory controllers for most chipsets on i386 and x86_64 architectures.
8051f9
EDAC drivers for other architectures like arm also exists.
8051f9
This userspace component consists of an init script which makes sure
8051f9
EDAC drivers and DIMM labels are loaded at system startup, as well as
8051f9
an utility for reporting current error counts from the EDAC sysfs files.
8051f9
8051f9
%prep
8051f9
%setup -q
d70786
%patch1 -p1
d70786
%patch2 -p1
8051f9
8051f9
%build
8051f9
%ifarch %{arm} aarch64
8051f9
%configure --enable-mce --enable-aer --enable-sqlite3 --enable-extlog --enable-abrt-report --enable-non-standard --enable-hisi-ns-decode --enable-arm
8051f9
%else
8051f9
%configure --enable-mce --enable-aer --enable-sqlite3 --enable-extlog --enable-abrt-report
8051f9
%endif
8051f9
make %{?_smp_mflags}
8051f9
8051f9
%install
8051f9
make install DESTDIR=%{buildroot}
8051f9
install -D -p -m 0644 misc/rasdaemon.service %{buildroot}/%{_unitdir}/rasdaemon.service
8051f9
install -D -p -m 0644 misc/ras-mc-ctl.service %{buildroot}%{_unitdir}/ras-mc-ctl.service
8051f9
rm INSTALL %{buildroot}/usr/include/*.h
8051f9
8051f9
%files
8051f9
%doc AUTHORS ChangeLog COPYING README TODO
8051f9
%{_sbindir}/rasdaemon
8051f9
%{_sbindir}/ras-mc-ctl
8051f9
%{_mandir}/*/*
8051f9
%{_unitdir}/*.service
8051f9
%{_sharedstatedir}/rasdaemon
8051f9
%{_sysconfdir}/ras/dimm_labels.d
8051f9
8051f9
%changelog
d70786
* Thu Jul 11 2019 Aristeu Rozanski <aris@redhat.com> 0.6.1-3
d70786
- Add support for AMD scalable MCA [1725488]
d70786
8051f9
* Mon Aug 20 2018 Aristeu Rozanski <aris@redhat.com> 0.6.1-2
8051f9
- Add support for error count display [1573685]
8051f9
8051f9
* Wed Apr 25 2018 Mauro Carvalho Chehab <mchehab+samsung@kernel.org>  0.6.1-1
8051f9
- Bump to version 0.6.1 adding support for Skylake Xeon MSCOD, a bug fix and some new DELL labels
8051f9
8051f9
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
8051f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8051f9
8051f9
* Sat Oct 14 2017 Mauro Carvalho Chehab <mchehab@osg.samsung.com>  0.6.0-1
8051f9
- Bump to version 0.6.0 adding support for Arm and Hisilicon events and update Dell Skylate labels
8051f9
8051f9
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.8-6
8051f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
8051f9
8051f9
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.8-5
8051f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8051f9
8051f9
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.8-4
8051f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8051f9
8051f9
* Fri Apr 15 2016 Mauro Carvalho Chehab <mchehab@osg.samsung.com> 0.5.8-3
8051f9
- Add a virtual provide, per BZ#104132
8051f9
8051f9
* Fri Apr 15 2016 Mauro Carvalho Chehab <mchehab@osg.samsung.com> 0.5.8-2
8051f9
- Bump to version 0.5.8 with support for Broadwell EP/EX MSCOD/DE MSCOD
8051f9
8051f9
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.6-2
8051f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8051f9
8051f9
* Fri Jul 03 2015 Mauro Carvalho Chehab <mchehab@osg.samsung.com> 0.5.6-1
8051f9
- Bump to version 0.5.6 with support for LMCE and some fixes
8051f9
8051f9
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.5-2
8051f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8051f9
8051f9
* Wed Jun 03 2015 Mauro Carvalho Chehab <mchehab@osg.samsung.com> 0.5.5-1
8051f9
- Bump to version 0.5.5 with support for newer Intel platforms & some fixes
8051f9
8051f9
* Tue Sep 16 2014 Peter Robinson <pbrobinson@fedoraproject.org> 0.5.4-3
8051f9
- aarch64/ppc64 have edac capabilities
8051f9
- spec cleanups
8051f9
- No need to run autoreconf
8051f9
8051f9
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-2
8051f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8051f9
8051f9
* Fri Aug 15 2014 Mauro Carvalho Chehab <m.chehab@samsung.com> 0.5.4-1
8051f9
- Bump to version 0.5.4 with some fixes, mainly for amd64
8051f9
8051f9
* Sun Aug 10 2014 Mauro Carvalho Chehab <m.chehab@samsung.com> 0.5.3-1
8051f9
- Bump to version 0.5.3 and enable ABRT and ExtLog
8051f9
8051f9
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-2
8051f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8051f9
8051f9
* Thu Apr 03 2014 Mauro Carvalho Chehab <m.chehab@samsung.com> 0.5.2-1
8051f9
- fix and enable ABRT report support
8051f9
8051f9
* Fri Mar 28 2014 Mauro Carvalho Chehab <m.chehab@samsung.com> 0.5.1-1
8051f9
- Do some fixes at the service files and add some documentation for --record
8051f9
8051f9
* Sun Feb 16 2014  Mauro Carvalho Chehab <m.chehab@samsung.com> 0.5.0-1
8051f9
- Add experimental ABRT support
8051f9
8051f9
* Tue Sep 10 2013 Mauro Carvalho Chehab <m.chehab@samsung.com> 0.4.2-1
8051f9
- Fix ras-mc-ctl layout filling
8051f9
 
8051f9
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-5
8051f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8051f9
8051f9
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.4.1-4
8051f9
- Perl 5.18 rebuild
8051f9
8051f9
* Sun Jun  2 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.4.1-3
8051f9
- ARM has EDMA drivers (currently supported in Calxeda highbank)
8051f9
8051f9
* Wed May 29 2013 Mauro Carvalho Chehab <mchehab@redhat.com> 0.4.1-2
8051f9
- Fix the name of perl-DBD-SQLite package
8051f9
 
8051f9
* Wed May 29 2013 Mauro Carvalho Chehab <mchehab@redhat.com> 0.4.1-1
8051f9
- Updated to version 0.4.1 with contains some bug fixes
8051f9
8051f9
* Tue May 28 2013 Mauro Carvalho Chehab <mchehab@redhat.com> 0.4.0-1
8051f9
- Updated to version 0.4.0 and added support for mce, aer and sqlite3 storage
8051f9
8051f9
* Mon May 20 2013 Mauro Carvalho Chehab <mchehab@redhat.com> 0.3.0-1
8051f9
- Package created
8051f9