From 7c427ced3dd6cff0c6b5e193218ac39b0b419af26e8fe12da0cc2ae8ae0bb9b9 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 24 Jun 2024 12:21:42 +0000 Subject: [PATCH] - remove dependency on /usr/bin/python3 using %python3_fix_shebang and %python3_fix_shebang_path macros [bsc#1212476] OBS-URL: https://build.opensuse.org/package/show/network/dpdk?expand=0&rev=152 --- dpdk.changes | 7 +++++++ dpdk.spec | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dpdk.changes b/dpdk.changes index 644780c..1c7ac05 100644 --- a/dpdk.changes +++ b/dpdk.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jun 20 14:21:26 UTC 2024 - pgajdos@suse.com + +- remove dependency on /usr/bin/python3 using + %python3_fix_shebang and %python3_fix_shebang_path macros + [bsc#1212476] + ------------------------------------------------------------------- Tue Mar 12 08:50:25 UTC 2024 - Jiri Slaby diff --git a/dpdk.spec b/dpdk.spec index d128a32..91e5712 100644 --- a/dpdk.spec +++ b/dpdk.spec @@ -259,8 +259,9 @@ ln -s %{_bindir}/dpdk-devbind.py %{buildroot}%{_sbindir}/dpdk_nic_bind %endif # Fix interpreter -find %{buildroot} -name "*.py" -exec sed -i 's|python$|python3|' \{\} + -find %{buildroot} -name "*.py" -exec sed -i 's|env python|python|' \{\} + +%python3_fix_shebang +%python3_fix_shebang_path %{buildroot}%{_datadir}/%{name}/examples/ipsec-secgw/test/* +%python3_fix_shebang_path %{buildroot}%{_datadir}/%{name}/examples/pipeline/examples/* # Remove duplicates %fdupes %{buildroot}/%docdir