Merge branch 'tizen_5.5' into tizen
[platform/core/uifw/isf.git] / scim.spec.in
1 %define nam             @PACKAGE@
2 %define ver             @VERSION@
3 %define rel             1
4 %define build_config_socket     @SCIM_BUILD_CONFIG_SOCKET@
5 %define build_config_simple     @SCIM_BUILD_CONFIG_SIMPLE@
6 %define build_frontend_x11      @SCIM_BUILD_FRONTEND_X11@
7 %define build_frontend_socket   @SCIM_BUILD_FRONTEND_SOCKET@
8 %define build_imengine_rawcode  @SCIM_BUILD_IMENGINE_RAWCODE@
9 %define build_imengine_socket   @SCIM_BUILD_IMENGINE_SOCKET@
10 %define build_gtk2_immodule     @SCIM_BUILD_GTK2_IMMODULE@
11 %define build_scim_setup        @SCIM_BUILD_SCIM_SETUP@
12 %define build_panel_gtk         @SCIM_BUILD_PANEL_GTK@
13 %define build_gtk_utils         @SCIM_BUILD_GTK_UTILS@
14 %define build_x11_utils         @SCIM_BUILD_X11_UTILS@
15 %define build_filter_sctc       @SCIM_BUILD_FILTER_SCTC@
16
17 # Something's not quite right with libtool....
18 %define __libtoolize    echo
19
20 Summary:        Smart Chinese/Common Input Method platform
21 Name:           %{nam}
22 Version:        %{ver}
23 Release:        %{rel}
24 License:        LGPL
25 Group:          System Environment/Libraries
26 URL:            http://scim.freedesktop.org
27 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
28
29 Source0:        %{name}-%{version}.tar.gz
30 #NoSource: 0
31
32 PreReq:         /sbin/ldconfig, /bin/sh
33
34 %if %{build_gtk_utils}
35 Requires:       glib2 >= 2.0.0
36 BuildRequires:  glib2-devel >= 2.0.0
37 Requires:       gtk2 >= @GTK_VERSION@
38 BuildRequires:  gtk2-devel >= @GTK_VERSION@
39 Requires:       pango >= 1.0.0
40 BuildRequires:  pango-devel >= 1.0.0
41 %endif
42
43 %if %{build_x11_utils}
44 Requires:       XFree86-libs >= 4.1.0
45 BuildRequires:  XFree86-devel >= 4.1.0
46 %endif
47
48 BuildRequires:  pkgconfig >= 0.12
49
50 %description
51 SCIM is a developing platform to significant reduce the difficulty of 
52 input method development. 
53
54 %package devel
55 Summary:        Smart Chinese/Common Input Method platform
56 Group:          Development/Libraries
57 Requires:       %{name} = %{version}
58 Requires:       pkgconfig >= 0.12
59
60 %description devel
61 The scim-devel package includes the static libraries and header files
62 for the scim package.
63
64 Install scim-devel if you want to develop programs which will use
65 scim.
66
67 #--------------------------------------------------
68
69 %prep
70
71 %setup -n %{name}-%{version}
72
73 %build
74 CFLAGS="-O3" CXXFLAGS="-O3" \
75 %configure \
76 %if ! %{build_config_socket}
77   --disable-config-socket \
78 %endif
79 %if ! %{build_config_simple}
80   --disable-config-simple \
81 %endif
82 %if ! %{build_frontend_x11}
83   --disable-frontend-x11 \
84 %endif
85 %if ! %{build_frontend_socket}
86   --disable-frontend-socket \
87 %endif
88 %if ! %{build_imengine_rawcode}
89   --disable-im-rawcode \
90 %endif
91 %if ! %{build_imengine_socket}
92   --disable-im-socket \
93 %endif
94 %if ! %{build_filter_sctc}
95   --disable-filter-sctc \
96 %endif
97 %if ! %{build_gtk2_immodule}
98   --disable-gtk2-immodule \
99 %endif
100 %if ! %{build_scim_setup}
101   -disable-setup-ui \
102 %endif
103
104
105 make 
106
107 %install
108 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
109
110 make DESTDIR=${RPM_BUILD_ROOT} install
111
112 mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}/scim@SCIM_EPOCH@/{Config,FrontEnd,IMEngine,SetupUI,Helper,Filter}
113
114 rm -f ${RPM_BUILD_ROOT}/%{_libdir}/scim@SCIM_EPOCH@/*/*/*.{a,la}
115 rm -f ${RPM_BUILD_ROOT}/@GTK_LIBDIR@/gtk-2.0/immodules/im-scim.{a,la}
116
117 # install user manual
118 mkdir -p docs/dist/manual/zh_CN/figures/
119
120 cp -a docs/manual/zh_CN/user-manual.{html,xml} docs/dist/manual/zh_CN/
121 cp -a docs/manual/zh_CN/figures/*.png docs/dist/manual/zh_CN/figures/
122
123 %clean
124 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
125
126 %post
127 /sbin/ldconfig
128
129 %if %{build_gtk2_immodule}
130 gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules
131 %endif
132
133 %postun
134 /sbin/ldconfig
135
136 %if %{build_gtk2_immodule}
137 gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules
138 %endif
139
140
141 %files
142 %defattr(-, root, root)
143 %doc AUTHORS COPYING NEWS README ChangeLog TODO
144 %doc docs/dist/manual/zh_CN
145 %dir %{_sysconfdir}/scim
146 %dir %{_libdir}/scim@SCIM_EPOCH@/*/FrontEnd
147 %dir %{_libdir}/scim@SCIM_EPOCH@/*/IMEngine
148 %dir %{_libdir}/scim@SCIM_EPOCH@/*/Config
149 %dir %{_libdir}/scim@SCIM_EPOCH@/*/SetupUI
150 %dir %{_libdir}/scim@SCIM_EPOCH@/*/Helper
151 %dir %{_libdir}/scim@SCIM_EPOCH@/*/Filter
152 %dir %{_libdir}/scim@SCIM_EPOCH@/Config
153 %dir %{_libdir}/scim@SCIM_EPOCH@/FrontEnd
154 %dir %{_libdir}/scim@SCIM_EPOCH@/IMEngine
155 %dir %{_libdir}/scim@SCIM_EPOCH@/SetupUI
156 %dir %{_libdir}/scim@SCIM_EPOCH@/Helper
157 %dir %{_libdir}/scim@SCIM_EPOCH@/Filter
158 %dir %{_datadir}/scim
159 %dir %{_datadir}/scim/icons
160 %config %{_sysconfdir}/scim/global
161 %{_bindir}/scim
162 %{_bindir}/scim-config-agent
163 %{_libdir}/libscim*.so.*
164 %{_libdir}/scim@SCIM_EPOCH@/scim-launcher
165 %{_libdir}/scim@SCIM_EPOCH@/scim-helper-launcher
166 %{_libdir}/scim@SCIM_EPOCH@/scim-helper-manager
167 %{_datadir}/locale/*/LC_MESSAGES/scim.mo
168 %{_datadir}/scim/icons/keyboard.png
169 %{_datadir}/scim/icons/up.png
170 %{_datadir}/scim/icons/down.png
171 %{_datadir}/scim/icons/left.png
172 %{_datadir}/scim/icons/right.png
173 %{_datadir}/scim/icons/full-letter.png
174 %{_datadir}/scim/icons/half-letter.png
175 %{_datadir}/scim/icons/full-punct.png
176 %{_datadir}/scim/icons/half-punct.png
177 %{_datadir}/scim/icons/help.png
178 %{_datadir}/scim/icons/pin-up.png
179 %{_datadir}/scim/icons/pin-down.png
180 %{_datadir}/scim/icons/setup.png
181 %{_datadir}/scim/icons/trademark.png
182 %{_datadir}/scim/icons/menu.png
183 %if %{build_scim_setup}
184 %{_bindir}/scim-setup
185 %{_datadir}/applications/scim-setup.desktop
186 %{_datadir}/control-center-2.0/capplets/scim-setup.desktop
187 %{_datadir}/pixmaps/scim-setup.png
188 %{_libdir}/scim@SCIM_EPOCH@/*/Helper/setup.so
189 %{_libdir}/scim@SCIM_EPOCH@/*/SetupUI/aaa-frontend-setup.so
190 %{_libdir}/scim@SCIM_EPOCH@/*/SetupUI/aaa-imengine-setup.so
191 %endif
192 %if %{build_panel_gtk}
193 %{_libdir}/scim@SCIM_EPOCH@/scim-panel-gtk
194 %if %{build_scim_setup}
195 %{_libdir}/scim@SCIM_EPOCH@/*/SetupUI/panel-gtk-setup.so
196 %endif
197 %endif
198 %if %{build_frontend_x11}
199 %{_libdir}/scim@SCIM_EPOCH@/*/FrontEnd/x11.so
200 %endif
201 %if %{build_imengine_rawcode}
202 %{_libdir}/scim@SCIM_EPOCH@/*/IMEngine/rawcode.so
203 %{_datadir}/scim/icons/rawcode.png
204 %endif
205 %if %{build_filter_sctc}
206 %{_libdir}/scim@SCIM_EPOCH@/*/Filter/sctc.so
207 %{_datadir}/scim/icons/sctc.png
208 %{_datadir}/scim/icons/sctc-sc-to-tc.png
209 %{_datadir}/scim/icons/sctc-tc-to-sc.png
210 %endif
211 %if %{build_config_simple}
212 %config %{_sysconfdir}/scim/config
213 %{_libdir}/scim@SCIM_EPOCH@/*/Config/simple.so
214 %endif
215 %if %{build_imengine_socket}
216 %{_libdir}/scim@SCIM_EPOCH@/*/IMEngine/socket.so
217 %endif
218 %if %{build_frontend_socket}
219 %{_libdir}/scim@SCIM_EPOCH@/*/FrontEnd/socket.so
220 %endif
221 %if %{build_config_socket}
222 %{_libdir}/scim@SCIM_EPOCH@/*/Config/socket.so
223 %endif
224 %if %{build_gtk2_immodule}
225 @GTK_LIBDIR@/gtk-2.0/immodules/im-scim.so
226 %endif
227
228 %files devel
229 %defattr(-, root, root)
230 %doc docs/html
231 %doc docs/developers
232 %{_libdir}/libscim*.so
233 %{_libdir}/lib*.a
234 %{_libdir}/lib*.la
235 %{_libdir}/pkgconfig/*.pc
236 %{_includedir}/scim@SCIM_EPOCH@
237
238 #--------------------------------------------------
239
240 %changelog
241 * Sun Jan 9 2005 James Su <suzhe@tsinghua.org.cn>
242 - Remove GConf Config module.
243
244 * Wed Jan 5 2005 James Su <suzhe@tsinghua.org.cn>
245 - Remove table IMEngine.
246
247 * Fri Aug 6 2004 James Su <suzhe@tsinghua.org.cn>
248 - Move scim-launcher and scim-panel-gtk to /usr/lib/scim-1.0.
249
250 * Sun Jun 20 2004  James Su <suzhe@tsinghua.org.cn>
251 - Merge all things into one package.
252
253 * Sat Jun 19 2004  James Su <suzhe@tsinghua.org.cn>
254 - Added /usr/libexec/scim-launcher.
255 - Remove setup module for SocketFrontEnd and SocketIMEngine.
256
257 * Mon Mar 8 2004  James Su <suzhe@turbolinux.com.cn>
258 - Added scim-config-agent.
259
260 * Thu Oct 30 2003 James Su <suzhe@turbolinux.com.cn>
261 - Added Simplified Chinese User Manual.
262
263 * Wed Sep 03 2003 James Su <suzhe@turbolinux.com.cn>
264 - cleanup spec.
265
266 * Tue Sep 02 2003 James Su <suzhe@turbolinux.com.cn>
267 - upto 0.8.0
268
269 * Tue Jul 29 2003 James Su <suzhe@turbolinux.com.cn>
270 - updated to include scim-panel-gtk.
271
272 * Thu Jun 19 2003 James Su <suzhe@turbolinux.com.cn>
273 - updated to include scim-setup and its modules.
274
275 * Thu Apr 3 2003 James Su <suzhe@turbolinux.com.cn>
276 - added suite package, which includes all necessary components of SCIM.
277
278 * Tue Mar 25 2003 James Su <suzhe@turbolinux.com.cn>
279 - updated to v0.4.0
280
281 * Wed Feb 26 2003 James Su <suzhe@turbolinux.com.cn>
282 - implemented dynamic adjust feature for generic table module.
283 - fixed key handling bug in generic table module.
284
285 * Mon Feb 10 2003 James Su <suzhe@turbolinux.com.cn>
286 - Replaced highlight_start and highlight_end in scim_server
287   and scim_frontend with AttributeList (scim_attributes.h)
288 - Moved icons/* to data/icons and gtkstringview.* to
289   utils/
290
291 * Thu Jan 2 2003 James Su <suzhe@turbolinux.com.cn>
292 - updated configure.ac and Makefile.am
293 - ready to release 0.3.0
294
295 * Tue Nov 12 2002 James Su <suzhe@turbolinux.com.cn>
296 - merged signal system from libinti.
297 - implemented namespace scim.
298 - implemented referenced object.
299 - version 0.3.0
300
301 * Tue Nov 05 2002 James Su <suzhe@turbolinux.com.cn>
302 - minor fixes for table IM module.
303
304 * Mon Nov 04 2002 James Su <suzhe@turbolinux.com.cn>
305 - More IMdkit memory leak fixes.
306 - Table input method bugfixes.
307 - version 0.2.2
308
309 * Fri Nov 01 2002 James Su <suzhe@turbolinux.com.cn>
310 - improved table input method.
311 - actually fixed the memleaks within IMdkit.
312 - pumped the version to 0.2.1
313
314 * Thu Oct 31 2002 James Su <suzhe@turbolinux.com.cn>
315 - fixed some memory leaks in IMdkit
316 - reduced memory usage.
317 - upgraded to libtool-1.4.3
318
319 * Tue Oct 29 2002 James Su <suzhe@turbolinux.com.cn>
320 - finished Generic Table input server module.
321 - fixed several bugs in scim-lib.
322
323 * Thu Oct 10 2002 James Su <suzhe@turbolinux.com.cn>
324 - used gettext to support i18n message.
325 - added release info to lib name.
326
327 * Mon Sep 30 2002 James Su <suzhe@turbolinux.com.cn>
328 - version 0.1.4
329 - added Embedded Lookup Table style into X11 FrontEnd.
330 - use wchar_t instead of unsigned long if __STDC_ISO_10646__ defined.
331
332 * Sun Sep 22 2002 James Su <suzhe@turbolinux.com.cn>
333 - version 0.1.3
334 - config button of X11 FrontEnd was disabled.
335
336 * Fri Sep 6 2002 James Su <suzhe@turbolinux.com.cn>
337 - simplified the utilities and lookup table interface.
338
339 * Wed Aug 21 2002 James Su <suzhe@turbolinux.com.cn>
340 - version 0.1.2
341 - added configuration options to disable modules.
342 - enhanced X11 FrontEnd.
343
344 * Sun Aug 11 2002 James Su <suzhe@turbolinux.com.cn>
345 - version 0.1.1
346 - X11 FrontEnd was enhanced.
347
348 * Sat Aug 10 2002 James Su <suzhe@turbolinux.com.cn>
349 - version 0.1.0
350 - many bugfixes.
351 - Help window of X11 FrontEnd was implemented.
352 - scim can exit cleanly.
353
354 * Fri Aug 2 2002 James Su <suzhe@turbolinux.com.cn>
355 - SCIM 0.0.13.
356 - Minor bugfixes.
357
358 * Mon Jul 29 2002 James Su <suzhe@turbolinux.com.cn>
359 - SCIM 0.0.12.
360 - Minor bugfixes.
361
362 * Sun Jul 28 2002 James Su <suzhe@turbolinux.com.cn>
363 - SCIM 0.0.11.
364 - Minor bugfixes.
365
366 * Sun Jul 21 2002 James Su <suzhe@turbolinux.com.cn>
367 - SCIM 0.0.10.
368 - Added Simple Config module.
369
370 * Sat Jun 22 2002 James Su <suzhe@turbolinux.com.cn>
371 - first public release of SCIM.
372