1 # For the backward compatibility, this is to be built for
2 # wearable profile or 4.0 unified building environment.
3 # This cannot be built for non-wearable in conventional 3.0 build environment.
4 # Note that it is not a good idea to limit building with ExcludeArch because there are new architectures being tested.
5 # Use ExclusiveArch istead.
6 %if "%{?profile}" == "mobile" || "%{?profile}" == "tv" || "%{?profile}" == "ivi" || "%{?profile}" == "common"
10 Name: org.tizen.inputdelegator
11 Summary: Input Delegator Application
16 Source0: %{name}-%{version}.tar.gz
18 %define enable_log_manager 1
20 BuildRequires: pkgconfig(ecore-wayland)
21 BuildRequires: pkgconfig(ecore)
22 BuildRequires: pkgconfig(evas)
23 BuildRequires: pkgconfig(edje)
24 BuildRequires: pkgconfig(edbus)
27 BuildRequires: edje-bin
28 BuildRequires: gettext
30 BuildRequires: pkgconfig(dlog)
31 BuildRequires: pkgconfig(capi-appfw-application)
32 BuildRequires: pkgconfig(capi-appfw-app-control)
33 BuildRequires: pkgconfig(capi-appfw-preference)
34 BuildRequires: pkgconfig(capi-media-wav-player)
35 BuildRequires: pkgconfig(capi-system-device)
36 BuildRequires: pkgconfig(eina)
37 BuildRequires: pkgconfig(elementary)
38 BuildRequires: pkgconfig(efl-extension)
39 BuildRequires: pkgconfig(feedback)
40 BuildRequires: pkgconfig(stt)
41 BuildRequires: pkgconfig(vconf)
42 BuildRequires: pkgconfig(db-util)
43 BuildRequires: pkgconfig(sqlite3)
44 BuildRequires: pkgconfig(capi-media-audio-io)
47 %if %{enable_log_manager}
48 BuildRequires: pkgconfig(bundle)
51 %define _appdir /usr/apps
52 %define _app_destdir %{_appdir}/%{name}
54 # Sandboxed prefix '/'
56 %define _app_localedir %{_app_prefix}res/locale
59 Input Delegator Application for Wearable environment
65 export CFLAGS+=" -DTIZEN_DEBUG_ENABLE -Werror"
66 export CXXFLAGS+=" -DTIZEN_DEBUG_ENABLE -Werror"
67 export FFLAGS+=" -DTIZEN_DEBUG_ENABLE -Werror"
69 export CXXFLAGS="$CXXFLAGS -std=gnu++0x"
72 cmake . -DCMAKE_INSTALL_PREFIX=%{_app_prefix} \
73 -DCMAKE_INSTALL_LOCALEDIR=%{_app_localedir} \
74 -DENABLE_LOG_MANAGER=%{enable_log_manager}
76 # compile warning & error filtering
77 make %{?jobs:-j%jobs} \
79 -e 's%^.*: error: .*$%\x1b[1;31;40m&\x1b[m%' \
80 -e 's%^.*: warning: .*$%\x1b[1;33;40m&\x1b[m%'
84 make install DESTDIR=%{buildroot}%{_app_destdir}
86 mkdir -p %{buildroot}%{_datadir}/packages/
87 cp -rf org.tizen.inputdelegator.xml %{buildroot}%{_datadir}/packages
92 /usr/bin/vconftool -u 5000 set -t int db/private/ise/stt/language "0" -f -s tizen::vconf::platform::rw
95 %manifest org.tizen.inputdelegator.manifest
96 %defattr(-,root,root,-)
98 %{_datadir}/packages/org.tizen.inputdelegator.xml
99 %{_app_destdir}%{_app_prefix}/bin/inputdelegator
100 %{_app_destdir}%{_app_prefix}/res/edje/w-input-selector.edj
101 %{_app_destdir}%{_app_prefix}/res/edje/w-input-stt.edj
102 %{_app_destdir}%{_app_prefix}/res/edje/w-input-stt-button.edj
103 %{_app_destdir}%{_app_prefix}/res/images/*
104 %{_app_destdir}%{_app_prefix}/shared/res/w-input-selector.png
105 %{_app_destdir}%{_app_localedir}/*/LC_MESSAGES/org.tizen.inputdelegator.mo