diff --git a/bluez.changes b/bluez.changes index eb3e2c7..8ff492c 100644 --- a/bluez.changes +++ b/bluez.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 11 09:15:31 UTC 2024 - Daniel Garcia + +- Fix python3 shebang from test files (bsc#1212476) + ------------------------------------------------------------------- Wed Feb 28 08:07:28 UTC 2024 - Yifan Jiang diff --git a/bluez.spec b/bluez.spec index 41dff1e..1893ff5 100644 --- a/bluez.spec +++ b/bluez.spec @@ -236,8 +236,8 @@ cp -a doc/*.txt dbus-apis/ # for auto-enable subpackage sed -i '/^#AutoEnable=false/aAutoEnable=true' src/main.conf -# 2to3 does not fix the #! line -sed -i '1s#/usr/bin/python$#/usr/bin/python3#' test/* +# Fix shebangs in test files +%{?python3_fix_shebang_path:%python3_fix_shebang_path test/*} %build %if 0%{?suse_version} < 1550 @@ -308,9 +308,6 @@ install --mode 0644 -D src/main.conf %{buildroot}/%{_sysconfdir}/bluetooth/main. cd %{buildroot}%{_libdir}/bluez/test chmod 0644 *.py *.xml *.dtd -# fix python shebang -sed -i -e '1s/env p/p/' %{buildroot}%{_libdir}/bluez/test/{example-gatt-{client,server},test-mesh} - mkdir -p %{buildroot}%{_defaultdocdir}/%{name} cp %{SOURCE9} %{buildroot}%{_defaultdocdir}/%{name} %if %{with mesh}