2 Summary: Bluetooth-tools
5 Group: Network & Connectivity/Bluetooth
7 Source0: %{name}-%{version}.tar.gz
8 Source1001: bluetooth-address.service
10 Suggests: bluetooth-share
11 Requires: tizen-platform-config-tools
12 Requires: bluetooth-scripts
15 Tools fo bluetooth run/stop and set address
18 Summary: On/Off Bluetooth adapter
19 Group: Network & Connectivity/Bluetooth
20 Requires: %{name} = %{version}-%{release}
22 Provides: bluetooth-scripts
23 Conflicts: bluetooth-firmware-bcm
25 %description no-firmware
26 On/Off bluetooth device
32 export CFLAGS+=" -fpie -fvisibility=hidden"
33 export CXXFLAGS+=" -fpie -fvisibility=hidden"
34 export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
36 %if "%{profile}" == "mobile"
37 export CFLAGS="$CFLAGS -DTIZEN_MOBILE"
39 %if "%{profile}" == "wearable"
40 export CFLAGS="$CFLAGS -DTIZEN_WEARABLE"
45 %if "%{profile}" == "mobile"
49 %if "%{profile}" == "wearable"
51 -DTIZEN_WEARABLE=YES \
58 %cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
59 %__make %{?_smp_mflags}
60 #cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
61 #make %{?jobs:-j%jobs}
67 mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc3.d
68 mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc5.d
69 ln -s %{_sysconfdir}/rc.d/init.d/bluetooth-address %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S60bluetooth-address
70 ln -s %{_sysconfdir}/rc.d/init.d/bluetooth-address %{buildroot}%{_sysconfdir}/rc.d/rc5.d/S60bluetooth-address
72 mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
73 install -m 0644 %{SOURCE1001} %{buildroot}%{_unitdir}
74 ln -s ../bluetooth-address.service %{buildroot}%{_unitdir}/multi-user.target.wants/bluetooth-address.service
76 mkdir -p %{buildroot}%{_prefix}/etc/bluetooth/
77 install -m 0755 scripts/bt-dev-start.sh %{buildroot}%{_prefix}/etc/bluetooth/bt-dev-start.sh
78 install -m 0755 scripts/bt-dev-end.sh %{buildroot}%{_prefix}/etc/bluetooth/bt-dev-end.sh
79 install -D -m 0644 LICENSE.APLv2 %{buildroot}%{_datadir}/license/bluetooth-tools
82 %manifest %{name}.manifest
83 %defattr(-,root,root,-)
84 %if "%{profile}" == "mobile" || "%{profile}" == "wearable"
85 %exclude %{_sysconfdir}/rc.d/init.d/bluetooth-address
87 %{_sysconfdir}/rc.d/init.d/bluetooth-address
89 %{_sysconfdir}/rc.d/rc3.d/S60bluetooth-address
90 %{_sysconfdir}/rc.d/rc5.d/S60bluetooth-address
91 %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-stack-up.sh
92 %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-stack-down.sh
93 %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-reset-env.sh
94 %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-edutm-on.sh
95 %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-edutm-dev-up.sh
96 %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-edutm-mode-on.sh
97 %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-edutm-off.sh
98 %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-hci-logdump.sh
99 %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-run-hcidump.sh
100 %{_datadir}/license/bluetooth-tools
101 %{_unitdir}/multi-user.target.wants/bluetooth-address.service
102 %{_unitdir}/bluetooth-address.service
105 %manifest %{name}.manifest
106 %defattr(-, root, root)
107 %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end.sh
108 %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start.sh