-
Notifications
You must be signed in to change notification settings - Fork 0
/
scim.spec.in
372 lines (305 loc) · 10.5 KB
/
scim.spec.in
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
%define nam @PACKAGE@
%define ver @VERSION@
%define rel 1
%define build_config_socket @SCIM_BUILD_CONFIG_SOCKET@
%define build_config_simple @SCIM_BUILD_CONFIG_SIMPLE@
%define build_frontend_x11 @SCIM_BUILD_FRONTEND_X11@
%define build_frontend_socket @SCIM_BUILD_FRONTEND_SOCKET@
%define build_imengine_rawcode @SCIM_BUILD_IMENGINE_RAWCODE@
%define build_imengine_socket @SCIM_BUILD_IMENGINE_SOCKET@
%define build_gtk2_immodule @SCIM_BUILD_GTK2_IMMODULE@
%define build_scim_setup @SCIM_BUILD_SCIM_SETUP@
%define build_panel_gtk @SCIM_BUILD_PANEL_GTK@
%define build_gtk_utils @SCIM_BUILD_GTK_UTILS@
%define build_x11_utils @SCIM_BUILD_X11_UTILS@
%define build_filter_sctc @SCIM_BUILD_FILTER_SCTC@
# Something's not quite right with libtool....
%define __libtoolize echo
Summary: Smart Chinese/Common Input Method platform
Name: %{nam}
Version: %{ver}
Release: %{rel}
License: LGPL
Group: System Environment/Libraries
URL: http://scim.freedesktop.org
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Source0: %{name}-%{version}.tar.gz
#NoSource: 0
PreReq: /sbin/ldconfig, /bin/sh
%if %{build_gtk_utils}
Requires: glib2 >= 2.0.0
BuildRequires: glib2-devel >= 2.0.0
Requires: gtk2 >= @GTK_VERSION@
BuildRequires: gtk2-devel >= @GTK_VERSION@
Requires: pango >= 1.0.0
BuildRequires: pango-devel >= 1.0.0
%endif
%if %{build_x11_utils}
Requires: XFree86-libs >= 4.1.0
BuildRequires: XFree86-devel >= 4.1.0
%endif
BuildRequires: pkgconfig >= 0.12
%description
SCIM is a developing platform to significant reduce the difficulty of
input method development.
%package devel
Summary: Smart Chinese/Common Input Method platform
Group: Development/Libraries
Requires: %{name} = %{version}
Requires: pkgconfig >= 0.12
%description devel
The scim-devel package includes the static libraries and header files
for the scim package.
Install scim-devel if you want to develop programs which will use
scim.
#--------------------------------------------------
%prep
%setup -n %{name}-%{version}
%build
CFLAGS="-O3" CXXFLAGS="-O3" \
%configure \
%if ! %{build_config_socket}
--disable-config-socket \
%endif
%if ! %{build_config_simple}
--disable-config-simple \
%endif
%if ! %{build_frontend_x11}
--disable-frontend-x11 \
%endif
%if ! %{build_frontend_socket}
--disable-frontend-socket \
%endif
%if ! %{build_imengine_rawcode}
--disable-im-rawcode \
%endif
%if ! %{build_imengine_socket}
--disable-im-socket \
%endif
%if ! %{build_filter_sctc}
--disable-filter-sctc \
%endif
%if ! %{build_gtk2_immodule}
--disable-gtk2-immodule \
%endif
%if ! %{build_scim_setup}
-disable-setup-ui \
%endif
make
%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
make DESTDIR=${RPM_BUILD_ROOT} install
mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}/scim@SCIM_EPOCH@/{Config,FrontEnd,IMEngine,SetupUI,Helper,Filter}
rm -f ${RPM_BUILD_ROOT}/%{_libdir}/scim@SCIM_EPOCH@/*/*/*.{a,la}
rm -f ${RPM_BUILD_ROOT}/@GTK_LIBDIR@/gtk-2.0/immodules/im-scim.{a,la}
# install user manual
mkdir -p docs/dist/manual/zh_CN/figures/
cp -a docs/manual/zh_CN/user-manual.{html,xml} docs/dist/manual/zh_CN/
cp -a docs/manual/zh_CN/figures/*.png docs/dist/manual/zh_CN/figures/
%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
%if %{build_gtk2_immodule}
gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules
%endif
%postun
/sbin/ldconfig
%if %{build_gtk2_immodule}
gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules
%endif
%files
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README ChangeLog TODO
%doc docs/dist/manual/zh_CN
%dir %{_sysconfdir}/scim
%dir %{_libdir}/scim@SCIM_EPOCH@/*/FrontEnd
%dir %{_libdir}/scim@SCIM_EPOCH@/*/IMEngine
%dir %{_libdir}/scim@SCIM_EPOCH@/*/Config
%dir %{_libdir}/scim@SCIM_EPOCH@/*/SetupUI
%dir %{_libdir}/scim@SCIM_EPOCH@/*/Helper
%dir %{_libdir}/scim@SCIM_EPOCH@/*/Filter
%dir %{_libdir}/scim@SCIM_EPOCH@/Config
%dir %{_libdir}/scim@SCIM_EPOCH@/FrontEnd
%dir %{_libdir}/scim@SCIM_EPOCH@/IMEngine
%dir %{_libdir}/scim@SCIM_EPOCH@/SetupUI
%dir %{_libdir}/scim@SCIM_EPOCH@/Helper
%dir %{_libdir}/scim@SCIM_EPOCH@/Filter
%dir %{_datadir}/scim
%dir %{_datadir}/scim/icons
%config %{_sysconfdir}/scim/global
%{_bindir}/scim
%{_bindir}/scim-config-agent
%{_libdir}/libscim*.so.*
%{_libdir}/scim@SCIM_EPOCH@/scim-launcher
%{_libdir}/scim@SCIM_EPOCH@/scim-helper-launcher
%{_libdir}/scim@SCIM_EPOCH@/scim-helper-manager
%{_datadir}/locale/*/LC_MESSAGES/scim.mo
%{_datadir}/scim/icons/keyboard.png
%{_datadir}/scim/icons/up.png
%{_datadir}/scim/icons/down.png
%{_datadir}/scim/icons/left.png
%{_datadir}/scim/icons/right.png
%{_datadir}/scim/icons/full-letter.png
%{_datadir}/scim/icons/half-letter.png
%{_datadir}/scim/icons/full-punct.png
%{_datadir}/scim/icons/half-punct.png
%{_datadir}/scim/icons/help.png
%{_datadir}/scim/icons/pin-up.png
%{_datadir}/scim/icons/pin-down.png
%{_datadir}/scim/icons/setup.png
%{_datadir}/scim/icons/trademark.png
%{_datadir}/scim/icons/menu.png
%if %{build_scim_setup}
%{_bindir}/scim-setup
%{_datadir}/applications/scim-setup.desktop
%{_datadir}/control-center-2.0/capplets/scim-setup.desktop
%{_datadir}/pixmaps/scim-setup.png
%{_libdir}/scim@SCIM_EPOCH@/*/Helper/setup.so
%{_libdir}/scim@SCIM_EPOCH@/*/SetupUI/aaa-frontend-setup.so
%{_libdir}/scim@SCIM_EPOCH@/*/SetupUI/aaa-imengine-setup.so
%endif
%if %{build_panel_gtk}
%{_libdir}/scim@SCIM_EPOCH@/scim-panel-gtk
%if %{build_scim_setup}
%{_libdir}/scim@SCIM_EPOCH@/*/SetupUI/panel-gtk-setup.so
%endif
%endif
%if %{build_frontend_x11}
%{_libdir}/scim@SCIM_EPOCH@/*/FrontEnd/x11.so
%endif
%if %{build_imengine_rawcode}
%{_libdir}/scim@SCIM_EPOCH@/*/IMEngine/rawcode.so
%{_datadir}/scim/icons/rawcode.png
%endif
%if %{build_filter_sctc}
%{_libdir}/scim@SCIM_EPOCH@/*/Filter/sctc.so
%{_datadir}/scim/icons/sctc.png
%{_datadir}/scim/icons/sctc-sc-to-tc.png
%{_datadir}/scim/icons/sctc-tc-to-sc.png
%endif
%if %{build_config_simple}
%config %{_sysconfdir}/scim/config
%{_libdir}/scim@SCIM_EPOCH@/*/Config/simple.so
%endif
%if %{build_imengine_socket}
%{_libdir}/scim@SCIM_EPOCH@/*/IMEngine/socket.so
%endif
%if %{build_frontend_socket}
%{_libdir}/scim@SCIM_EPOCH@/*/FrontEnd/socket.so
%endif
%if %{build_config_socket}
%{_libdir}/scim@SCIM_EPOCH@/*/Config/socket.so
%endif
%if %{build_gtk2_immodule}
@GTK_LIBDIR@/gtk-2.0/immodules/im-scim.so
%endif
%files devel
%defattr(-, root, root)
%doc docs/html
%doc docs/developers
%{_libdir}/libscim*.so
%{_libdir}/lib*.a
%{_libdir}/lib*.la
%{_libdir}/pkgconfig/*.pc
%{_includedir}/scim@SCIM_EPOCH@
#--------------------------------------------------
%changelog
* Sun Jan 9 2005 James Su <suzhe@tsinghua.org.cn>
- Remove GConf Config module.
* Wed Jan 5 2005 James Su <suzhe@tsinghua.org.cn>
- Remove table IMEngine.
* Fri Aug 6 2004 James Su <suzhe@tsinghua.org.cn>
- Move scim-launcher and scim-panel-gtk to /usr/lib/scim-1.0.
* Sun Jun 20 2004 James Su <suzhe@tsinghua.org.cn>
- Merge all things into one package.
* Sat Jun 19 2004 James Su <suzhe@tsinghua.org.cn>
- Added /usr/libexec/scim-launcher.
- Remove setup module for SocketFrontEnd and SocketIMEngine.
* Mon Mar 8 2004 James Su <suzhe@turbolinux.com.cn>
- Added scim-config-agent.
* Thu Oct 30 2003 James Su <suzhe@turbolinux.com.cn>
- Added Simplified Chinese User Manual.
* Wed Sep 03 2003 James Su <suzhe@turbolinux.com.cn>
- cleanup spec.
* Tue Sep 02 2003 James Su <suzhe@turbolinux.com.cn>
- upto 0.8.0
* Tue Jul 29 2003 James Su <suzhe@turbolinux.com.cn>
- updated to include scim-panel-gtk.
* Thu Jun 19 2003 James Su <suzhe@turbolinux.com.cn>
- updated to include scim-setup and its modules.
* Thu Apr 3 2003 James Su <suzhe@turbolinux.com.cn>
- added suite package, which includes all necessary components of SCIM.
* Tue Mar 25 2003 James Su <suzhe@turbolinux.com.cn>
- updated to v0.4.0
* Wed Feb 26 2003 James Su <suzhe@turbolinux.com.cn>
- implemented dynamic adjust feature for generic table module.
- fixed key handling bug in generic table module.
* Mon Feb 10 2003 James Su <suzhe@turbolinux.com.cn>
- Replaced highlight_start and highlight_end in scim_server
and scim_frontend with AttributeList (scim_attributes.h)
- Moved icons/* to data/icons and gtkstringview.* to
utils/
* Thu Jan 2 2003 James Su <suzhe@turbolinux.com.cn>
- updated configure.ac and Makefile.am
- ready to release 0.3.0
* Tue Nov 12 2002 James Su <suzhe@turbolinux.com.cn>
- merged signal system from libinti.
- implemented namespace scim.
- implemented referenced object.
- version 0.3.0
* Tue Nov 05 2002 James Su <suzhe@turbolinux.com.cn>
- minor fixes for table IM module.
* Mon Nov 04 2002 James Su <suzhe@turbolinux.com.cn>
- More IMdkit memory leak fixes.
- Table input method bugfixes.
- version 0.2.2
* Fri Nov 01 2002 James Su <suzhe@turbolinux.com.cn>
- improved table input method.
- actually fixed the memleaks within IMdkit.
- pumped the version to 0.2.1
* Thu Oct 31 2002 James Su <suzhe@turbolinux.com.cn>
- fixed some memory leaks in IMdkit
- reduced memory usage.
- upgraded to libtool-1.4.3
* Tue Oct 29 2002 James Su <suzhe@turbolinux.com.cn>
- finished Generic Table input server module.
- fixed several bugs in scim-lib.
* Thu Oct 10 2002 James Su <suzhe@turbolinux.com.cn>
- used gettext to support i18n message.
- added release info to lib name.
* Mon Sep 30 2002 James Su <suzhe@turbolinux.com.cn>
- version 0.1.4
- added Embedded Lookup Table style into X11 FrontEnd.
- use wchar_t instead of unsigned long if __STDC_ISO_10646__ defined.
* Sun Sep 22 2002 James Su <suzhe@turbolinux.com.cn>
- version 0.1.3
- config button of X11 FrontEnd was disabled.
* Fri Sep 6 2002 James Su <suzhe@turbolinux.com.cn>
- simplified the utilities and lookup table interface.
* Wed Aug 21 2002 James Su <suzhe@turbolinux.com.cn>
- version 0.1.2
- added configuration options to disable modules.
- enhanced X11 FrontEnd.
* Sun Aug 11 2002 James Su <suzhe@turbolinux.com.cn>
- version 0.1.1
- X11 FrontEnd was enhanced.
* Sat Aug 10 2002 James Su <suzhe@turbolinux.com.cn>
- version 0.1.0
- many bugfixes.
- Help window of X11 FrontEnd was implemented.
- scim can exit cleanly.
* Fri Aug 2 2002 James Su <suzhe@turbolinux.com.cn>
- SCIM 0.0.13.
- Minor bugfixes.
* Mon Jul 29 2002 James Su <suzhe@turbolinux.com.cn>
- SCIM 0.0.12.
- Minor bugfixes.
* Sun Jul 28 2002 James Su <suzhe@turbolinux.com.cn>
- SCIM 0.0.11.
- Minor bugfixes.
* Sun Jul 21 2002 James Su <suzhe@turbolinux.com.cn>
- SCIM 0.0.10.
- Added Simple Config module.
* Sat Jun 22 2002 James Su <suzhe@turbolinux.com.cn>
- first public release of SCIM.