public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rasdaemon] rawhide: rasdaemon.spec: bump to version 1.0.1
@ 2026-11-28 15:57 Mauro Carvalho Chehab
0 siblings, 0 replies; only message in thread
From: Mauro Carvalho Chehab @ 2026-11-28 15:57 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rasdaemon
Branch : rawhide
Commit : 1d3f735073fadbfa11c6e63168d6705ef32413c9
Author : Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Date : 2026-11-28T16:43:34+01:00
Stats : +81/-32 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/rasdaemon/c/1d3f735073fadbfa11c6e63168d6705ef32413c9?branch=rawhide
Log:
rasdaemon.spec: bump to version 1.0.1
There are lots of changes on rasdaemon since version 0.8.0.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
---
diff --git a/rasdaemon.spec b/rasdaemon.spec
index f1639ec..374eb00 100644
--- a/rasdaemon.spec
+++ b/rasdaemon.spec
@@ -1,26 +1,37 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
Name: rasdaemon
-Version: 0.8.0
-Release: 10%{?dist}
+Version: 1.0.1
+Release: 1%{?dist}
Summary: Utility to receive RAS error tracings
Group: Applications/System
-# Automatically converted from old format: GPLv2 - review is highly recommended.
-License: GPL-2.0-only
+License: GPLv2
URL: http://git.infradead.org/users/mchehab/rasdaemon.git
-Source0: http://www.infradead.org/~mchehab/rasdaemon/%{name}-%{version}.tar.bz2
+Source0: http://www.infradead.org/~mchehab/rasdaemon/%{name}-%{version}.tar.xz
ExcludeArch: s390 s390x
BuildRequires: make
BuildRequires: gcc
-BuildRequires: autoconf automake libtool
-BuildRequires: gettext-devel
-BuildRequires: perl-generators
+BuildRequires: meson >= 0.60
+BuildRequires: ninja-build
BuildRequires: sqlite-devel
BuildRequires: systemd
BuildRequires: libtraceevent-devel
+BuildRequires: pciutils-devel
+BuildRequires: python3-devel
+BuildRequires: python3-sqlalchemy
+BuildRequires: mariadb-connector-c-devel
+BuildRequires: libpq-devel
Provides: bundled(kernel-event-lib)
Requires: hwdata
-Requires: perl-DBD-SQLite
+Requires: python3
+Requires: python3-sqlalchemy
+Recommends: python3-mysqlclient
+Recommends: python3-psycopg2
Requires: libtraceevent
+%ifarch %{ix86} x86_64 riscv64
+Requires: pciutils
+%endif
%ifarch %{ix86} x86_64
Requires: dmidecode
%endif
@@ -40,41 +51,79 @@ 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
-autoreconf -vfi
-
-%build
-%ifarch %{arm} aarch64
-%configure --enable-sqlite3 --enable-aer --enable-non-standard --enable-arm \
- --enable-mce --enable-extlog --enable-devlink --enable-diskerror \
- --enable-memory-failure --enable-abrt-report --enable-hisi-ns-decode \
- --enable-memory-ce-pfa --enable-amp-ns-decode --enable-cpu-fault-isolation \
- --with-sysconfdefdir=%{_sysconfdir}/sysconfig
+%autosetup -p1
+%ifarch %{ix86} x86_64
+%meson -Denable-arch=x86
+%elifarch aarch64 armv7hl armv8hl
+%meson -Denable-arch=arm
+%elifarch riscv32 riscv64
+%meson -Denable-arch=riscv
%else
-%configure --enable-sqlite3 --enable-aer \
- --enable-mce --enable-extlog --enable-devlink --enable-diskerror \
- --enable-memory-failure --enable-abrt-report --enable-cpu-fault-isolation \
- --with-sysconfdefdir=%{_sysconfdir}/sysconfig
+%meson -Denable-arch=auto
%endif
-make %{?_smp_mflags}
+
+%build
+%meson_build
%install
-make install DESTDIR=%{buildroot}
-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
-install -D -p -m 0655 misc/rasdaemon.env %{buildroot}%{_sysconfdir}/sysconfig/%{name}
-rm INSTALL %{buildroot}/usr/include/*.h
+%meson_install
+%py_byte_compile %{python3} %{buildroot}%{_datadir}/%{name}
%files
-%doc AUTHORS ChangeLog COPYING README.md TODO
-%{_sbindir}/rasdaemon
+%doc AUTHORS ChangeLog COPYING README.rst SECURITY.rst TODO
+%{_sbindir}/%{name}
%{_sbindir}/ras-mc-ctl
+%{_datadir}/%{name}/
%{_mandir}/*/*
%{_unitdir}/*.service
-%{_sysconfdir}/ras/dimm_labels.d
+%{_sysconfdir}/ras/*/*
+%{bash_completions_dir}/ras-mc-ctl
+%{zsh_completions_dir}/_ras-mc-ctl
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
+%config(noreplace) %{_sysconfdir}/syslog-ng/conf.d/%{name}.conf
+%config(noreplace) %{_sysconfdir}/rsyslog.d/%{name}.conf
+%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
+
+%post
+if systemctl is-active --quiet syslog-ng.service; then
+ echo "Syslog service is enabled and running, create config file and restart it";
+ systemctl restart syslog-ng.service;
+fi
+if systemctl is-active --quiet rsyslog.service; then
+ echo "Rsyslog service is enabled and running, create config file and restart it";
+ systemctl restart rsyslog.service;
+fi
+if ! systemctl is-enabled --quiet %{name}.service; then
+ echo "Rasdaemon service is not enabled, enable it";
+ systemctl enable %{name}.service;
+fi
+systemctl restart %{name}.service
+
+%preun
+systemctl stop %{name}.service
+systemctl disable %{name}.service
+
+%postun
+if systemctl is-active --quiet syslog-ng.service; then
+ echo "Syslog-ng service is enabled and running, delete config file and restart it";
+ rm -rf %{_sysconfdir}/syslog-ng/conf.d/%{name}.conf;
+ systemctl restart syslog-ng.service;
+fi
+if systemctl is-active --quiet rsyslog.service; then
+ echo "Rsyslog service is enabled and running, delete config file and restart it";
+ rm -rf %{_sysconfdir}/rsyslog.d/%{name}.conf;
+ systemctl restart rsyslog.service;
+fi
+if [ -d "%{_sysconfdir}/logrotate.d" ]; then
+ rm -rf %{_sysconfdir}/logrotate.d/%{name};
+fi
+
%changelog
+
+* Sat Nov 28 2026 Mauro Carvalho Chehab <mchehab@kernel.org> - 1.0.1
+- Bump to version 1.0.1 with lots of major changes
+
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-28 15:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-28 15:57 [rpms/rasdaemon] rawhide: rasdaemon.spec: bump to version 1.0.1 Mauro Carvalho Chehab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox