Requires: %{name}-compat = %{version}-%{release}
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
-%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "wearable"
+%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
Recommends: %{name}-profile_common = %{version}-%{release}
%endif
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
-%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "wearable"
+%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
%package profile_common
Summary: ise-default binaries and resources without flavors
Provides: %{name}-compat = %{version}-%{release}
Conflicts: %{name}-profile_mobile
Conflicts: %{name}-profile_tv
Conflicts: %{name}-profile_wearable
+Conflicts: %{name}-profile_ivi
%description profile_common
Tizen keyboard (ise-default) binaries and resources without flavors, intended
-to support common/ivi profiles, which does not supply any additional options
+to support common profiles, which does not supply any additional options
for the build.
%endif
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
-%if "%{?profile}" != "tv" && "%{?profile}" != "wearable"
+%if "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
%package profile_mobile
Summary: ise-default binaries and resources with mobile profile
Provides: %{name}-compat = %{version}-%{release}
Conflicts: %{name}-profile_common
Conflicts: %{name}-profile_tv
Conflicts: %{name}-profile_wearable
+Conflicts: %{name}-profile_ivi
%description profile_mobile
Tizen keyboard (ise-default) binaries and resources with mobile options.
This is intended to support mobile profiles.
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
-%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable"
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
%package profile_tv
Summary: ise-default binaries and resources with tv profile
Provides: %{name}-compat = %{version}-%{release}
Conflicts: %{name}-profile_common
Conflicts: %{name}-profile_mobile
Conflicts: %{name}-profile_wearable
+Conflicts: %{name}-profile_ivi
%description profile_tv
Tizen keyboard (ise-default) binaries and resources with tv options.
This is intended to support tv profiles.
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv"
+%package profile_ivi
+Summary: ise-default binaries and resources with ivi profile
+Provides: %{name}-compat = %{version}-%{release}
+Conflicts: %{name}-profile_common
+Conflicts: %{name}-profile_mobile
+Conflicts: %{name}-profile_wearable
+Conflicts: %{name}-profile_tv
+%description profile_ivi
+Tizen keyboard (ise-default) binaries and resources with ivi options.
+This is intended to support ivi profiles.
+%endif
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
# Common is blocked because wearable has extra efl-ext entries, which will be
# removed for unified build env later.
-%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common"
+%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
%package profile_wearable
Summary: Meta package of ise-default for wearable profiles. (circle/rectangle)
Provides: %{name}-compat = %{version}-%{release}
Conflicts: %{name}-profile_common
Conflicts: %{name}-profile_mobile
Conflicts: %{name}-profile_tv
+Conflicts: %{name}-profile_ivi
Requires: %{name}-profile_wearable-extension = %{version}-%{release}
Recommends: %{name}-profile_wearable-extension-circle = %{version}-%{release}
%description profile_wearable
# In 4.0 unified build env, this if statement is always true.
# Common is blocked because wearable has extra efl-ext entries, which will be
# removed for unified build env later.
-%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common"
+%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
mkdir -p build_wearable_rec
pushd build_wearable_rec
export CFLAGS="${CFLAGS_BASE} -D_WEARABLE";
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
-%if "%{?profile}" != "tv" && "%{?profile}" != "wearable"
+%if "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
mkdir -p build_mobile
pushd build_mobile
export CFLAGS="${CFLAGS_BASE} -D_MOBILE";
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
-%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable"
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
mkdir -p build_tv
pushd build_tv
export CFLAGS="${CFLAGS_BASE} -D_TV";
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
-%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv"
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
+mkdir -p build_ivi
+pushd build_ivi
+export CFLAGS="${CFLAGS_BASE} -D_IVI";
+export CXXFLAGS="${CXXFLAGS_BASE} -D_IVI";
+cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+ -DTARGET=ivi \
+ -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
+ -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
+
+make %{?jobs:-j%jobs}
+popd
+%endif
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
export CFLAGS="${CFLAGS_BASE}";
export CXXFLAGS="${CXXFLAGS_BASE}";
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
-%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv"
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
%make_install
mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/common
pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
-%if "%{?profile}" != "wearable" && "%{?profile}" != "tv"
+%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
pushd build_mobile
%make_install
popd
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
-%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable"
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
pushd build_tv
%make_install
popd
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
+pushd build_ivi
+%make_install
+popd
+mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/ivi
+pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
+rm -Rf res_shared
+mkdir -p res_shared
+mv res/locale res_shared
+mv bin res ivi
+popd
+%endif
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
# Common is blocked because wearable has extra efl-ext entries, which will be
# removed for unified build env later.
-%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common"
+%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
pushd build_wearable_cir
%make_install
popd
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
-%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv"
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
%post profile_common
pushd %{TZ_SYS_RO_APP}/ise-default
ln -sf common/bin bin
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
-%if "%{?profile}" != "wearable" && "%{?profile}" != "tv"
+%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%post profile_mobile
pushd %{TZ_SYS_RO_APP}/ise-default
ln -sf mobile/bin bin
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
-%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable"
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%post profile_tv
pushd %{TZ_SYS_RO_APP}/ise-default
ln -sf tv/bin bin
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
+%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
+%post profile_ivi
+pushd %{TZ_SYS_RO_APP}/ise-default
+ln -sf ivi/bin bin
+pushd res
+ln -sf ../ivi/res/* .
+popd
+popd
+%preun profile_ivi
+pushd %{TZ_SYS_RO_APP}/ise-default
+rm bin
+popd
+%files profile_ivi
+%exclude %{TZ_SYS_RO_APP}/ise-default/ivi/res/locale
+%{TZ_SYS_RO_APP}/ise-default/ivi/*
+%endif
+
+
+# This is for old profile-based OBS project optimizations.
+# In 4.0 unified build env, this if statement is always true.
# Common is blocked because wearable has extra efl-ext entries, which will be
# removed for unified build env later.
-%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common"
+%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
%files profile_wearable
%post profile_wearable-extension-circle