Name: bluetooth-tools
Summary: Bluetooth-tools
-Version: 0.2.35
+Version: 0.2.36
Release: 0
Group: Network & Connectivity/Bluetooth
License: Apache-2.0
BuildRequires: cmake
Suggests: bluetooth-share
Requires: tizen-platform-config-tools
-%if "%{profile}" != "mobile"
-Requires : bluetooth-tools-no-firmware
-%endif
+Requires: bluetooth-scripts
%description
Tools fo bluetooth run/stop and set address
Group: Network & Connectivity/Bluetooth
Requires: %{name} = %{version}-%{release}
Requires: rfkill
+Provides: bluetooth-scripts
Conflicts: bluetooth-firmware-bcm
%description no-firmware
%build
export CFLAGS+=" -fpie -fvisibility=hidden"
+export CXXFLAGS+=" -fpie -fvisibility=hidden"
export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
%if "%{profile}" == "mobile"
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
-%if "%{profile}" == "mobile"
+%if "%{profile}" == "mobile" || "%{profile}" == "wearable"
%exclude %{_sysconfdir}/rc.d/init.d/bluetooth-address
%else
%{_sysconfdir}/rc.d/init.d/bluetooth-address
%attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-edutm-off.sh
%attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-hci-logdump.sh
%attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-run-hcidump.sh
+%if "%{profile}" == "mobile"
+%attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-stack-down-with-radio.sh
+%endif
%{_datadir}/license/bluetooth-tools
%{_unitdir}/multi-user.target.wants/bluetooth-address.service
%{_unitdir}/bluetooth-address.service