rasdaemon/rasdaemon.spec
Thomas Renninger 06caf39c47 Accepting request 905969 from home:trenn:branches:hardware
- Enable ppc64le build
- Enhance _service magic
- Update to version 0.6.7.4.gdda7d95:
  * Add support for multi-arch builds
  * rasdaemon.spec.in: don't install _sharedstatedir
  * rasdaemon: Add Ice Lake and Sapphire Rapids MSCOD values
  * rasdaemon: fix build error in register_ns_ev_decoder if the sqlite3 is not enabled
  * rasdaemon: Modify confiure.ac for Hisilicon Kunpeng errors
  * rasdaemon: ras-mc-ctl: Add support for HiSilicon Kunpeng9xx common errors
  * rasdaemon: ras-mc-ctl: Add support for HiSilicon Kunpeng920 errors
  * rasdaemon: ras-mc-ctl: Add support for the vendor-specific errors
  * rasdaemon: ras-mc-ctl: Add memory failure events
  * rasdaemon: ras-mc-ctl: Modify ARM processor error summary log
  * rasdaemon: add support for memory_failure events
  * ras-record: Create RASSTATEDIR at runtime instead of install time
  * add labels for A2SDi-8C+-HLN4F
  * Added label for ASUS PRIME X570-PRO
  * Add code to decode Ampere specific error
  * rasdaemon: fix memory leak in parse_ras_data
  * Fix ras-mc-ctl script.
  * add Supermicro X10SRA-F and H8DGU.
  * ras-page-isolation: page which is PAGE_OFFLINE_FAILED can be offlined again
  * ras-page-isolation: do_page_offline always considers page offline was successful
  * Fix problem from make dist-rpm
  * rasdaemon: Add 8 channel decoding for SMCA systems
  * rasdaemon: Fix error print
  * Create SYSCONFDEFDIR configure parameter
  * rasdaemon: ras-mc-ctl: Add ARM processor error information
  * rasdaemon: add support for hisilicon common section decoder
  * rasdaemon: Add error decoding for new SMCA Load Store bank type

OBS-URL: https://build.opensuse.org/request/show/905969
OBS-URL: https://build.opensuse.org/package/show/hardware/rasdaemon?expand=0&rev=34
2021-07-13 04:30:11 +00:00

104 lines
3.2 KiB
RPMSpec

#
# spec file for package rasdaemon
#
# Copyright (c) 2021 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: rasdaemon
Version: 0.6.7.4.gdda7d95
Release: 0
Summary: Utility to receive RAS error tracings
License: GPL-2.0-only
Group: Hardware/Other
URL: http://git.infradead.org/users/mchehab/rasdaemon.git
Source: %{name}-%{version}.tar.xz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gettext-devel
BuildRequires: libtool
BuildRequires: sqlite3-devel
BuildRequires: systemd-rpm-macros
Requires: perl-DBD-SQLite
%{?systemd_requires}
%ifnarch s390x
Requires: dmidecode
%endif
%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
%setup -q
%build
autoreconf -fvi
%configure \
--enable-mce \
--enable-aer \
--enable-sqlite3 \
--enable-extlog \
--enable-abrt-report \
--enable-arm \
--enable-non-standard \
--enable-hisi-ns-decode \
--enable-devlink \
--enable-diskerror
make %{?_smp_mflags} V=1
%install
%make_install
install -D -p -m 0644 misc/rasdaemon.service %{buildroot}%{_unitdir}/rasdaemon.service
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcrasdaemon
install -D -p -m 0644 misc/ras-mc-ctl.service %{buildroot}%{_unitdir}/ras-mc-ctl.service
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcras-mc-ctl
install -D -p -m 0644 labels/dell %{buildroot}%{_sysconfdir}/ras/dimm_labels.d/dell
rm %{buildroot}%{_includedir}/*.h
mkdir -p %{buildroot}%{_localstatedir}/lib/rasdaemon
%pre
%service_add_pre rasdaemon.service ras-mc-ctl.service
%post
%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
%license COPYING
%doc AUTHORS ChangeLog README TODO
%{_sbindir}/rasdaemon
%{_sbindir}/ras-mc-ctl
%{_sbindir}/rcrasdaemon
%{_sbindir}/rcras-mc-ctl
%{_mandir}/*/*
%{_unitdir}/*.service
%dir %{_sysconfdir}/ras
%dir %{_localstatedir}/lib/rasdaemon
%ghost %{_localstatedir}/lib/rasdaemon/ras-mc_event.db
%config %{_sysconfdir}/ras/dimm_labels.d
%changelog