--- /dev/null
+#!/bin/sh
+
+#------------------------------------------#
+# bluetoothd patch for upgrade (2.4 -> 3.0) #
+#------------------------------------------#
+
+# Change the smack label for BT chip and paired info
+chsmack -a "User" /var/lib/bluetooth
+chsmack -a "System" /var/lib/bluetooth/* -r
#%define with_libcapng --enable-capng
%define _libpath /usr/lib
+%define upgrade_script_path /usr/share/upgrade/scripts
Name: bluez
Summary: Bluetooth Stack for Linux
Version: 5.37
ln -sf ../bluetooth-frwk.service %{buildroot}%{_libpath}/systemd/system/multi-user.target.wants/bluetooth.service
%endif
+mkdir -p %{buildroot}%{upgrade_script_path}
+cp -f packaging/bluetoothd_upgrade.sh %{buildroot}%{upgrade_script_path}
+
%post -n libbluetooth -p /sbin/ldconfig
%postun -n libbluetooth -p /sbin/ldconfig
#%{_sbindir}/hid2hci
%dir /usr/lib/udev
/usr/lib/udev/*
+%{upgrade_script_path}/bluetoothd_upgrade.sh
#test -2
%if "%{?profile}" == "tv"