X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fbluetooth-frwk.spec;h=eeefd371c22f286892b59e811619aba137695eb5;hb=refs%2Fchanges%2F71%2F100771%2F2;hp=a435491adfed0745442c52aa73ecdf8132c0e4ab;hpb=41bfe957df119c7d3693451fe94b950bccf70904;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git diff --git a/packaging/bluetooth-frwk.spec b/packaging/bluetooth-frwk.spec index a435491..eeefd37 100644 --- a/packaging/bluetooth-frwk.spec +++ b/packaging/bluetooth-frwk.spec @@ -4,15 +4,12 @@ Name: bluetooth-frwk Summary: Bluetooth framework for BlueZ and Obexd. This package is Bluetooth framework based on BlueZ and Obexd stack. -Version: 0.2.151 +Version: 0.2.156 Release: 1 Group: Network & Connectivity/Bluetooth License: Apache-2.0 Source0: %{name}-%{version}.tar.gz Source1001: bluetooth-frwk.manifest -%if %{with bluetooth_frwk_libnotify} || %{with bluetooth_frwk_libnotification} -Source1002: bt-icon.png -%endif Requires: dbus Requires: syspopup @@ -25,22 +22,10 @@ BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(gio-unix-2.0) -%if %{with bluetooth_frwk_libnotify} -BuildRequires: pkgconfig(libnotify) -BuildRequires: pkgconfig(gdk-pixbuf-2.0) -BuildRequires: pkgconfig(gtk+-3.0) -%elif %{without bluetooth_frwk_libnotification} -BuildRequires: pkgconfig(syspopup-caller) -Requires: syspopup -%else BuildRequires: pkgconfig(syspopup-caller) -%endif BuildRequires: pkgconfig(vconf) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(dbus-1) -%if %{with x} -BuildRequires: pkgconfig(utilX) -%endif BuildRequires: pkgconfig(capi-network-connection) BuildRequires: pkgconfig(alarm-service) BuildRequires: pkgconfig(capi-content-mime-type) @@ -56,6 +41,7 @@ BuildRequires: cmake BuildRequires: pkgconfig(cynara-client) BuildRequires: pkgconfig(cynara-creds-gdbus) BuildRequires: pkgconfig(libtzplatform-config) +BuildRequires: pkgconfig(storage) Requires(post): /usr/bin/vconftool Requires(post): /sbin/ldconfig @@ -122,20 +108,30 @@ export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE" %define _servicedir starter.target.wants %if "%{?profile}" == "mobile" -export CFLAGS="$CFLAGS -DTIZEN_NETWORK_TETHERING_ENABLE -DTIZEN_BT_FLIGHTMODE_ENABLED -DTIZEN_MOBILE -DTIZEN_TELEPHONY_ENABLED" +export CFLAGS="$CFLAGS -DTIZEN_FEATURE_NETWORK_TETHERING_ENABLE -DTIZEN_FEATURE_FLIGHTMODE_ENABLED -DTIZEN_PROFILE_MOBILE -DTIZEN_FEATURE_TELEPHONY_ENABLED" +%if "%{?tizen_target_name}" == "TM1" +%define _servicefile packaging/bluetooth-frwk-mobile-sprd.service +%else %define _servicefile packaging/bluetooth-frwk-mobile.service +%endif %define _servicedir multi-user.target.wants %endif %if "%{?profile}" == "wearable" -export CFLAGS="$CFLAGS -DTIZEN_WEARABLE" +export CFLAGS="$CFLAGS -DTIZEN_PROFILE_WEARABLE -DTIZEN_FEATURE_FLIGHTMODE_ENABLED" %define _servicefile packaging/bluetooth-frwk-wearable.service %define _servicedir multi-user.target.wants %endif %if "%{?profile}" == "tv" -export CFLAGS="$CFLAGS -DUSB_BLUETOOTH -DTIZEN_TV -DAUTO_ACCEPT" -%define _servicefile packaging/bluetooth-frwk-mobile.service +export CFLAGS="$CFLAGS -DTIZEN_FEATURE_BT_USB_DONGLE -DTIZEN_PROFILE_TV" +%define _servicefile packaging/bluetooth-frwk-tv.service +%define _servicedir multi-user.target.wants +%endif + +%if "%{?profile}" == "ivi" +export CFLAGS="$CFLAGS -DTIZEN_PROFILE_IVI" +%define _servicefile packaging/bluetooth-frwk-wearable.service %define _servicedir multi-user.target.wants %endif @@ -146,34 +142,45 @@ export CFLAGS="$CFLAGS -fpie" export LDFLAGS="$CFLAGS -pie" %endif -export CFLAGS="$CFLAGS -DRFCOMM_DIRECT" +export CFLAGS="$CFLAGS -DTIZEN_FEATURE_BT_RFCOMM_DIRECT" export LDFLAGS="$CFLAGS -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs" +%if "%{?_with_emulator}" == "1" +export CFLAGS="$CFLAGS -DTIZEN_TEST_EMUL" +export CXXFLAGS="$CXXFLAGS -DTIZEN_TEST_EMUL" +export FFLAGS="$FFLAGS -DTIZEN_TEST_EMUL" +%endif + + +%if "%{?tizen_target_name}" == "TM1" +export CFLAGS="${CFLAGS} -DTIZEN_FEATURE_RADIO" +export CXXFLAGS="$CXXFLAGS -DTIZEN_FEATURE_RADIO" +export FFLAGS="$FFLAGS -DTIZEN_FEATURE_RADIO" +%endif + +%ifarch aarch64 +echo arch64 +export CFLAGS+=" -DARCH64" +export CXXFLAGS+=" -DARCH64" +export FFLAGS+=" -DARCH64" +%endif + cmake . -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_LIB_DIR=%{_libdir} \ -DTZ_SYS_USER_GROUP=%TZ_SYS_USER_GROUP \ -DTZ_SYS_DEFAULT_USER=%TZ_SYS_DEFAULT_USER \ -%if %{with bluetooth_frwk_libnotify} - -DLIBNOTIFY_SUPPORT=On \ -%else -DLIBNOTIFY_SUPPORT=Off \ -%endif -%if %{with bluetooth_frwk_libnotification} - -DLIBNOTIFICATION_SUPPORT=On -%else -DLIBNOTIFICATION_SUPPORT=Off -%endif - make %cmake \ %if "%{?profile}" == "wearable" - -DTIZEN_WEARABLE=YES \ + -DTIZEN_PROFILE_WEARABLE=YES \ %else - -DTIZEN_WEARABLE=NO \ + -DTIZEN_PROFILE_WEARABLE=NO \ %endif %if "%{?profile}" == "common" - -DTIZEN_WEARABLE=NO \ + -DTIZEN_PROFILE_WEARABLE=NO \ %endif %install @@ -191,11 +198,6 @@ mkdir -p %{buildroot}%{_unitdir}/%{_servicedir} install -m 0644 %{_servicefile} %{buildroot}%{_unitdir}/bluetooth-frwk.service ln -s ../bluetooth-frwk.service %{buildroot}%{_unitdir}/%{_servicedir}/bluetooth-frwk.service -%if %{with bluetooth_frwk_libnotify} || %{with bluetooth_frwk_libnotification} -mkdir -p %{buildroot}%{_datadir}/icons/default -install -m 0644 %{SOURCE1002} %{buildroot}%{_datadir}/icons/default/bt-icon.png -%endif - # On IVI bt-service needs to be run as 'app' even if there is a 'guest' user. %if "%{profile}"=="ivi" sed -i 's/%TZ_SYS_DEFAULT_USER/app/' %{buildroot}%{_datadir}/dbus-1/system-services/org.projectx.bt.service @@ -269,9 +271,6 @@ sed -i 's/%TZ_SYS_DEFAULT_USER/app/' %{buildroot}%{_datadir}/dbus-1/system-servi #%attr(0666,-,-) %{_prefix}/etc/bluetooth/stack_info #%{_dumpdir}/bluetooth_log_dump.sh %{_datadir}/license/bluetooth-frwk-service -%if %{with bluetooth_frwk_libnotify} || %{with bluetooth_frwk_libnotification} -%{_datadir}/icons/default/bt-icon.png -%endif %files httpproxy %manifest %{name}.manifest @@ -279,6 +278,7 @@ sed -i 's/%TZ_SYS_DEFAULT_USER/app/' %{buildroot}%{_datadir}/dbus-1/system-servi %{_bindir}/bt-httpproxy %{_datadir}/license/bluetooth-frwk-httpproxy %{_datadir}/dbus-1/system-services/org.projectx.httpproxy.service +%{_sysconfdir}/dbus-1/system.d/bluetooth-frwk-httpproxy.conf %files core %manifest %{name}.manifest @@ -291,5 +291,5 @@ sed -i 's/%TZ_SYS_DEFAULT_USER/app/' %{buildroot}%{_datadir}/dbus-1/system-servi %manifest %{name}.manifest %defattr(-, root, root) %{_bindir}/bluetooth-frwk-test -%{_bindir}/bluetooth-gatt-test -%{_bindir}/bluetooth-advertising-test +#%{_bindir}/bluetooth-gatt-test +#%{_bindir}/bluetooth-advertising-test