From 1bd83bd664358c1b3d2c00accc2533fd2c303f90 Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Sun, 23 Feb 2020 11:11:47 +0300 Subject: [PATCH] use python2 shebang in bluez-test for rosa<2019.1 because some runtime deps may be misisng (TODO: fix requires) --- bluez.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bluez.spec b/bluez.spec index 4af8a1d..dd4033f 100644 --- a/bluez.spec +++ b/bluez.spec @@ -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