X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fbluetooth-agent.spec;h=1e8e64982c6b5204a25d50fa7135857bd78c86f7;hb=2ae749fc2c8db2f573cd32f5f5f6a2647a262945;hp=286122a3975af0c2fa7f8df5dad09b9527175f2d;hpb=5c13769cae58ceda1f0e7e4718cee0d814adb32f;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-agent.git diff --git a/packaging/bluetooth-agent.spec b/packaging/bluetooth-agent.spec index 286122a..1e8e649 100644 --- a/packaging/bluetooth-agent.spec +++ b/packaging/bluetooth-agent.spec @@ -2,20 +2,16 @@ Name: bluetooth-agent Summary: Bluetooth agent packages that support various external profiles -Version: 0.1.0 +Version: 0.1.1 Release: 1 Group: Network & Connectivity/Bluetooth License: Apache-2.0 Source0: %{name}-%{version}.tar.gz Source1001: bluetooth-agent.manifest -%if "%{?profile}" == "tv" -ExcludeArch: %{arm} %ix86 x86_64 -%endif - BuildRequires: pkgconfig(aul) BuildRequires: pkgconfig(bluetooth-api) -%if "%{?profile}" == "wearable" +%if "%{?profile}" == "wearable" || "%{?profile}" == "ivi" BuildRequires: pkgconfig(alarm-service) BuildRequires: pkgconfig(capi-appfw-app-manager) BuildRequires: pkgconfig(capi-system-device) @@ -49,7 +45,7 @@ cp %{SOURCE1001} . export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE" export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE" export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE" -export CFLAGS="$CFLAGS -DTIZEN_MEDIA_ENHANCE" +#export CFLAGS="$CFLAGS -DTIZEN_MEDIA_ENHANCE" export CFLAGS="$CFLAGS -DTIZEN_BT_HFP_AG_ENABLE" %ifarch aarch64 @@ -59,6 +55,13 @@ export CXXFLAGS+=" -DARCH64" export FFLAGS+=" -DARCH64" %endif +%ifarch x86_64 +echo x86_64 +export CFLAGS+=" -DARCH64" +export CXXFLAGS+=" -DARCH64" +export FFLAGS+=" -DARCH64" +%endif + %if "%{?profile}" == "wearable" export CFLAGS="$CFLAGS -DTIZEN_WEARABLE" export CFLAGS="$CFLAGS -DTIZEN_SUPPORT_LUNAR_DEVICE" @@ -66,9 +69,13 @@ export CFLAGS="$CFLAGS -DTIZEN_SUPPORT_LUNAR_DEVICE" export CFLAGS="$CFLAGS -DTIZEN_KIRAN" %endif -export CFLAGS+=" -fpie -DPBAP_SIM_ENABLE" +%if "%{?profile}" == "ivi" +export CFLAGS="$CFLAGS -DTIZEN_PROFILE_IVI" +%endif + +export CFLAGS+=" -fpie -DPBAP_SIM_ENABLE -fvisibility=hidden " +export CXXFLAGS+=" -fpie -DPBAP_SIM_ENABLE -fvisibility=hidden " -export CFLAGS+=" -fpie -fvisibility=hidden" export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie" cmake . -DCMAKE_INSTALL_PREFIX=/usr \ @@ -77,6 +84,9 @@ cmake . -DCMAKE_INSTALL_PREFIX=/usr \ %else -DTIZEN_WEARABLE=0 \ %endif +%if "%{?profile}" == "ivi" + -DTIZEN_PROFILE_IVI=1 \ +%endif -DTIZEN_BT_HFP_AG_ENABLE=1 make VERBOSE=1 @@ -86,37 +96,42 @@ rm -rf %{buildroot} %make_install install -D -m 0644 LICENSE %{buildroot}%{_datadir}/license/bluetooth-agent -mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants +#mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants #%if "%{?profile}" != "wearable" #install -m 0644 packaging/bluetooth-ag-agent.service %{buildroot}%{_unitdir}/ #ln -s ../bluetooth-ag-agent.service %{buildroot}%{_unitdir}/multi-user.target.wants/bluetooth-ag-agent.service #%endif -%if 0%{?sec_product_feature_bt_map_server_enable} +#%if 0%{?sec_product_feature_bt_map_server_enable} install -D -m 0644 packaging/bluetooth-map-agent.service %{buildroot}%{_libdir}/systemd/user/bluetooth-map-agent.service -%endif - +#%endif +install -D -m 0644 packaging/bluetooth-pbap-agent.service %{buildroot}%{_libdir}/systemd/system/bluetooth-pbap-agent.service %post %if 0%{?sec_product_feature_bt_map_server_enable} ln -sf %{_libdir}/systemd/user/bluetooth-map-agent.service %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/ %endif +ln -sf %{_libdir}/systemd/system/bluetooth-pbap-agent.service %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/ %files %manifest %{name}.manifest %defattr(-, root, root) -%if "%{?profile}" == "wearable" +%if "%{?profile}" == "wearable" || "%{?profile}" == "ivi" %{_bindir}/bluetooth-hf-agent %{_datadir}/dbus-1/system-services/org.bluez.hf_agent.service +%exclude %{_libdir}/systemd/user/bluetooth-map-agent.service +%exclude %{_libdir}/systemd/user/bluetooth-pbap-agent.service %else %{_bindir}/bluetooth-ag-agent %{_bindir}/bluetooth-map-agent %{_bindir}/bluetooth-pb-agent %{_datadir}/dbus-1/system-services/org.bluez.pb_agent.service -%{_datadir}/dbus-1/system-services/org.bluez.map_agent.service +%{_datadir}/dbus-1/services/org.bluez.map_agent.service %{_datadir}/dbus-1/system-services/org.bluez.ag_agent.service #%{_usrlibdir}/systemd/system/bluetooth-ag-agent.service #%{_usrlibdir}/systemd/system/multi-user.target.wants/bluetooth-ag-agent.service %attr(0666,-,-) /var/lib/bluetooth/voice-recognition-blacklist %{_sysconfdir}/dbus-1/system.d/bluetooth-ag-agent.conf +%{_libdir}/systemd/user/bluetooth-map-agent.service +%{_libdir}/systemd/system/bluetooth-pbap-agent.service %endif %{_datadir}/license/bluetooth-agent