1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
|
%global __provides_exclude_from ^(.*\\.(wearable|tv|mobile|ivi))$
%bcond_with wayland
Name: isf
Summary: Input Service Framework
Version: 5.5.40
Release: 1
Group: Graphics & UI Framework/Input
License: LGPL-2.1+,GPL-2.0+
Source0: %{name}-%{version}.tar.gz
Source100: %{name}.conf
Source200: engine-loader.service
Source300: org.tizen.engine-loader.service
Source400: engine-loader.conf
BuildRequires: edje-bin
BuildRequires: gettext-tools
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(vconf)
%if %{with wayland}
BuildRequires: pkgconfig(ecore-wl2)
BuildRequires: pkgconfig(xkbcommon) >= 0.3.0
BuildRequires: pkgconfig(text-client)
BuildRequires: pkgconfig(input-method-client)
%else
BuildRequires: pkgconfig(ecore-x)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(tts)
%endif
BuildRequires: pkgconfig(eina)
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(ecore-file)
BuildRequires: pkgconfig(evas)
BuildRequires: pkgconfig(edje)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(edbus)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(capi-network-bluetooth)
BuildRequires: pkgconfig(efl-extension)
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(capi-appfw-app-control)
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(cynara-client)
BuildRequires: pkgconfig(cynara-creds-socket)
BuildRequires: pkgconfig(cynara-session)
BuildRequires: pkgconfig(capi-appfw-package-manager)
BuildRequires: pkgconfig(capi-system-info)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(notification)
BuildRequires: pkgconfig(gio-2.0)
Requires(postun): /sbin/ldconfig
Requires: org.tizen.isf-kbd-mode-changer
%define APP_PREFIX %{TZ_SYS_RO_APP}/org.tizen.isf-kbd-mode-changer/bin/
%description
Input Service Framewok (ISF) is an input method (IM) platform, and it has been derived from SCIM.
%package devel
Summary: ISF header files
Requires: %{name} = %{version}-%{release}
%description devel
This package contains ISF header files for ISE development.
%package -n org.tizen.isf-kbd-mode-changer
Summary: Keyboard mode changer
Group: Graphics & UI Framework/Input
Requires: %{name} = %{version}-%{release}
%description -n org.tizen.isf-kbd-mode-changer
Keyboard mode changer application
%prep
%setup -q
cp %{SOURCE300} .
%build
export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
%if %{with wayland}
export CFLAGS="$CFLAGS -DWAYLAND"
export CXXFLAGS="$CXXFLAGS -DWAYLAND"
%endif
export GC_SECTIONS_FLAGS="-fdata-sections -ffunction-sections -Wl,--gc-sections"
export CFLAGS="$CFLAGS -fvisibility=hidden ${GC_SECTIONS_FLAGS} -Werror"
export CXXFLAGS="$CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden ${GC_SECTIONS_FLAGS} -Werror"
export CFLAGS_BASIS="$CFLAGS"
export CXXFLAGS_BASIS="$CXXFLAGS"
%autogen
%configure --disable-static \
--disable-tray-icon \
--disable-filter-sctc \
%if %{with wayland}
--disable-efl-immodule \
%endif
--disable-frontend-x11 \
--disable-multiwindow-support \
--disable-ime-embed-app \
--with-ro-app-dir=%{TZ_SYS_RO_APP} \
--with-ro-packages-dir=%{TZ_SYS_RO_PACKAGES} \
--enable-remote-input
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}%{_tmpfilesdir}
install -m 0644 %SOURCE100 %{buildroot}%{_tmpfilesdir}/%{name}.conf
mkdir -p %{buildroot}/%{TZ_SYS_ETC}/dump.d/module.d
cp -af ism/dump/isf_log_dump.sh %{buildroot}/%{TZ_SYS_ETC}/dump.d/module.d
mkdir -p %{buildroot}/etc/scim/conf
mkdir -p %{buildroot}/usr/share/upgrade/scripts/
mkdir -p %{buildroot}%{_prefix}/lib/systemd/system
install -m 0644 %SOURCE200 %{buildroot}%{_unitdir}/engine-loader.service
mkdir -p %{buildroot}%{_datadir}/dbus-1/system-services
install -m 0644 %SOURCE300 %{buildroot}%{_datadir}/dbus-1/system-services/org.tizen.engine-loader.service
mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
install -m 0644 %SOURCE400 %{buildroot}%{_sysconfdir}/dbus-1/system.d/engine-loader.conf
%find_lang scim
cat scim.lang > isf.lang
%post
/sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f isf.lang
%manifest %{name}.manifest
%defattr(-,root,root,-)
%dir /etc/scim/conf
%attr(644,root,root) %{_sysconfdir}/profile.d/isf.sh
%{_sysconfdir}/scim/global
%{_sysconfdir}/scim/config
%{_datadir}/scim/icons/*
%{_bindir}/isf-demo-efl
%{_bindir}/isf-panel-efl
%attr(0755,ui_fw,ui_fw) %{_bindir}/ise-engine-loader
%attr(0644,root,root) %{_unitdir}/engine-loader.service
%attr(0644,root,root) %{_datadir}/dbus-1/system-services/org.tizen.engine-loader.service
%config %{_sysconfdir}/dbus-1/system.d/engine-loader.conf
%{_libdir}/ecore_imf/modules/*/*/*.so
%{_libdir}/scim-1.0/1.4.0/IMEngine/socket.so
%{_libdir}/scim-1.0/1.4.0/PanelAgent/*.so
%{_libdir}/scim-1.0/1.4.0/Config/simple.so
%{_libdir}/scim-1.0/1.4.0/Config/socket.so
%{_libdir}/scim-1.0/1.4.0/FrontEnd/*.so
%{_libdir}/scim-1.0/scim-helper-launcher
%{_libdir}/libscim-*.so.*
%{_libdir}/libisf-control.so.*
%{_libdir}/libscim_imengine.so.*
%{TZ_SYS_RO_ETC}/package-manager/parserlib/category/libimeparser.so
%license COPYING
%{TZ_SYS_ETC}/dump.d/module.d/*
%{_tmpfilesdir}/%{name}.conf
%files devel
%defattr(-,root,root,-)
%{_includedir}/scim-1.0/*
%{_libdir}/libscim-*.so
%{_includedir}/isf-control/*
%{_includedir}/scim_imengine/*
%{_libdir}/libisf-control.so
%{_libdir}/libscim_imengine.so
%{_libdir}/pkgconfig/isf.pc
%{_libdir}/pkgconfig/scim.pc
%{_libdir}/pkgconfig/isf-control.pc
%post -n org.tizen.isf-kbd-mode-changer
mkdir -p %{TZ_SYS_RO_APP}/org.tizen.isf-kbd-mode-changer
%files -n org.tizen.isf-kbd-mode-changer
%manifest org.tizen.isf-kbd-mode-changer.manifest
%license COPYING
%{TZ_SYS_RO_PACKAGES}/org.tizen.isf-kbd-mode-changer.xml
%{APP_PREFIX}/*
|