From 5b4e137377ca5e94892c42e47576b8a699f4e65f49f702c1f00816a9888cfc45 Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Fri, 6 Oct 2023 06:01:44 +0000 Subject: [PATCH] Accepting request 1115819 from home:dgarcia:branches:network:utilities - Remove dependency on /usr/bin/python3 using %python3_fix_shebang macro, bsc#1212476 OBS-URL: https://build.opensuse.org/request/show/1115819 OBS-URL: https://build.opensuse.org/package/show/network:utilities/2ping?expand=0&rev=34 --- 2ping.changes | 6 ++++++ 2ping.spec | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/2ping.changes b/2ping.changes index b21c99a..7fd3626 100644 --- a/2ping.changes +++ b/2ping.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Oct 4 12:10:52 UTC 2023 - Daniel Garcia + +- Remove dependency on /usr/bin/python3 using %python3_fix_shebang + macro, bsc#1212476 + ------------------------------------------------------------------- Fri Oct 15 11:48:55 UTC 2021 - Johannes Segitz diff --git a/2ping.spec b/2ping.spec index 2f67f8a..3a1c5cc 100644 --- a/2ping.spec +++ b/2ping.spec @@ -1,7 +1,7 @@ # # spec file for package 2ping # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,6 +27,7 @@ Source1: https://www.finnie.org/software/2ping/%{name}-%{version}.tar.gz. Source2: %{name}.keyring Patch0: harden_2ping.service.patch BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildRequires: python3-devel >= 3.6 BuildRequires: python3-distro BuildRequires: python3-dnspython @@ -63,6 +64,9 @@ install -Dp -m 0644 doc/2ping.1 %{buildroot}%{_mandir}/man1/2ping6.1 mkdir -p %{buildroot}%{_sbindir} ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc2ping +# Fix python shebangs +%python3_fix_shebang + # create symlinks for man pages %fdupes -s %{buildroot}%{_mandir} # create hardlinks for the rest