1 Summary: Utility to receive RAS error tracings
6 Group: Applications/System
7 URL: http://git.infradead.org/users/mchehab/rasdaemon.git
8 Source0: http://www.infradead.org/~mchehab/rasdaemon/%{name}-%{version}.tar.bz2
9 BuildRequires: gettext-devel
10 BuildRequires: sqlite-devel
11 BuildRequires: systemd-devel
13 Requires: perl-DBD-SQLite
14 ExcludeArch: s390 s390x
15 %ifarch %{ix86} x86_64
18 Requires(post): systemd
19 Requires(preun): systemd
20 Requires(postun): systemd
23 %{name} is a RAS (Reliability, Availability and Serviceability)
24 logging tool. It currently records memory errors, using the EDAC
25 tracing events. EDAC is drivers in the Linux kernel that handle
26 detection of ECC errors from memory controllers for most chipsets on
27 i386 and x86_64 architectures. EDAC drivers for other architectures
28 like arm also exists. This userspace component consists of an init
29 script which makes sure EDAC drivers and DIMM labels are loaded at
30 system startup, as well as an utility for reporting current error
31 counts from the EDAC sysfs files.
42 --enable-abrt-report \
47 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
52 install -D -p misc/rasdaemon.service $RPM_BUILD_ROOT/%{systemdunitdir}/rasdaemon.service
53 install -D -p misc/ras-mc-ctl.service $RPM_BUILD_ROOT%{systemdunitdir}/ras-mc-ctl.service
55 rm INSTALL $RPM_BUILD_ROOT%{_includedir}/*.h
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc AUTHORS ChangeLog COPYING README TODO
63 %attr(755,root,root) %{_sbindir}/rasdaemon
64 %attr(755,root,root) %{_sbindir}/ras-mc-ctl
66 %{systemdunitdir}/*.service
67 %{_sharedstatedir}/rasdaemon
68 %{_sysconfdir}/ras/dimm_labels.d