f9b92c
Name:			rasdaemon
f9b92c
Version:		0.4.1
f9b92c
Release:		5%{?dist}
f9b92c
Summary:		Utility to receive RAS error tracings
f9b92c
Group:			Applications/System
f9b92c
License:		GPLv2
f9b92c
URL:			https://git.fedorahosted.org/git/rasdaemon.git
f9b92c
Source0:		http://mchehab.fedorapeople.org/%{name}-%{version}.tar.bz2
f9b92c
f9b92c
ExclusiveArch:		%{ix86} x86_64 %{arm}
f9b92c
BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 
f9b92c
BuildRequires:		autoconf, automake, gettext-devel, libtool, sqlite-devel
f9b92c
Requires:		hwdata, perl-DBD-SQLite
f9b92c
%ifnarch %{arm}
f9b92c
Requires:		dmidecode
f9b92c
%endif
f9b92c
f9b92c
Requires(post):		systemd-units
f9b92c
Requires(preun):	systemd-units
f9b92c
Requires(postun):	systemd-units
f9b92c
f9b92c
%description
f9b92c
%{name} is a RAS (Reliability, Availability and Serviceability) logging tool.
f9b92c
It currently records memory errors, using the EDAC tracing events.
f9b92c
EDAC is drivers in the Linux kernel that handle detection of ECC errors
f9b92c
from memory controllers for most chipsets on i386 and x86_64 architectures.
f9b92c
EDAC drivers for other architectures like arm also exists.
f9b92c
This userspace component consists of an init script which makes sure
f9b92c
EDAC drivers and DIMM labels are loaded at system startup, as well as
f9b92c
an utility for reporting current error counts from the EDAC sysfs files.
f9b92c
f9b92c
%prep
f9b92c
%setup -q
f9b92c
f9b92c
%build
f9b92c
autoreconf -vfi
f9b92c
%configure --enable-mce --enable-aer --enable-sqlite3
f9b92c
make %{?_smp_mflags}
f9b92c
f9b92c
%install
f9b92c
make install DESTDIR=%{buildroot}
f9b92c
install -D -p -m 0644 misc/rasdaemon.service %{buildroot}/%{_unitdir}/rasdaemon.service
f9b92c
install -D -p -m 0644 misc/ras-mc-ctl.service %{buildroot}%{_unitdir}/ras-mc-ctl.service
f9b92c
rm INSTALL %{buildroot}/usr/include/*.h
f9b92c
f9b92c
%clean
f9b92c
rm -rf %{buildroot}
f9b92c
f9b92c
%files
f9b92c
%defattr(-,root,root) 
f9b92c
%doc AUTHORS ChangeLog COPYING README TODO
f9b92c
%{_sbindir}/rasdaemon
f9b92c
%{_sbindir}/ras-mc-ctl
f9b92c
%{_mandir}/*/*
f9b92c
%{_unitdir}/*.service
f9b92c
%{_sharedstatedir}/rasdaemon
f9b92c
%{_sysconfdir}/ras/dimm_labels.d
f9b92c
f9b92c
%changelog
f9b92c
* Tue Aug 20 2013 Aristeu Rozanski <aris@redhat.com> 0.4.1-5.el7
f9b92c
- Applied Jarod Wilson fixes required to pass rpmlint tests
f9b92c
f9b92c
* Thu Aug 15 2013 Aristeu Rozanski <aris@redhat.com> 0.4.1-4.el7
f9b92c
- Rebuild
f9b92c
f9b92c
* Sun Jun  2 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.4.1-3
f9b92c
- ARM has EDMA drivers (currently supported in Calxeda highbank)
f9b92c
f9b92c
* Tue May 28 2013 Mauro Carvalho Chehab <mchehab@redhat.com> 0.4.1-2
f9b92c
- Fix the name of perl-DBD-SQLite package
f9b92c
f9b92c
* Tue May 28 2013 Mauro Carvalho Chehab <mchehab@redhat.com> 0.4.1-1
f9b92c
- Updated to version 0.4.1 with contains some bug fixes
f9b92c
f9b92c
* Mon May 27 2013 Mauro Carvalho Chehab <mchehab@redhat.com> 0.4.0-1
f9b92c
- Updated to version 0.4.0 and added support for mce, aer and sqlite3 storage
f9b92c
f9b92c
* Mon May 20 2013 Mauro Carvalho Chehab <mchehab@redhat.com> 0.3.0-1
f9b92c
- Package created
f9b92c