2015-11-03 15:08:18 +01:00
|
|
|
#
|
|
|
|
# spec file for package rasdaemon
|
|
|
|
#
|
2024-03-11 14:53:56 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2015-11-03 15:08:18 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-02-07 09:30:09 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-11-03 15:08:18 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: rasdaemon
|
2024-03-11 14:53:56 +01:00
|
|
|
Version: 0.8.0.49.git+f9cb13b
|
2015-11-03 15:08:18 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Utility to receive RAS error tracings
|
2018-06-19 14:30:35 +02:00
|
|
|
License: GPL-2.0-only
|
2016-03-07 16:42:02 +01:00
|
|
|
Group: Hardware/Other
|
2018-06-19 14:30:35 +02:00
|
|
|
URL: http://git.infradead.org/users/mchehab/rasdaemon.git
|
2017-04-10 14:30:36 +02:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2015-11-03 15:08:18 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gettext-devel
|
|
|
|
BuildRequires: libtool
|
2023-02-02 09:18:15 +01:00
|
|
|
BuildRequires: libtraceevent-devel
|
2015-11-03 15:08:18 +01:00
|
|
|
BuildRequires: sqlite3-devel
|
2018-06-19 14:30:35 +02:00
|
|
|
Requires: perl-DBD-SQLite
|
2023-10-16 20:55:51 +02:00
|
|
|
Requires(pre): %fillup_prereq
|
2021-08-11 12:26:04 +02:00
|
|
|
%{?systemd_ordering}
|
2024-03-11 14:53:56 +01:00
|
|
|
%ifarch %ix86 x86_64
|
2015-11-03 15:08:18 +01:00
|
|
|
Requires: dmidecode
|
2024-03-11 14:53:56 +01:00
|
|
|
%else
|
|
|
|
Recommends: dmidecode
|
2018-01-17 13:49:44 +01:00
|
|
|
%endif
|
2015-11-03 15:08:18 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
rasdaemon is a RAS (Reliability, Availability and Serviceability) logging tool.
|
|
|
|
It currently records memory errors, using the EDAC tracing events.
|
|
|
|
EDAC is drivers in the Linux kernel that handle detection of ECC errors
|
|
|
|
from memory controllers for most chipsets on i386 and x86_64 architectures.
|
|
|
|
EDAC drivers for other architectures like arm also exists.
|
|
|
|
This userspace component consists of an init script which makes sure
|
|
|
|
EDAC drivers and DIMM labels are loaded at system startup, as well as
|
|
|
|
an utility for reporting current error counts from the EDAC sysfs files.
|
|
|
|
|
|
|
|
%prep
|
2023-02-02 09:18:15 +01:00
|
|
|
%autosetup
|
2015-11-03 15:08:18 +01:00
|
|
|
|
|
|
|
%build
|
2023-10-16 20:55:51 +02:00
|
|
|
# Fixes:
|
|
|
|
# Makefile.am: error: required file './README' not found
|
|
|
|
# on old autoconf versions
|
|
|
|
ln -s README.md README
|
2015-11-03 15:08:18 +01:00
|
|
|
autoreconf -fvi
|
2021-10-13 18:32:54 +02:00
|
|
|
%configure --enable-all --with-sysconfdefdir=%{_sysconfdir}/sysconfig
|
2021-10-12 15:42:52 +02:00
|
|
|
CFLAGS="%{optflags}" make %{?_smp_mflags} V=1
|
2015-11-03 15:08:18 +01:00
|
|
|
|
|
|
|
%install
|
2017-04-10 14:30:36 +02:00
|
|
|
%make_install
|
2021-10-12 15:42:52 +02:00
|
|
|
make install DESTDIR=%{buildroot}
|
2015-11-03 15:08:18 +01:00
|
|
|
install -D -p -m 0644 misc/rasdaemon.service %{buildroot}%{_unitdir}/rasdaemon.service
|
|
|
|
install -D -p -m 0644 misc/ras-mc-ctl.service %{buildroot}%{_unitdir}/ras-mc-ctl.service
|
2021-10-12 15:42:52 +02:00
|
|
|
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcrasdaemon
|
2015-11-03 15:08:18 +01:00
|
|
|
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcras-mc-ctl
|
2023-10-16 20:55:51 +02:00
|
|
|
rm INSTALL %{buildroot}%{_includedir}/*.h
|
2015-11-25 17:42:25 +01:00
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/rasdaemon
|
2021-10-12 15:42:52 +02:00
|
|
|
mkdir -p %{buildroot}%{_fillupdir}
|
2021-10-13 18:32:54 +02:00
|
|
|
mv %{buildroot}%{_sysconfdir}/sysconfig/rasdaemon %{buildroot}/%{_fillupdir}/sysconfig.rasdaemon
|
2015-11-03 15:08:18 +01:00
|
|
|
|
|
|
|
%pre
|
|
|
|
%service_add_pre rasdaemon.service ras-mc-ctl.service
|
|
|
|
|
|
|
|
%post
|
2021-10-12 15:42:52 +02:00
|
|
|
%fillup_only
|
2015-11-03 15:08:18 +01:00
|
|
|
%service_add_post rasdaemon.service ras-mc-ctl.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun rasdaemon.service ras-mc-ctl.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun rasdaemon.service ras-mc-ctl.service
|
|
|
|
|
|
|
|
%files
|
2018-06-19 14:30:35 +02:00
|
|
|
%license COPYING
|
2023-07-11 08:24:30 +02:00
|
|
|
%doc AUTHORS ChangeLog README.md TODO
|
2015-11-03 15:08:18 +01:00
|
|
|
%{_sbindir}/rasdaemon
|
|
|
|
%{_sbindir}/ras-mc-ctl
|
|
|
|
%{_sbindir}/rcrasdaemon
|
|
|
|
%{_sbindir}/rcras-mc-ctl
|
|
|
|
%{_mandir}/*/*
|
|
|
|
%{_unitdir}/*.service
|
|
|
|
%dir %{_sysconfdir}/ras
|
2015-11-25 17:42:25 +01:00
|
|
|
%dir %{_localstatedir}/lib/rasdaemon
|
|
|
|
%ghost %{_localstatedir}/lib/rasdaemon/ras-mc_event.db
|
2021-10-12 15:42:52 +02:00
|
|
|
%attr (644,root,root) %{_fillupdir}/sysconfig.rasdaemon
|
2015-11-03 15:08:18 +01:00
|
|
|
|
|
|
|
%changelog
|