1 Name: org.tizen.inputdelegator
2 Summary: Input Delegator Application
7 Source0: %{name}-%{version}.tar.gz
9 %define enable_log_manager 1
11 BuildRequires: pkgconfig(ecore-wayland)
12 BuildRequires: pkgconfig(ecore)
13 BuildRequires: pkgconfig(evas)
14 BuildRequires: pkgconfig(edje)
15 BuildRequires: pkgconfig(edbus)
18 BuildRequires: edje-bin
19 BuildRequires: gettext
21 BuildRequires: pkgconfig(dlog)
22 BuildRequires: pkgconfig(capi-appfw-application)
23 BuildRequires: pkgconfig(capi-media-wav-player)
24 BuildRequires: pkgconfig(capi-system-device)
25 BuildRequires: pkgconfig(eina)
26 BuildRequires: pkgconfig(elementary)
27 BuildRequires: pkgconfig(efl-extension)
28 BuildRequires: pkgconfig(feedback)
29 BuildRequires: pkgconfig(stt)
30 BuildRequires: pkgconfig(vconf)
31 BuildRequires: pkgconfig(db-util)
32 BuildRequires: pkgconfig(sqlite3)
35 %if %{enable_log_manager}
36 BuildRequires: pkgconfig(bundle)
39 %if "%{?profile}" == "mobile"
40 ExcludeArch: %{arm} aarch64 %ix86 x86_64
43 %if "%{?profile}" == "tv"
44 ExcludeArch: %{arm} aarch64 %ix86 x86_64
47 %if "%{?profile}" == "common"
48 ExcludeArch: %{arm} aarch64 %ix86 x86_64
51 %if "%{?profile}" == "ivi"
52 ExcludeArch: %{arm} aarch64 %ix86 x86_64
55 %define _appdir /usr/apps
56 %define _app_destdir %{_appdir}/%{name}
58 # Sandboxed prefix '/'
60 %define _app_localedir %{_app_prefix}res/locale
63 Input Delegator Application for Wearable environment
69 %if 0%{?sec_build_binary_debug_enable}
70 export CFLAGS+=" -DTIZEN_DEBUG_ENABLE -Werror"
71 export CXXFLAGS+=" -DTIZEN_DEBUG_ENABLE -Werror"
72 export FFLAGS+=" -DTIZEN_DEBUG_ENABLE -Werror"
75 export CXXFLAGS="$CXXFLAGS -std=gnu++0x"
78 cmake . -DCMAKE_INSTALL_PREFIX=%{_app_prefix} \
79 -DCMAKE_INSTALL_LOCALEDIR=%{_app_localedir} \
80 -DENABLE_LOG_MANAGER=%{enable_log_manager}
82 # compile warning & error filtering
83 make %{?jobs:-j%jobs} \
85 -e 's%^.*: error: .*$%\x1b[1;31;40m&\x1b[m%' \
86 -e 's%^.*: warning: .*$%\x1b[1;33;40m&\x1b[m%'
90 make install DESTDIR=%{buildroot}%{_app_destdir}
92 mkdir -p %{buildroot}%{_datadir}/packages/
93 cp -rf org.tizen.inputdelegator.xml %{buildroot}%{_datadir}/packages
98 /usr/bin/vconftool -u 5000 set -t int db/private/ise/stt/language "0" -f -s tizen::vconf::platform::rw
101 %manifest org.tizen.inputdelegator.manifest
102 %defattr(-,root,root,-)
104 %{_datadir}/packages/org.tizen.inputdelegator.xml
105 %{_app_destdir}%{_app_prefix}/bin/inputdelegator
106 %{_app_destdir}%{_app_prefix}/res/edje/w-input-selector.edj
107 %{_app_destdir}%{_app_prefix}/res/edje/w-input-stt.edj
108 %{_app_destdir}%{_app_prefix}/res/edje/w-input-stt-button.edj
109 %{_app_destdir}%{_app_prefix}/res/images/*
110 %{_app_destdir}%{_app_prefix}/shared/res/w-input-selector.png
111 %{_app_destdir}%{_app_localedir}/*/LC_MESSAGES/org.tizen.inputdelegator.mo