From 7da056c76ff8962195293170c8f076bdb5b37ac8fdb79ea7206c5844ed7ecd2f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 28 Jul 2021 14:45:20 +0000 Subject: [PATCH] Accepting request 907660 from home:StevenK:branches:network - Normalize all Python script shebangs to use Python 3. OBS-URL: https://build.opensuse.org/request/show/907660 OBS-URL: https://build.opensuse.org/package/show/network/dpdk?expand=0&rev=127 --- dpdk.changes | 5 +++++ dpdk.spec | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/dpdk.changes b/dpdk.changes index cd83339..20eef3c 100644 --- a/dpdk.changes +++ b/dpdk.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 22 06:00:37 UTC 2021 - Steve Kowalik + +- Normalize all Python script shebangs to use Python 3. + ------------------------------------------------------------------- Fri May 14 11:58:06 UTC 2021 - Ferdinand Thiessen diff --git a/dpdk.spec b/dpdk.spec index a233210..b9987f3 100644 --- a/dpdk.spec +++ b/dpdk.spec @@ -1,5 +1,5 @@ # -# spec file for package dpdk +# spec file # # Copyright (c) 2021 SUSE LLC # @@ -338,6 +338,7 @@ ln -s %{_bindir}/dpdk-procinfo %{buildroot}%{_bindir}/dpdk_proc_info ln -s %{_sbindir}/dpdk-devbind %{buildroot}%{_sbindir}/dpdk_nic_bind # Fix interpreter +find %{buildroot} -name "*.py" -exec sed -i 's|python$|python3|' \{\} + find %{buildroot} -name "*.py" -exec sed -i 's|env python|python|' \{\} + # Remove duplicates