3 Name: e-mod-tizen-keyrouter
6 Summary: The Enlightenment Keyrouter Module for Tizen
7 URL: http://www.enlightenment.org
8 Group: Graphics & UI Framework/Other
9 Source0: %{name}-%{version}.tar.gz
11 BuildRequires: pkgconfig(enlightenment)
12 BuildRequires: gettext
13 BuildRequires: pkgconfig(ttrace)
15 BuildRequires: pkgconfig(wayland-server)
16 BuildRequires: pkgconfig(tizen-extension-server)
17 BuildRequires: pkgconfig(cynara-client)
18 BuildRequires: pkgconfig(cynara-creds-socket)
20 BuildRequires: pkgconfig(dlog)
21 %if "%{?profile}" == "common"
23 BuildRequires: xkb-tizen-data
26 %global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
29 This package is a the Enlightenment Keyrouter Module for Tizen.
36 export GC_SECTIONS_FLAGS="-fdata-sections -ffunction-sections -Wl,--gc-sections"
37 export CFLAGS+=" -Wall -g -fPIC -rdynamic ${GC_SECTIONS_FLAGS} -DE_LOGGING=1 "
38 export LDFLAGS+=" -Wl,--hash-style=both -Wl,--as-needed -Wl,--rpath=/usr/lib"
42 %configure --prefix=/usr \
43 --enable-wayland-only \
52 # for license notification
53 mkdir -p %{buildroot}/%{TZ_SYS_RO_SHARE}/license
54 cp -a %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{name}
58 make install DESTDIR=%{buildroot}
60 # clear useless textual files
61 find %{buildroot}%{_libdir}/enlightenment/modules/%{name} -name *.la | xargs rm
64 %defattr(-,root,root,-)
65 %{_libdir}/enlightenment/modules/e-mod-tizen-keyrouter
66 %{TZ_SYS_RO_SHARE}/license/%{name}