31a1f8
Name:			rasdaemon
31a1f8
Version:		0.6.4
31a1f8
Release:		6%{?dist}
31a1f8
Summary:		Utility to receive RAS error tracings
31a1f8
License:		GPLv2
31a1f8
URL:			http://git.infradead.org/users/mchehab/rasdaemon.git
31a1f8
Source0:		http://www.infradead.org/~mchehab/rasdaemon/%{name}-%{version}.tar.bz2
31a1f8
Patch0:			rasdaemon-avoid-multiple-definitions.patch
31a1f8
31a1f8
ExcludeArch:		s390 s390x
31a1f8
BuildRequires: make
31a1f8
BuildRequires:		gcc
31a1f8
BuildRequires:		gettext-devel
31a1f8
BuildRequires:		perl-generators
31a1f8
BuildRequires:		sqlite-devel
31a1f8
BuildRequires:		systemd
31a1f8
Provides:		bundled(kernel-event-lib)
31a1f8
Requires:		hwdata
31a1f8
Requires:		perl-DBD-SQLite
31a1f8
%ifarch %{ix86} x86_64
31a1f8
Requires:		dmidecode
31a1f8
%endif
31a1f8
31a1f8
Requires(post):		systemd
31a1f8
Requires(preun):	systemd
31a1f8
Requires(postun):	systemd
31a1f8
31a1f8
%description
31a1f8
%{name} is a RAS (Reliability, Availability and Serviceability) logging tool.
31a1f8
It currently records memory errors, using the EDAC tracing events.
31a1f8
EDAC is drivers in the Linux kernel that handle detection of ECC errors
31a1f8
from memory controllers for most chipsets on i386 and x86_64 architectures.
31a1f8
EDAC drivers for other architectures like arm also exists.
31a1f8
This userspace component consists of an init script which makes sure
31a1f8
EDAC drivers and DIMM labels are loaded at system startup, as well as
31a1f8
an utility for reporting current error counts from the EDAC sysfs files.
31a1f8
31a1f8
%prep
31a1f8
%setup -q
31a1f8
%patch0 -p1
31a1f8
31a1f8
%build
31a1f8
%ifarch %{arm} aarch64
31a1f8
%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
31a1f8
%else
31a1f8
%configure --enable-sqlite3 --enable-aer --enable-mce --enable-extlog --enable-devlink --enable-diskerror --enable-abrt-report
31a1f8
%endif
31a1f8
make %{?_smp_mflags}
31a1f8
31a1f8
%install
31a1f8
make install DESTDIR=%{buildroot}
31a1f8
install -D -p -m 0644 misc/rasdaemon.service %{buildroot}/%{_unitdir}/rasdaemon.service
31a1f8
install -D -p -m 0644 misc/ras-mc-ctl.service %{buildroot}%{_unitdir}/ras-mc-ctl.service
31a1f8
rm INSTALL %{buildroot}/usr/include/*.h
31a1f8
31a1f8
%files
31a1f8
%doc AUTHORS ChangeLog COPYING README TODO
31a1f8
%{_sbindir}/rasdaemon
31a1f8
%{_sbindir}/ras-mc-ctl
31a1f8
%{_mandir}/*/*
31a1f8
%{_unitdir}/*.service
31a1f8
%{_sharedstatedir}/rasdaemon
31a1f8
%{_sysconfdir}/ras/dimm_labels.d
31a1f8
31a1f8
%changelog
31a1f8
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.6.4-6
31a1f8
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
31a1f8
  Related: rhbz#1991688
31a1f8
31a1f8
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.6.4-5
31a1f8
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
31a1f8
31a1f8
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-4
31a1f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
31a1f8
31a1f8
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-3
31a1f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
31a1f8
31a1f8
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-2
31a1f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
31a1f8
31a1f8
31a1f8
* Thu Oct 10 2019 Mauro Carvalho Chehab <mchehab+samsung@kernel.org>  0.6.4-1
31a1f8
- Bump to version 0.6.4 with some DB changes for hip08 and some fixes
31a1f8
31a1f8
* Fri Aug 23 2019 Mauro Carvalho Chehab <mchehab+samsung@kernel.org>  0.6.3-1
31a1f8
- Bump to version 0.6.3 with new ARM events, plus disk I/O and netlink support
31a1f8
31a1f8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-3
31a1f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
31a1f8
31a1f8
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-2
31a1f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
31a1f8
31a1f8
* Tue Aug 14 2018 Mauro Carvalho Chehab <mchehab+samsung@kernel.org>  0.6.2-1
31a1f8
- Bump to version 0.6.2 with improvements for PCIe AER parsing and at ras-mc-ctl tool
31a1f8
31a1f8
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-2
31a1f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
31a1f8
31a1f8
* Wed Apr 25 2018 Mauro Carvalho Chehab <mchehab+samsung@kernel.org>  0.6.1-1
31a1f8
- Bump to version 0.6.1 adding support for Skylake Xeon MSCOD, a bug fix and some new DELL labels
31a1f8
31a1f8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
31a1f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
31a1f8
31a1f8
* Sat Oct 14 2017 Mauro Carvalho Chehab <mchehab@osg.samsung.com>  0.6.0-1
31a1f8
- Bump to version 0.6.0 adding support for Arm and Hisilicon events and update Dell Skylate labels
31a1f8
31a1f8
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.8-6
31a1f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
31a1f8
31a1f8
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.8-5
31a1f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
31a1f8
31a1f8
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.8-4
31a1f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
31a1f8
31a1f8
* Fri Apr 15 2016 Mauro Carvalho Chehab <mchehab@osg.samsung.com> 0.5.8-3
31a1f8
- Add a virtual provide, per BZ#104132
31a1f8
31a1f8
* Fri Apr 15 2016 Mauro Carvalho Chehab <mchehab@osg.samsung.com> 0.5.8-2
31a1f8
- Bump to version 0.5.8 with support for Broadwell EP/EX MSCOD/DE MSCOD
31a1f8
31a1f8
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.6-2
31a1f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
31a1f8
31a1f8
* Fri Jul 03 2015 Mauro Carvalho Chehab <mchehab@osg.samsung.com> 0.5.6-1
31a1f8
- Bump to version 0.5.6 with support for LMCE and some fixes
31a1f8
31a1f8
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.5-2
31a1f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
31a1f8
31a1f8
* Wed Jun 03 2015 Mauro Carvalho Chehab <mchehab@osg.samsung.com> 0.5.5-1
31a1f8
- Bump to version 0.5.5 with support for newer Intel platforms & some fixes
31a1f8
31a1f8
* Tue Sep 16 2014 Peter Robinson <pbrobinson@fedoraproject.org> 0.5.4-3
31a1f8
- aarch64/ppc64 have edac capabilities
31a1f8
- spec cleanups
31a1f8
- No need to run autoreconf
31a1f8
31a1f8
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-2
31a1f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
31a1f8
31a1f8
* Fri Aug 15 2014 Mauro Carvalho Chehab <m.chehab@samsung.com> 0.5.4-1
31a1f8
- Bump to version 0.5.4 with some fixes, mainly for amd64
31a1f8
31a1f8
* Sun Aug 10 2014 Mauro Carvalho Chehab <m.chehab@samsung.com> 0.5.3-1
31a1f8
- Bump to version 0.5.3 and enable ABRT and ExtLog
31a1f8
31a1f8
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-2
31a1f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
31a1f8
31a1f8
* Thu Apr 03 2014 Mauro Carvalho Chehab <m.chehab@samsung.com> 0.5.2-1
31a1f8
- fix and enable ABRT report support
31a1f8
31a1f8
* Fri Mar 28 2014 Mauro Carvalho Chehab <m.chehab@samsung.com> 0.5.1-1
31a1f8
- Do some fixes at the service files and add some documentation for --record
31a1f8
31a1f8
* Sun Feb 16 2014  Mauro Carvalho Chehab <m.chehab@samsung.com> 0.5.0-1
31a1f8
- Add experimental ABRT support
31a1f8
31a1f8
* Tue Sep 10 2013 Mauro Carvalho Chehab <m.chehab@samsung.com> 0.4.2-1
31a1f8
- Fix ras-mc-ctl layout filling
31a1f8
31a1f8
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-5
31a1f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
31a1f8
31a1f8
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.4.1-4
31a1f8
- Perl 5.18 rebuild
31a1f8
31a1f8
* Sun Jun  2 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.4.1-3
31a1f8
- ARM has EDMA drivers (currently supported in Calxeda highbank)
31a1f8
31a1f8
* Wed May 29 2013 Mauro Carvalho Chehab <mchehab@redhat.com> 0.4.1-2
31a1f8
- Fix the name of perl-DBD-SQLite package
31a1f8
31a1f8
* Wed May 29 2013 Mauro Carvalho Chehab <mchehab@redhat.com> 0.4.1-1
31a1f8
- Updated to version 0.4.1 with contains some bug fixes
31a1f8
31a1f8
* Tue May 28 2013 Mauro Carvalho Chehab <mchehab@redhat.com> 0.4.0-1
31a1f8
- Updated to version 0.4.0 and added support for mce, aer and sqlite3 storage
31a1f8
31a1f8
* Mon May 20 2013 Mauro Carvalho Chehab <mchehab@redhat.com> 0.3.0-1
31a1f8
- Package created
31a1f8