mirror of
https://abf.rosa.ru/djam/bluez.git
synced 2025-02-23 07:02:54 +00:00
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:
parent
e92fbd77fc
commit
1bd83bd664
1 changed files with 5 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
|||
Summary: Official Linux Bluetooth protocol stack
|
||||
Name: bluez
|
||||
Version: 5.48
|
||||
Release: 2
|
||||
Release: 3
|
||||
Epoch: 1
|
||||
License: GPLv2+
|
||||
Group: Communications
|
||||
|
@ -268,4 +268,8 @@ install -d -m0755 %{buildroot}%{_localstatedir}/lib/bluetooth
|
|||
ln -s bluetooth.service %{buildroot}%{_unitdir}/dbus-org.bluez.service
|
||||
|
||||
# Versionize python shebangs
|
||||
%if %{mdvver} >= 201910
|
||||
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/{simple-agent,test-*}
|
||||
%else
|
||||
sed '1 s,^.*$,#!%{__python2},' -i %{buildroot}%{_bindir}/{simple-agent,test-*}
|
||||
%endif
|
||||
|
|
Loading…
Add table
Reference in a new issue