Ana Guerrero 2024-06-25 21:06:36 +00:00 committed by Git OBS Bridge
commit 970c137c60
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>

View File

@ -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