%if "%{profile}" == "mobile" %define WITH_CBHM TRUE %else %define WITH_CBHM FALSE %endif Name: ise-default Summary: Tizen keyboard Version: 1.3.31 Release: 1 Group: Graphics & UI Framework/Input License: Apache-2.0 Source0: ise-default-%{version}.tar.gz BuildRequires: gettext-tools BuildRequires: edje-bin BuildRequires: cmake BuildRequires: pkgconfig(elementary) BuildRequires: pkgconfig(vconf) BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(libscl-ui) BuildRequires: pkgconfig(ecore-imf) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(efl-extension) BuildRequires: pkgconfig(libtzplatform-config) BuildRequires: pkgconfig(stt) BuildRequires: pkgconfig(capi-appfw-application) BuildRequires: pkgconfig(capi-media-audio-io) BuildRequires: pkgconfig(capi-ui-inputmethod) %if "%{WITH_CBHM}" == "TRUE" BuildRequires: pkgconfig(cbhm) %endif BuildRequires: model-build-features %description Description: Tizen keyboard %prep %setup -q %build export CFLAGS+=" -DTIZEN_DEBUG_ENABLE -fvisibility=hidden" export CXXFLAGS+=" -DTIZEN_DEBUG_ENABLE -std=c++11 -fvisibility=hidden -fvisibility-inlines-hidden" export FFLAGS+=" -DTIZEN_DEBUG_ENABLE" %if "%{profile}" == "wearable" CFLAGS+=" -D_WEARABLE"; CXXFLAGS+=" -D_WEARABLE"; %if "%{model_build_feature_formfactor}" == "circle" CFLAGS+=" -D_CIRCLE"; CXXFLAGS+=" -D_CIRCLE"; %endif %endif %if "%{profile}" == "mobile" CFLAGS+=" -D_MOBILE"; CXXFLAGS+=" -D_MOBILE"; %endif %if "%{profile}" == "tv" CFLAGS+=" -D_TV"; CXXFLAGS+=" -D_TV"; %endif %if "%{profile}" == "ivi" CFLAGS+=" -D_IVI"; CXXFLAGS+=" -D_IVI"; %endif rm -rf CMakeFiles rm -rf CMakeCache.txt cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DTARGET=%{?profile} \ -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \ -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES \ -Dwith_cbhm=%{WITH_CBHM} make %{?jobs:-j%jobs} %install rm -rf %{buildroot} %make_install %find_lang %{name} %files -f %{name}.lang %manifest %{name}.manifest %defattr(-,root,root,-) %{TZ_SYS_RO_APP}/* %{TZ_SYS_RO_PACKAGES}/%{name}.xml %license LICENSE