From 9b3963f0f37f3eacc3e2328d7223e0eb9c317914198b9e589cc5a225d453c1fa Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 11 Jun 2024 17:34:35 +0000 Subject: [PATCH] Accepting request 1179961 from home:dgarcia:branches:Base:System - Fix python3 shebang from test files (bsc#1212476) OBS-URL: https://build.opensuse.org/request/show/1179961 OBS-URL: https://build.opensuse.org/package/show/Base:System/bluez?expand=0&rev=369 --- bluez.changes | 5 +++++ bluez.spec | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) 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}