From: DoHyun Pyun Date: Wed, 6 May 2015 03:57:59 +0000 (+0900) Subject: Fix compile error for mobile profile X-Git-Tag: accepted/tizen/mobile/20150506.083513^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F80%2F38980%2F1;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-tools.git Fix compile error for mobile profile Change-Id: I73603322f0a19d0d8a6afa40329c2ae16b0d0776 Signed-off-by: DoHyun Pyun --- diff --git a/packaging/bluetooth-tools.spec b/packaging/bluetooth-tools.spec index f5c7e73..a441e5d 100644 --- a/packaging/bluetooth-tools.spec +++ b/packaging/bluetooth-tools.spec @@ -33,21 +33,25 @@ export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols= %if "%{profile}" == "mobile" export CFLAGS="$CFLAGS -DTIZEN_MOBILE" -%elseif "%{profile}" == "wearable" +%else +%if "%{profile}" == "wearable" export CFLAGS="$CFLAGS -DTIZEN_WEARABLE" %endif +%endif %cmake \ %if "%{profile}" == "mobile" -DTIZEN_MOBILE=YES \ -DTIZEN_WEARABLE=NO \ -%elseif "%{profile}" == "wearable" +%else +%if "%{profile}" == "wearable" -DTIZEN_MOBILE=NO \ -DTIZEN_WEARABLE=YES \ %else -DTIZEN_MOBILE=NO \ -DTIZEN_WEARABLE=NO \ %endif +%endif %cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} %__make %{?_smp_mflags} @@ -75,7 +79,11 @@ install -D -m 0644 LICENSE.APLv2 %{buildroot}%{_datadir}/license/bluetooth-tools %files %manifest %{name}.manifest %defattr(-,root,root,-) +%if "%{profile}" == "mobile" +%exclude %{_sysconfdir}/rc.d/init.d/bluetooth-address +%else %{_sysconfdir}/rc.d/init.d/bluetooth-address +%endif %{_sysconfdir}/rc.d/rc3.d/S60bluetooth-address %{_sysconfdir}/rc.d/rc5.d/S60bluetooth-address %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-stack-up.sh