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>
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)
export CFLAGS="${CFLAGS} -fPIC -fvisibility=hidden"
-%if "%{?tizen_version}" == "3.0"
+%if 0%{?tizen_version_major} >= 3
_CHROMIUM_EFL="YES"
%else
_CHROMIUM_EFL="NO"