From 8ede11df62ed0749fff6b798e744903d60330368c8746a913d74b29dcc5910f4 Mon Sep 17 00:00:00 2001 From: Thomas Renninger Date: Mon, 16 Oct 2023 18:55:51 +0000 Subject: [PATCH] Accepting request 1118089 from home:trenn:branches:hardware - Fix build on old distros by linking new README.md to README - minor spec cleanups OBS-URL: https://build.opensuse.org/request/show/1118089 OBS-URL: https://build.opensuse.org/package/show/hardware/rasdaemon?expand=0&rev=46 --- rasdaemon-0.8.0.10.git+a247baf.obscpio | 2 +- rasdaemon.changes | 6 ++++++ rasdaemon.spec | 8 ++++++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/rasdaemon-0.8.0.10.git+a247baf.obscpio b/rasdaemon-0.8.0.10.git+a247baf.obscpio index 4aebd8a..6b6d33d 100644 --- a/rasdaemon-0.8.0.10.git+a247baf.obscpio +++ b/rasdaemon-0.8.0.10.git+a247baf.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1211facac78cc377dee3e047ac8dc390880fcb35b03fc9a434e7eb6e22ebae71 +oid sha256:ab129ce01d2a4a4d729de0231b5c870fa96b1afd8e0779f0f6dab653ee4eadf2 size 607244 diff --git a/rasdaemon.changes b/rasdaemon.changes index e15c26c..c974eca 100644 --- a/rasdaemon.changes +++ b/rasdaemon.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Oct 16 18:50:53 UTC 2023 - Thomas Renninger + +- Fix build on old distros by linking new README.md to README +- minor spec cleanups + ------------------------------------------------------------------- Mon Jul 10 21:10:45 UTC 2023 - malcolmlewis@opensuse.org diff --git a/rasdaemon.spec b/rasdaemon.spec index 192d278..d57c1fd 100644 --- a/rasdaemon.spec +++ b/rasdaemon.spec @@ -30,8 +30,8 @@ BuildRequires: gettext-devel BuildRequires: libtool BuildRequires: libtraceevent-devel BuildRequires: sqlite3-devel -Requires(pre): %fillup_prereq Requires: perl-DBD-SQLite +Requires(pre): %fillup_prereq %{?systemd_ordering} %ifnarch s390x Requires: dmidecode @@ -51,6 +51,10 @@ an utility for reporting current error counts from the EDAC sysfs files. %autosetup %build +# Fixes: +# Makefile.am: error: required file './README' not found +# on old autoconf versions +ln -s README.md README autoreconf -fvi %configure --enable-all --with-sysconfdefdir=%{_sysconfdir}/sysconfig CFLAGS="%{optflags}" make %{?_smp_mflags} V=1 @@ -62,7 +66,7 @@ install -D -p -m 0644 misc/rasdaemon.service %{buildroot}%{_unitdir}/rasdaemon.s install -D -p -m 0644 misc/ras-mc-ctl.service %{buildroot}%{_unitdir}/ras-mc-ctl.service ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcrasdaemon ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcras-mc-ctl -rm INSTALL %{buildroot}/usr/include/*.h +rm INSTALL %{buildroot}%{_includedir}/*.h mkdir -p %{buildroot}%{_localstatedir}/lib/rasdaemon mkdir -p %{buildroot}%{_fillupdir} mv %{buildroot}%{_sysconfdir}/sysconfig/rasdaemon %{buildroot}/%{_fillupdir}/sysconfig.rasdaemon