use python2 shebang in bluez-test for rosa<2019.1 because some runtime deps may be misisng (TODO: fix requires)

This commit is contained in:
Mikhail Novosyolov 2020-02-23 11:11:47 +03:00
parent e92fbd77fc
commit 1bd83bd664

View file

@ -5,7 +5,7 @@
Summary: Official Linux Bluetooth protocol stack Summary: Official Linux Bluetooth protocol stack
Name: bluez Name: bluez
Version: 5.48 Version: 5.48
Release: 2 Release: 3
Epoch: 1 Epoch: 1
License: GPLv2+ License: GPLv2+
Group: Communications Group: Communications
@ -268,4 +268,8 @@ install -d -m0755 %{buildroot}%{_localstatedir}/lib/bluetooth
ln -s bluetooth.service %{buildroot}%{_unitdir}/dbus-org.bluez.service ln -s bluetooth.service %{buildroot}%{_unitdir}/dbus-org.bluez.service
# Versionize python shebangs # Versionize python shebangs
%if %{mdvver} >= 201910
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/{simple-agent,test-*} sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/{simple-agent,test-*}
%else
sed '1 s,^.*$,#!%{__python2},' -i %{buildroot}%{_bindir}/{simple-agent,test-*}
%endif