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-tools
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)
33 BuildRequires: pkgconfig(capi-media-audio-io)
36 %if %{enable_log_manager}
37 BuildRequires: pkgconfig(bundle)
40 %if "%{?profile}" == "mobile"
41 ExcludeArch: %{arm} aarch64 %ix86 x86_64
44 %if "%{?profile}" == "tv"
45 ExcludeArch: %{arm} aarch64 %ix86 x86_64
48 %if "%{?profile}" == "common"
49 ExcludeArch: %{arm} aarch64 %ix86 x86_64
52 %if "%{?profile}" == "ivi"
53 ExcludeArch: %{arm} aarch64 %ix86 x86_64
56 %define _appdir /usr/apps
57 %define _app_destdir %{_appdir}/%{name}
59 # Sandboxed prefix '/'
61 %define _app_localedir %{_app_prefix}res/locale
64 Input Delegator Application for Wearable environment
70 export CFLAGS+=" -DTIZEN_DEBUG_ENABLE -Werror -fvisibility=hidden"
71 export CXXFLAGS+=" -DTIZEN_DEBUG_ENABLE -Werror -fvisibility=hidden -fvisibility-inlines-hidden"
72 export FFLAGS+=" -DTIZEN_DEBUG_ENABLE -Werror"
74 export CXXFLAGS="$CXXFLAGS -std=gnu++0x"
77 cmake . -DCMAKE_INSTALL_PREFIX=%{_app_prefix} \
78 -DCMAKE_INSTALL_LOCALEDIR=%{_app_localedir} \
79 -DENABLE_LOG_MANAGER=%{enable_log_manager}
81 # compile warning & error filtering
82 make %{?jobs:-j%jobs} \
84 -e 's%^.*: error: .*$%\x1b[1;31;40m&\x1b[m%' \
85 -e 's%^.*: warning: .*$%\x1b[1;33;40m&\x1b[m%'
89 make install DESTDIR=%{buildroot}%{_app_destdir}
91 mkdir -p %{buildroot}%{_datadir}/packages/
92 cp -rf org.tizen.inputdelegator.xml %{buildroot}%{_datadir}/packages
97 /usr/bin/vconftool -u 5000 set -t int db/private/ise/stt/language "0" -f -s tizen::vconf::platform::rw
100 %manifest org.tizen.inputdelegator.manifest
101 %defattr(-,root,root,-)
103 %{_datadir}/packages/org.tizen.inputdelegator.xml
104 %{_app_destdir}%{_app_prefix}/bin/inputdelegator
105 %{_app_destdir}%{_app_prefix}/res/edje/w-input-selector.edj
106 %{_app_destdir}%{_app_prefix}/res/edje/w-input-stt.edj
107 %{_app_destdir}%{_app_prefix}/res/edje/w-input-stt-button.edj
108 %{_app_destdir}%{_app_prefix}/res/images/*
109 %{_app_destdir}%{_app_prefix}/shared/res/w-input-selector.png
110 %{_app_destdir}%{_app_localedir}/*/LC_MESSAGES/org.tizen.inputdelegator.mo