SHA256
1
0
forked from pool/dpdk

- 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
This commit is contained in:
Dirk Mueller 2024-06-24 12:21:42 +00:00 committed by Git OBS Bridge
parent 21fc558ad0
commit 7c427ced3d
2 changed files with 10 additions and 2 deletions

View File

@ -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 <jslaby@suse.cz> Tue Mar 12 08:50:25 UTC 2024 - Jiri Slaby <jslaby@suse.cz>

View File

@ -259,8 +259,9 @@ ln -s %{_bindir}/dpdk-devbind.py %{buildroot}%{_sbindir}/dpdk_nic_bind
%endif %endif
# Fix interpreter # Fix interpreter
find %{buildroot} -name "*.py" -exec sed -i 's|python$|python3|' \{\} + %python3_fix_shebang
find %{buildroot} -name "*.py" -exec sed -i 's|env python|python|' \{\} + %python3_fix_shebang_path %{buildroot}%{_datadir}/%{name}/examples/ipsec-secgw/test/*
%python3_fix_shebang_path %{buildroot}%{_datadir}/%{name}/examples/pipeline/examples/*
# Remove duplicates # Remove duplicates
%fdupes %{buildroot}/%docdir %fdupes %{buildroot}/%docdir