From d91ad9ebb4a7e1d0e2e61c9402a2efbb871b325338bf148d13022d1dab7f8e70 Mon Sep 17 00:00:00 2001 From: Bernhard Wiedemann Date: Mon, 18 Mar 2024 10:54:54 +0000 Subject: [PATCH] Accepting request 1158945 from home:pgajdos - remove dependency on /usr/bin/python3 using %python3_fix_shebang_path macro, [bsc#1212476] OBS-URL: https://build.opensuse.org/request/show/1158945 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/munin?expand=0&rev=89 --- munin.changes | 6 ++++++ munin.spec | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/munin.changes b/munin.changes index da6cf60..a45117e 100644 --- a/munin.changes +++ b/munin.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 18 09:58:18 UTC 2024 - pgajdos@suse.com + +- remove dependency on /usr/bin/python3 using + %python3_fix_shebang_path macro, [bsc#1212476] + ------------------------------------------------------------------- Thu Feb 22 12:03:55 UTC 2024 - pgajdos@suse.com diff --git a/munin.spec b/munin.spec index 9092488..cb13bb5 100644 --- a/munin.spec +++ b/munin.spec @@ -62,6 +62,7 @@ BuildRequires: perl-Net-SNMP BuildRequires: perl-Net-SSLeay BuildRequires: perl-Net-Server BuildRequires: pkgconfig +BuildRequires: python-rpm-macros BuildRequires: shadow BuildRequires: unzip BuildRequires: perl(Module::Build) @@ -204,6 +205,10 @@ ln nginx-munin-master/README.org README.nginx %__install -m0755 munin-gsa-master/snmp_* %{buildroot}/%{plugindir} ln munin-gsa-master/README.md README.gsa +%if %{suse_version} >= 1600 +%python3_fix_shebang_path %{buildroot}/%{plugindir}/* +%endif + # Fix rpmlint warning: This script uses 'env' as an interpreter. for F in \ %{buildroot}/%{_prefix}/lib/munin/plugins/ipmi_sensor_ \