Fix compile error for mobile profile 80/38980/1 accepted/tizen/mobile/20150506.083513 submit/tizen_mobile/20150506.040138
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 6 May 2015 03:57:59 +0000 (12:57 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 6 May 2015 04:00:05 +0000 (13:00 +0900)
Change-Id: I73603322f0a19d0d8a6afa40329c2ae16b0d0776
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
packaging/bluetooth-tools.spec

index f5c7e73..a441e5d 100644 (file)
@@ -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