From bb2c978ebc2aca218c308a546488c91949af4db7 Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Wed, 6 May 2015 12:57:59 +0900 Subject: [PATCH] Fix compile error for mobile profile Change-Id: I73603322f0a19d0d8a6afa40329c2ae16b0d0776 Signed-off-by: DoHyun Pyun --- packaging/bluetooth-tools.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 -- 2.7.4