Prepare for Tizen 4.0 Build 53/110153/1 accepted/tizen/common/20170119.171904 accepted/tizen/ivi/20170119.222623 accepted/tizen/mobile/20170119.222610 accepted/tizen/unified/20170309.031815 accepted/tizen/wearable/20170119.222617 submit/tizen/20170119.061916 submit/tizen_unified/20170308.100404
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 13 Jan 2017 05:53:36 +0000 (14:53 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 13 Jan 2017 05:53:36 +0000 (14:53 +0900)
I've assumed that Tizen 4.0 code is going to be more similar with 3.0
than 2.0.

Please do not rely on string == compare for version check.

Change-Id: I3ce87f02b622b166480cfb510ab8bb994fe7a8d3
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
packaging/oauth2.spec

index 77554b4..9a703b9 100644 (file)
@@ -12,7 +12,7 @@ BuildRequires:  pkgconfig(bundle)
 BuildRequires:  pkgconfig(capi-base-common)
 BuildRequires:  pkgconfig(libcurl)
 BuildRequires:  pkgconfig(efl-extension)
-%if "%{?tizen_version}" == "3.0"
+%if 0%{?tizen_version_major} >= 3
 BuildRequires:  pkgconfig(chromium-efl)
 %else
 BuildRequires:  pkgconfig(ewebkit2)
@@ -49,7 +49,7 @@ export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
 
 export CFLAGS="${CFLAGS} -fPIC -fvisibility=hidden"
 
-%if "%{?tizen_version}" == "3.0"
+%if 0%{?tizen_version_major} >= 3
 _CHROMIUM_EFL="YES"
 %else
 _CHROMIUM_EFL="NO"