%bcond_with multi_user
Name: bluetooth-frwk
-Summary: Bluetooth framework for BlueZ and Obexd.
+Summary: Bluetooth framework for BlueZ and Obexd
Version: 0.2.55
Release: 2
-Group: connectivity/bluetooth-frwk
-License: Apache License, Version 2.0
+Group: Network & Connectivity/Bluetooth
+License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
-Source1001: bluetooth-frwk.manifest
-Source1002: bt-icon.png
+Source1001: bluetooth-frwk.manifest
+Source1002: bt-icon.png
+URL: https://review.tizen.org/git/?p=platform/core/connectivity/bluetooth-frwk.git;a=summary
Requires: dbus
Requires: syspopup
Requires: bluetooth-tools
BuildRequires: cmake
Requires(post): vconf
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
%description
-Bluetooth framework for BlueZ and Obexd.
+Bluetooth framework for BlueZ and Obexd. This package is Bluetooth framework based on BlueZ and Obexd stack.
This package contains API set for BT GAP, BT SDP, and BT RFCOMM.
%package service
Summary: Bluetooth Service daemon
-Group: connectivity/bluetooth-frwk
+Group: Network & Connectivity/Bluetooth
Requires: %{name} = %{version}-%{release}
%description service
%package core
Summary: Bluetooth Core daemon
-Group: connectivity/bluetooth-frwk
+Group: Network & Connectivity/Bluetooth
Requires: %{name} = %{version}-%{release}
%description core
%build
-export CFLAGS+=" -fpie"
-export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
-cmake . -DCMAKE_INSTALL_PREFIX=/usr \
+%ifarch x86_64
+export CFLAGS+=" -Wall -g -fvisibility=hidden -fPIC"
+export LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs"
+%else
+export CFLAGS+=" -fpie"
+export LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
+%endif
+%cmake . \
%if %{with multi_user}
-DMULTI_USER_SUPPORT=On \
%else
install -m 0644 %{SOURCE1002} %{buildroot}%{_datadir}/icons/default/bt-icon.png
%endif
-%post -p /sbin/ldconfig
+%post
+/sbin/ldconfig
vconftool set -tf int db/bluetooth/status "0" -g 6520
vconftool set -tf int file/private/bt-service/flight_mode_deactivated "0" -g 6520 -i
vconftool set -tf string memory/bluetooth/sco_headset_name "" -g 6520 -i