%define bt_bluez_hal ENABLED
%define bt_gatt_client_fd ENABLED
%define bt_permanent_log DISABLED
+%define bt_http_proxy DISABLED
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(alarm-service)
BuildRequires: pkgconfig(capi-content-mime-type)
BuildRequires: pkgconfig(eventsystem)
+%if %{bt_http_proxy} == ENABLED
BuildRequires: pkgconfig(libsoup-2.4)
+%endif
BuildRequires: pkgconfig(capi-network-tethering)
BuildRequires: cmake
BuildRequires: pkgconfig(cynara-client)
%description service
This package is Bluetooth Service daemon to manage BT services.
+%if %{bt_http_proxy} == ENABLED
%package httpproxy
Summary: Bluetooth HTTP Proxy Service daemon
Group: Network & Connectivity/Bluetooth
%description httpproxy
This package is Bluetooth HTTP Proxy Service daemon
+%endif
%package otp
Summary: Bluetooth OTP Service daemon
export CFLAGS="$CFLAGS -DTIZEN_FEATURE_BT_PERMANENT_LOG"
%endif
+%if %{bt_http_proxy} == ENABLED
+export CFLAGS="$CFLAGS -DTIZEN_FEATURE_BT_HTTP_PROXY"
+%endif
+
%ifarch %{ix86} x86_64
export CFLAGS+=" -DTIZEN_TEST_EMUL"
export CXXFLAGS+=" -DTIZEN_TEST_EMUL"
%{_prefix}/etc/bluetooth
%attr(-,network_fw,network_fw) %{_varlibdir}/bluetooth/auto-pair-blacklist
+%if %{bt_http_proxy} == ENABLED
%files httpproxy
%manifest %{name}.manifest
%license LICENSE
%{_bindir}/bt-httpproxy
%{_datadir}/dbus-1/system-services/org.projectx.httpproxy.service
%{_sysconfdir}/dbus-1/system.d/bluetooth-frwk-httpproxy.conf
-
+%endif
%files otp
%manifest %{name}.manifest