From 47cd60aa373078bdc99217b107a234a66fe67bdc Mon Sep 17 00:00:00 2001 From: Minkyu Kang Date: Thu, 29 Sep 2016 20:08:50 +0900 Subject: [PATCH] packaging: fix wrong condition checking Since there's no rule for "else if" on RPM spec, "else if" will be interpreted to "else". So, if the profile is not a mobile then all other profiles are recognized as wearable. It has made errors on TV profile. Change-Id: Iac40137954f6f2d196dca20f72fc6f004a0d5701 Signed-off-by: Minkyu Kang --- packaging/elementary.spec | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packaging/elementary.spec b/packaging/elementary.spec index 8be5295..ae5a36a 100644 --- a/packaging/elementary.spec +++ b/packaging/elementary.spec @@ -99,11 +99,13 @@ cp %{SOURCE1001} . # Patch profile dependency widgets %if "%{profile}" == "mobile" cp %{_builddir}/%{buildsubdir}/src/mobile_lib/* %{_builddir}/%{buildsubdir}/src/lib -%else if "%{profile}" == "wearable" - cp %{_builddir}/%{buildsubdir}/src/mobile_lib/* %{_builddir}/%{buildsubdir}/src/lib - export CFLAGS+=" -DELM_FEATURE_WEARABLE" - %if "%{?model_build_feature_formfactor}" == "circle" - export CFLAGS+=" -DELM_FEATURE_WEARABLE_C1" +%else + %if "%{profile}" == "wearable" + cp %{_builddir}/%{buildsubdir}/src/mobile_lib/* %{_builddir}/%{buildsubdir}/src/lib + export CFLAGS+=" -DELM_FEATURE_WEARABLE" + %if "%{?model_build_feature_formfactor}" == "circle" + export CFLAGS+=" -DELM_FEATURE_WEARABLE_C1" + %endif %endif %endif -- 2.7.4