]> git.pld-linux.org Git - SPECS.git/blob - rasdaemon.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / rasdaemon.spec
1 Summary:        Utility to receive RAS error tracings
2 Name:           rasdaemon
3 Version:        0.5.8
4 Release:        0.1
5 License:        GPL v2
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
12 Requires:       hwdata
13 Requires:       perl-DBD-SQLite
14 ExcludeArch:    s390 s390x
15 %ifarch %{ix86} x86_64
16 Requires:       dmidecode
17 %endif
18 Requires(post): systemd
19 Requires(preun):        systemd
20 Requires(postun):       systemd
21
22 %description
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.
32
33 %prep
34 %setup -q
35
36 %build
37 %configure \
38         --enable-mce \
39         --enable-aer \
40         --enable-sqlite3 \
41         --enable-extlog \
42         --enable-abrt-report \
43
44 %{__make}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
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
54
55 rm INSTALL $RPM_BUILD_ROOT%{_includedir}/*.h
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
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
65 %{_mandir}/*/*
66 %{systemdunitdir}/*.service
67 %{_sharedstatedir}/rasdaemon
68 %{_sysconfdir}/ras/dimm_labels.d
This page took 0.188335 seconds and 3 git commands to generate.