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@
17 # Something's not quite right with libtool....
18 %define __libtoolize echo
20 Summary: Smart Chinese/Common Input Method platform
25 Group: System Environment/Libraries
26 URL: http://scim.freedesktop.org
27 BuildRoot: %{_tmppath}/%{name}-%{version}-root
29 Source0: %{name}-%{version}.tar.gz
32 PreReq: /sbin/ldconfig, /bin/sh
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
43 %if %{build_x11_utils}
44 Requires: XFree86-libs >= 4.1.0
45 BuildRequires: XFree86-devel >= 4.1.0
48 BuildRequires: pkgconfig >= 0.12
51 SCIM is a developing platform to significant reduce the difficulty of
52 input method development.
55 Summary: Smart Chinese/Common Input Method platform
56 Group: Development/Libraries
57 Requires: %{name} = %{version}
58 Requires: pkgconfig >= 0.12
61 The scim-devel package includes the static libraries and header files
64 Install scim-devel if you want to develop programs which will use
67 #--------------------------------------------------
71 %setup -n %{name}-%{version}
74 CFLAGS="-O3" CXXFLAGS="-O3" \
76 %if ! %{build_config_socket}
77 --disable-config-socket \
79 %if ! %{build_config_simple}
80 --disable-config-simple \
82 %if ! %{build_frontend_x11}
83 --disable-frontend-x11 \
85 %if ! %{build_frontend_socket}
86 --disable-frontend-socket \
88 %if ! %{build_imengine_rawcode}
89 --disable-im-rawcode \
91 %if ! %{build_imengine_socket}
94 %if ! %{build_filter_sctc}
95 --disable-filter-sctc \
97 %if ! %{build_gtk2_immodule}
98 --disable-gtk2-immodule \
100 %if ! %{build_scim_setup}
108 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
110 make DESTDIR=${RPM_BUILD_ROOT} install
112 mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}/scim@SCIM_EPOCH@/{Config,FrontEnd,IMEngine,SetupUI,Helper,Filter}
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}
117 # install user manual
118 mkdir -p docs/dist/manual/zh_CN/figures/
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/
124 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
129 %if %{build_gtk2_immodule}
130 gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules
136 %if %{build_gtk2_immodule}
137 gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules
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
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
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
198 %if %{build_frontend_x11}
199 %{_libdir}/scim@SCIM_EPOCH@/*/FrontEnd/x11.so
201 %if %{build_imengine_rawcode}
202 %{_libdir}/scim@SCIM_EPOCH@/*/IMEngine/rawcode.so
203 %{_datadir}/scim/icons/rawcode.png
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
211 %if %{build_config_simple}
212 %config %{_sysconfdir}/scim/config
213 %{_libdir}/scim@SCIM_EPOCH@/*/Config/simple.so
215 %if %{build_imengine_socket}
216 %{_libdir}/scim@SCIM_EPOCH@/*/IMEngine/socket.so
218 %if %{build_frontend_socket}
219 %{_libdir}/scim@SCIM_EPOCH@/*/FrontEnd/socket.so
221 %if %{build_config_socket}
222 %{_libdir}/scim@SCIM_EPOCH@/*/Config/socket.so
224 %if %{build_gtk2_immodule}
225 @GTK_LIBDIR@/gtk-2.0/immodules/im-scim.so
229 %defattr(-, root, root)
232 %{_libdir}/libscim*.so
235 %{_libdir}/pkgconfig/*.pc
236 %{_includedir}/scim@SCIM_EPOCH@
238 #--------------------------------------------------
241 * Sun Jan 9 2005 James Su <suzhe@tsinghua.org.cn>
242 - Remove GConf Config module.
244 * Wed Jan 5 2005 James Su <suzhe@tsinghua.org.cn>
245 - Remove table IMEngine.
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.
250 * Sun Jun 20 2004 James Su <suzhe@tsinghua.org.cn>
251 - Merge all things into one package.
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.
257 * Mon Mar 8 2004 James Su <suzhe@turbolinux.com.cn>
258 - Added scim-config-agent.
260 * Thu Oct 30 2003 James Su <suzhe@turbolinux.com.cn>
261 - Added Simplified Chinese User Manual.
263 * Wed Sep 03 2003 James Su <suzhe@turbolinux.com.cn>
266 * Tue Sep 02 2003 James Su <suzhe@turbolinux.com.cn>
269 * Tue Jul 29 2003 James Su <suzhe@turbolinux.com.cn>
270 - updated to include scim-panel-gtk.
272 * Thu Jun 19 2003 James Su <suzhe@turbolinux.com.cn>
273 - updated to include scim-setup and its modules.
275 * Thu Apr 3 2003 James Su <suzhe@turbolinux.com.cn>
276 - added suite package, which includes all necessary components of SCIM.
278 * Tue Mar 25 2003 James Su <suzhe@turbolinux.com.cn>
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.
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
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
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.
301 * Tue Nov 05 2002 James Su <suzhe@turbolinux.com.cn>
302 - minor fixes for table IM module.
304 * Mon Nov 04 2002 James Su <suzhe@turbolinux.com.cn>
305 - More IMdkit memory leak fixes.
306 - Table input method bugfixes.
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
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
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.
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.
327 * Mon Sep 30 2002 James Su <suzhe@turbolinux.com.cn>
329 - added Embedded Lookup Table style into X11 FrontEnd.
330 - use wchar_t instead of unsigned long if __STDC_ISO_10646__ defined.
332 * Sun Sep 22 2002 James Su <suzhe@turbolinux.com.cn>
334 - config button of X11 FrontEnd was disabled.
336 * Fri Sep 6 2002 James Su <suzhe@turbolinux.com.cn>
337 - simplified the utilities and lookup table interface.
339 * Wed Aug 21 2002 James Su <suzhe@turbolinux.com.cn>
341 - added configuration options to disable modules.
342 - enhanced X11 FrontEnd.
344 * Sun Aug 11 2002 James Su <suzhe@turbolinux.com.cn>
346 - X11 FrontEnd was enhanced.
348 * Sat Aug 10 2002 James Su <suzhe@turbolinux.com.cn>
351 - Help window of X11 FrontEnd was implemented.
352 - scim can exit cleanly.
354 * Fri Aug 2 2002 James Su <suzhe@turbolinux.com.cn>
358 * Mon Jul 29 2002 James Su <suzhe@turbolinux.com.cn>
362 * Sun Jul 28 2002 James Su <suzhe@turbolinux.com.cn>
366 * Sun Jul 21 2002 James Su <suzhe@turbolinux.com.cn>
368 - Added Simple Config module.
370 * Sat Jun 22 2002 James Su <suzhe@turbolinux.com.cn>
371 - first public release of SCIM.