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