Accepting request 1180053 from Base:System

OBS-URL: https://build.opensuse.org/request/show/1180053
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bluez?expand=0&rev=205
This commit is contained in:
Ana Guerrero 2024-06-12 13:37:46 +00:00 committed by Git OBS Bridge
commit 636d87e94e
2 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 11 09:15:31 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Fix python3 shebang from test files (bsc#1212476)
-------------------------------------------------------------------
Wed Feb 28 08:07:28 UTC 2024 - Yifan Jiang <yfjiang@suse.com>

View File

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