]>
Commit | Line | Data |
---|---|---|
e899826e | 1 | Summary: Multilingual input method library |
57784c95 | 2 | Summary(pl.UTF-8): Biblioteka obsługująca wejście w wielu językach |
e899826e | 3 | Name: uim |
26f033cf JR |
4 | Version: 1.8.3 |
5 | Release: 1 | |
e899826e | 6 | License: GPL or BSD |
7 | Group: Libraries | |
15d800b6 | 8 | Source0: http://uim.googlecode.com/files/%{name}-%{version}.tar.bz2 |
26f033cf | 9 | # Source0-md5: 918ce698765ea25b402a110b86b4d23c |
f2675bdf JR |
10 | Source1: %{name}.xinputd |
11 | Source2: %{name}-init.el | |
26f033cf | 12 | Patch0: %{name}-emacs-utf8.patch |
e631d9b0 | 13 | URL: http://uim.freedesktop.org/ |
f2675bdf JR |
14 | BuildRequires: Canna-devel |
15 | BuildRequires: Qt3Support-devel | |
15d800b6 | 16 | BuildRequires: anthy-devel >= 9100h-2 |
e899826e | 17 | BuildRequires: autoconf |
18 | BuildRequires: automake | |
f2675bdf JR |
19 | BuildRequires: automoc4 |
20 | BuildRequires: cmake | |
15d800b6 JR |
21 | BuildRequires: curl-devel |
22 | BuildRequires: eb-devel | |
23 | BuildRequires: expat-devel | |
24 | BuildRequires: gcc-objc | |
bfb51d08 | 25 | BuildRequires: gnome-panel-devel |
1f86603b | 26 | BuildRequires: gtk+2-devel >= 2:2.2.0 |
15d800b6 | 27 | BuildRequires: gtk+3-devel |
f2675bdf | 28 | BuildRequires: kde4-kdelibs-devel |
15d800b6 JR |
29 | BuildRequires: libedit-devel |
30 | BuildRequires: libffi-devel | |
cdf5177b | 31 | BuildRequires: libgcroots-devel |
e899826e | 32 | BuildRequires: libgnome-devel >= 2.4.0 |
33 | BuildRequires: libtool | |
15d800b6 JR |
34 | BuildRequires: m17n-lib-devel |
35 | BuildRequires: mana | |
36 | BuildRequires: openssl-devel | |
f2675bdf | 37 | BuildRequires: qt-devel |
15d800b6 JR |
38 | BuildRequires: qt4-qmake |
39 | BuildRequires: sqlite3-devel | |
cdf5177b JR |
40 | BuildRequires: xorg-lib-libX11-devel |
41 | BuildRequires: xorg-lib-libXau-devel | |
42 | BuildRequires: xorg-lib-libXdmcp-devel | |
43 | BuildRequires: xorg-lib-libXext-devel | |
44 | BuildRequires: xorg-lib-libXft-devel | |
45 | BuildRequires: xorg-lib-libXrender-devel | |
46 | BuildRequires: xorg-lib-libXt-devel | |
5e1c7cdb | 47 | Requires(post,postun): /sbin/ldconfig |
48 | Requires(post,postun): gtk+2 | |
e899826e | 49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
50 | ||
51 | %description | |
f2675bdf JR |
52 | Uim is a multilingual input method library. Uim aims to provide secure |
53 | and useful input methods for all languages. Currently, it can input to | |
54 | applications which support Gtk+'s immodule, Qt's immodule and XIM. | |
55 | ||
56 | This package provides the input method library, the XIM bridge and | |
57 | most of the input methods. | |
58 | ||
59 | For the Japanese input methods you need to install | |
60 | - uim-anthy for Anthy | |
61 | - uim-canna for Canna | |
62 | - uim-skk for SKK. | |
e899826e | 63 | |
acaba169 JR |
64 | %description -l pl.UTF-8 |
65 | Uim jest biblioteką obsługującą wejście w wielu językach. Celem | |
66 | projektu jest udostępnienie bezpiecznej i użytecznej metody dla | |
67 | wszystkich języków. | |
e899826e | 68 | |
69 | %package devel | |
70 | Summary: Header files for uim libraryi | |
57784c95 | 71 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki uim |
e899826e | 72 | Group: Development/Libraries |
e231434b | 73 | Requires: %{name} = %{version}-%{release} |
e899826e | 74 | |
75 | %description devel | |
76 | Header files for uim library. | |
77 | ||
acaba169 JR |
78 | %description devel -l pl.UTF-8 |
79 | Pliki nagłówkowe biblioteki uim. | |
e899826e | 80 | |
f2675bdf JR |
81 | %package gtk2 |
82 | Summary: GTK+2 support for Uim | |
83 | Group: X11/Applications | |
ce8c7195 | 84 | Requires: %{name} = %{version}-%{release} |
f2675bdf JR |
85 | # for update-gtk-immodules |
86 | Requires(post): gtk+2 >= 2.9.1-2 | |
87 | Requires(postun): gtk+2 | |
88 | ||
89 | %description gtk2 | |
90 | Uim is a multilingual input method library. Uim aims to provide secure | |
91 | and useful input methods for all languages. | |
92 | ||
93 | This package provides the Gtk IM module and helper program. | |
94 | ||
95 | %package gtk3 | |
96 | Summary: GTK+3 support for Uim | |
97 | Group: X11/Applications | |
ce8c7195 | 98 | Requires: %{name} = %{version}-%{release} |
f2675bdf JR |
99 | # for update-gtk-immodules |
100 | Requires(post): gtk+3 | |
101 | Requires(postun): gtk+3 | |
102 | ||
103 | %description gtk3 | |
104 | Uim is a multilingual input method library. Uim aims to provide secure | |
105 | and useful input methods for all languages. | |
106 | ||
107 | This package provides the Gtk IM module and helper program. | |
108 | ||
109 | %package gnome | |
110 | Summary: GNOME Applet for Uim | |
111 | Group: X11/Applications | |
ce8c7195 | 112 | Requires: %{name} = %{version}-%{release} |
f2675bdf JR |
113 | Requires: uim-gtk3 |
114 | ||
115 | %description gnome | |
116 | Uim is a multilingual input method library. Uim aims to provide secure | |
117 | and useful input methods for all languages. | |
118 | ||
119 | This package provides the GNOME panel applet. | |
120 | ||
121 | %package qt | |
122 | Summary: Qt4 support for Uim | |
123 | Group: X11/Applications | |
124 | ||
125 | %description qt | |
126 | Uim is a multilingual input method library. Uim aims to provide secure | |
127 | and useful input methods for all languages. | |
128 | ||
129 | This package provides the Qt4 IM module and helper programs. | |
130 | ||
131 | %package qt3 | |
132 | Summary: Qt3 support for Uim | |
133 | Group: X11/Applications | |
134 | Provides: %{name}-qt-common = %{version}-%{release} | |
135 | ||
136 | %description qt3 | |
137 | Uim is a multilingual input method library. Uim aims to provide secure | |
138 | and useful input methods for all languages. | |
139 | ||
140 | This package provides the Qt3 IM module and helper programs. | |
141 | ||
142 | %package kde | |
143 | Summary: KDE Applet for Uim | |
144 | Group: X11/Applications | |
ce8c7195 | 145 | Requires: %{name} = %{version}-%{release} |
f2675bdf JR |
146 | Requires: uim-qt |
147 | ||
148 | %description kde | |
149 | Uim is a multilingual input method library. Uim aims to provide secure | |
150 | and useful input methods for all languages. | |
151 | ||
152 | This package provides the KDE applet. | |
153 | ||
154 | %package -n emacs-uim | |
155 | Summary: Emacs support for Uim | |
156 | Group: Libraries | |
157 | Requires: emacs | |
158 | Requires: emacs-common-uim = %{version}-%{release} | |
159 | ||
160 | %description -n emacs-uim | |
161 | This package provides Emacs support. | |
162 | ||
163 | %package -n emacs-common-uim | |
164 | Summary: Common package for Emacsen support for Uim | |
165 | Group: Libraries | |
ce8c7195 | 166 | Requires: %{name} = %{version}-%{release} |
f2675bdf JR |
167 | |
168 | %description -n emacs-common-uim | |
169 | This package provides an utility to use Emacsen support for Uim. | |
170 | ||
171 | %package -n xemacs-uim | |
172 | Summary: XEmacs support for Uim | |
173 | Group: Libraries | |
174 | Requires: emacs-common-uim = %{version}-%{release} | |
175 | Requires: xemacs | |
176 | ||
177 | %description -n xemacs-uim | |
178 | This package provides XEmacs support. | |
179 | ||
180 | %package anthy | |
181 | Summary: Anthy support for Uim | |
182 | Group: Libraries | |
183 | Requires: anthy >= 9100h | |
ce8c7195 JR |
184 | Requires: %{name} = %{version}-%{release} |
185 | Requires(post): %{_bindir}/uim-module-manager | |
186 | Requires(postun): %{_bindir}/uim-module-manager | |
f2675bdf JR |
187 | |
188 | %description anthy | |
189 | This package provides support for Anthy, a Japanese input method. | |
190 | ||
191 | %package canna | |
192 | Summary: Canna support for Uim | |
193 | Group: Libraries | |
194 | Requires: Canna | |
ce8c7195 JR |
195 | Requires: %{name} = %{version}-%{release} |
196 | Requires(post): %{_bindir}/uim-module-manager | |
197 | Requires(postun): %{_bindir}/uim-module-manager | |
f2675bdf JR |
198 | |
199 | %description canna | |
200 | This package provides support for Canna, a Japanese input method. | |
201 | ||
202 | %package mana | |
203 | Summary: Mana support for Uim | |
204 | Group: Libraries | |
205 | Requires: mana | |
ce8c7195 JR |
206 | Requires: mana-uim |
207 | Requires: %{name} = %{version}-%{release} | |
208 | Requires(post): %{_bindir}/uim-module-manager | |
209 | Requires(postun): %{_bindir}/uim-module-manager | |
f2675bdf JR |
210 | |
211 | %description mana | |
212 | This package provides support for mana, a Japanese input method. | |
213 | ||
ce8c7195 JR |
214 | %package prime |
215 | Summary: PRIME support for Uim | |
216 | Group: Libraries | |
217 | Requires: prime | |
218 | Requires: %{name} = %{version}-%{release} | |
219 | Requires(post): %{_bindir}/uim-module-manager | |
220 | Requires(postun): %{_bindir}/uim-module-manager | |
221 | ||
222 | %description prime | |
223 | This package provides support for PRIME, a Japanese input method. | |
224 | ||
f2675bdf JR |
225 | %package skk |
226 | Summary: SKK support for Uim | |
227 | Group: Libraries | |
228 | Requires: skkdic | |
ce8c7195 JR |
229 | Requires: %{name} = %{version}-%{release} |
230 | Requires(post): %{_bindir}/uim-module-manager | |
231 | Requires(postun): %{_bindir}/uim-module-manager | |
f2675bdf JR |
232 | |
233 | %description skk | |
234 | This package provides support for SKK, a Japanese input method. | |
235 | ||
236 | %package m17n | |
237 | Summary: m17n-lib support for Uim | |
238 | Group: Libraries | |
ce8c7195 JR |
239 | Requires: %{name} = %{version}-%{release} |
240 | Requires(post): %{_bindir}/uim-module-manager | |
241 | Requires(postun): %{_bindir}/uim-module-manager | |
f2675bdf JR |
242 | |
243 | %description m17n | |
244 | This package provides support for m17n-lib, which allows input of many | |
245 | languages using the input table map from m17n-db. | |
246 | ||
e899826e | 247 | %prep |
248 | %setup -q | |
249 | %patch0 -p1 | |
f2675bdf JR |
250 | |
251 | cp -a fep/README fep/README.fep | |
252 | cp -a fep/README.ja fep/README.fep.ja | |
253 | cp -a fep/README.key fep/README.fep.key | |
254 | cp -a xim/README xim/README.xim | |
e899826e | 255 | |
256 | %build | |
15d800b6 | 257 | %configure \ |
26f033cf | 258 | --with-libgcroots=installed \ |
15d800b6 | 259 | --enable-openssl \ |
bfb51d08 | 260 | --disable-gnome2-applet \ |
15d800b6 | 261 | --enable-gnome3-applet \ |
f2675bdf | 262 | --enable-qt4-qt3support \ |
15d800b6 | 263 | --enable-default-toolkit=gtk3 \ |
f2675bdf | 264 | --with-lispdir=%{_datadir}/emacs/site-lisp \ |
15d800b6 JR |
265 | --enable-dict \ |
266 | --enable-pref \ | |
267 | --enable-notify=libnotify \ | |
268 | --without-scim \ | |
ce8c7195 | 269 | --without-anthy \ |
15d800b6 JR |
270 | --with-anthy-utf8 \ |
271 | --with-canna \ | |
f2675bdf | 272 | --with-m17nlib \ |
15d800b6 JR |
273 | --with-mana \ |
274 | --with-prime \ | |
275 | --without-sj3 \ | |
276 | --without-skk \ | |
277 | --with-curl \ | |
278 | --with-expat \ | |
279 | --with-ssl-engine \ | |
280 | --with-sqlite3 \ | |
281 | --with-ffi \ | |
282 | --with-x \ | |
283 | --with-xft \ | |
284 | --with-gtk2 \ | |
285 | --with-gtk3 \ | |
f2675bdf JR |
286 | --with-qt \ |
287 | --with-qt-immodule \ | |
15d800b6 JR |
288 | --with-qt4 \ |
289 | --with-qt4-immodule \ | |
f2675bdf | 290 | --enable-kde4-applet \ |
15d800b6 JR |
291 | --with-libedit \ |
292 | --with-eb | |
293 | ||
734a1f7a | 294 | %{__make} -j1 |
e899826e | 295 | |
296 | %install | |
297 | rm -rf $RPM_BUILD_ROOT | |
f2675bdf | 298 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinput.d \ |
cda0d829 | 299 | $RPM_BUILD_ROOT%{_datadir}/{emacs/site-lisp,xemacs-packages/lisp}/site-start.d \ |
ce8c7195 | 300 | $RPM_BUILD_ROOT%{_localstatedir}/lib/uim |
e899826e | 301 | |
466aeaa9 | 302 | %{__make} -j1 install \ |
26f033cf | 303 | QT_PLUGINSDIR=%{_libdir}/qt/plugins-mt \ |
e899826e | 304 | DESTDIR=$RPM_BUILD_ROOT |
305 | ||
f2675bdf | 306 | # For XEmacs |
466aeaa9 | 307 | %{__make} -j1 install -C emacs \ |
f2675bdf | 308 | DESTDIR=$RPM_BUILD_ROOT \ |
cda0d829 | 309 | UIMEL_LISP_DIR=%{_datadir}/xemacs-packages/lisp/uim-el |
f2675bdf | 310 | |
26f033cf | 311 | %{__rm} $RPM_BUILD_ROOT%{_libdir}{,/gtk*/*/immodules,/uim/*,/qt/plugins-mt/*}/*.la |
15d800b6 | 312 | |
f2675bdf JR |
313 | %{__sed} -e 's|@@LIB@@|%{_lib}|g' %{SOURCE1} >$RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinput.d/uim.conf |
314 | install -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d/ | |
cda0d829 | 315 | install -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/xemacs-packages/lisp/ |
f2675bdf | 316 | |
ce8c7195 JR |
317 | mv $RPM_BUILD_ROOT%{_datadir}/uim/{installed-modules,loader}.scm $RPM_BUILD_ROOT%{_localstatedir}/lib/uim/ |
318 | ln -sf %{_localstatedir}/lib/uim/installed-modules.scm $RPM_BUILD_ROOT%{_datadir}/uim/ | |
319 | ln -sf %{_localstatedir}/lib/uim/loader.scm $RPM_BUILD_ROOT%{_datadir}/uim/ | |
320 | ||
321 | # Register additional input methods | |
322 | LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} \ | |
323 | LIBUIM_SYSTEM_SCM_FILES=$RPM_BUILD_ROOT%{_datadir}/uim/lib \ | |
324 | LIBUIM_SCM_FILES=$RPM_BUILD_ROOT%{_datadir}/uim \ | |
325 | LIBUIM_PLUGIN_LIB_DIR=$RPM_BUILD_ROOT%{_libdir}/uim/plugin \ | |
326 | UIM_DISABLE_NOTIFY=1 \ | |
327 | $RPM_BUILD_ROOT%{_bindir}/uim-module-manager \ | |
328 | --path $RPM_BUILD_ROOT%{_localstatedir}/lib/uim \ | |
329 | --register tcode trycode hangul | |
330 | ||
331 | # Unregister methods that come from separate packages | |
332 | LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} \ | |
333 | LIBUIM_SYSTEM_SCM_FILES=$RPM_BUILD_ROOT%{_datadir}/uim/lib \ | |
334 | LIBUIM_SCM_FILES=$RPM_BUILD_ROOT%{_datadir}/uim \ | |
335 | LIBUIM_PLUGIN_LIB_DIR=$RPM_BUILD_ROOT%{_libdir}/uim/plugin \ | |
336 | UIM_DISABLE_NOTIFY=1 \ | |
337 | $RPM_BUILD_ROOT%{_bindir}/uim-module-manager \ | |
338 | --path $RPM_BUILD_ROOT%{_localstatedir}/lib/uim \ | |
339 | --unregister anthy anthy-utf8 canna mana skk m17nlib | |
340 | ||
e899826e | 341 | %find_lang %{name} |
342 | ||
343 | %clean | |
344 | rm -rf $RPM_BUILD_ROOT | |
345 | ||
ce8c7195 JR |
346 | %post -p /sbin/ldconfig |
347 | %postun -p /sbin/ldconfig | |
348 | ||
349 | %post gtk2 | |
879f273b JR |
350 | %if "%{_lib}" != "lib" |
351 | %{_bindir}/gtk-query-immodules-2.0-64 > %{_sysconfdir}/gtk64-2.0/gtk.immodules | |
879f273b | 352 | %else |
e899826e | 353 | %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules |
879f273b | 354 | %endif |
e899826e | 355 | |
ce8c7195 | 356 | %postun gtk2 |
879f273b JR |
357 | %if "%{_lib}" != "lib" |
358 | %{_bindir}/gtk-query-immodules-2.0-64 > %{_sysconfdir}/gtk64-2.0/gtk.immodules | |
879f273b | 359 | %else |
5e1c7cdb | 360 | %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules |
ce8c7195 JR |
361 | %endif |
362 | ||
363 | %post gtk3 | |
364 | %if "%{_lib}" != "lib" | |
365 | %{_bindir}/gtk-query-immodules-3.0-64 --update-cache | |
366 | %else | |
879f273b JR |
367 | %{_bindir}/gtk-query-immodules-3.0 --update-cache |
368 | %endif | |
e899826e | 369 | |
ce8c7195 JR |
370 | %postun gtk3 |
371 | %if "%{_lib}" != "lib" | |
372 | %{_bindir}/gtk-query-immodules-3.0-64 --update-cache | |
373 | %else | |
374 | %{_bindir}/gtk-query-immodules-3.0 --update-cache | |
375 | %endif | |
376 | ||
377 | %post anthy | |
378 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register anthy-utf8 | |
379 | ||
380 | %postun anthy | |
381 | if [ "$1" = "0" ]; then | |
382 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister anthy-utf8 | |
383 | fi | |
384 | ||
385 | %post canna | |
386 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register canna | |
387 | ||
388 | %postun canna | |
389 | if [ "$1" = "0" ]; then | |
390 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister canna | |
391 | fi | |
392 | ||
393 | %post prime | |
394 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register prime | |
395 | ||
396 | %postun prime | |
397 | if [ "$1" = "0" ]; then | |
398 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister prime | |
399 | fi | |
400 | ||
401 | %post mana | |
402 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register mana | |
403 | ||
404 | %postun mana | |
405 | if [ "$1" = "0" ]; then | |
406 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister mana | |
407 | fi | |
408 | ||
409 | %post skk | |
410 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register skk | |
411 | ||
412 | %postun skk | |
413 | if [ "$1" = "0" ]; then | |
414 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister skk | |
415 | fi | |
416 | ||
417 | %post m17n | |
418 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register m17nlib | |
419 | ||
420 | %postun m17n | |
421 | if [ "$1" = "0" ]; then | |
422 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister m17nlib | |
423 | fi | |
424 | ||
e899826e | 425 | %files -f %{name}.lang |
426 | %defattr(644,root,root,755) | |
427 | %doc AUTHORS ChangeLog NEWS README | |
ce8c7195 | 428 | %doc fep/README.fep fep/README.fep.ja fep/README.fep.key xim/README.xim |
f2675bdf | 429 | %{_sysconfdir}/X11/xinit/xinput.d/uim.conf |
771d5eda JR |
430 | %attr(755,root,root) %{_bindir}/uim-fep |
431 | %attr(755,root,root) %{_bindir}/uim-fep-tick | |
432 | %attr(755,root,root) %{_bindir}/uim-help | |
771d5eda JR |
433 | %attr(755,root,root) %{_bindir}/uim-module-manager |
434 | %attr(755,root,root) %{_bindir}/uim-sh | |
435 | %attr(755,root,root) %{_bindir}/uim-xim | |
e899826e | 436 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* |
15d800b6 | 437 | %attr(755,root,root) %ghost %{_libdir}/lib*.so.[0-9] |
15d800b6 | 438 | %attr(755,root,root) %{_libdir}/uim-helper-server |
15d800b6 JR |
439 | %dir %{_libdir}/uim |
440 | %dir %{_libdir}/uim/notify | |
441 | %attr(755,root,root) %{_libdir}/uim/notify/libuimnotify*.so | |
442 | %dir %{_libdir}/uim/plugin | |
15d800b6 JR |
443 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-curl.so |
444 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-custom-enabler.so | |
445 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-eb.so | |
446 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-editline.so | |
447 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-expat.so | |
448 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-ffi.so | |
449 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-fileio.so | |
450 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-lolevel.so | |
451 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-look.so | |
15d800b6 JR |
452 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-openssl.so |
453 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-process.so | |
15d800b6 JR |
454 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-socket.so |
455 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-sqlite3.so | |
f2675bdf JR |
456 | %dir %{_datadir}/uim |
457 | %{_datadir}/%{name}/* | |
26f033cf JR |
458 | %exclude %{_datadir}/uim/anthy*.scm |
459 | %exclude %{_datadir}/uim/canna*.scm | |
460 | %exclude %{_datadir}/uim/mana*.scm | |
461 | %exclude %{_datadir}/uim/prime*.scm | |
462 | %exclude %{_datadir}/uim/skk*.scm | |
463 | %exclude %{_datadir}/uim/m17nlib.scm | |
464 | %exclude %{_datadir}/uim/pixmaps/anthy*.png | |
465 | %exclude %{_datadir}/uim/pixmaps/canna.png | |
466 | %exclude %{_datadir}/uim/pixmaps/mana.png | |
467 | %exclude %{_datadir}/uim/pixmaps/prime.png | |
468 | %exclude %{_datadir}/uim/pixmaps/skk*.png | |
469 | %exclude %{_datadir}/uim/pixmaps/skk*.svg | |
470 | %exclude %{_datadir}/uim/pixmaps/m17n*png | |
15d800b6 | 471 | %{_desktopdir}/uim.desktop |
15d800b6 | 472 | %{_mandir}/man1/*.1* |
ce8c7195 JR |
473 | %dir %{_localstatedir}/lib/uim |
474 | %verify(not md5 mtime size) %{_localstatedir}/lib/uim/*.scm | |
e899826e | 475 | |
f2675bdf JR |
476 | %files devel |
477 | %defattr(644,root,root,755) | |
478 | %attr(755,root,root) %{_libdir}/lib*.so | |
479 | %{_includedir}/%{name} | |
480 | %{_pkgconfigdir}/*.pc | |
481 | ||
482 | %files gtk2 | |
483 | %defattr(644,root,root,755) | |
771d5eda JR |
484 | %attr(755,root,root) %{_bindir}/uim-dict-gtk |
485 | %attr(755,root,root) %{_bindir}/uim-im-switcher-gtk | |
f2675bdf | 486 | %attr(755,root,root) %{_bindir}/uim-input-pad-ja |
771d5eda JR |
487 | %attr(755,root,root) %{_bindir}/uim-pref-gtk |
488 | %attr(755,root,root) %{_bindir}/uim-toolbar-gtk | |
489 | %attr(755,root,root) %{_bindir}/uim-toolbar-gtk-systray | |
490 | %attr(755,root,root) %{_libdir}/gtk-2.0/*/immodules/*.so | |
491 | %attr(755,root,root) %{_libdir}/uim-candwin-gtk | |
492 | %attr(755,root,root) %{_libdir}/uim-candwin-tbl-gtk | |
26f033cf | 493 | %attr(755,root,root) %{_libdir}/uim-candwin-horizontal-gtk |
771d5eda | 494 | |
f2675bdf JR |
495 | %files gtk3 |
496 | %defattr(644,root,root,755) | |
771d5eda JR |
497 | %attr(755,root,root) %{_bindir}/uim-dict-gtk3 |
498 | %attr(755,root,root) %{_bindir}/uim-im-switcher-gtk3 | |
499 | %attr(755,root,root) %{_bindir}/uim-input-pad-ja-gtk3 | |
500 | %attr(755,root,root) %{_bindir}/uim-pref-gtk3 | |
501 | %attr(755,root,root) %{_bindir}/uim-toolbar-gtk3 | |
502 | %attr(755,root,root) %{_bindir}/uim-toolbar-gtk3-systray | |
503 | %attr(755,root,root) %{_libdir}/gtk-3.0/*/immodules/*.so | |
504 | %attr(755,root,root) %{_libdir}/uim-candwin-gtk3 | |
505 | %attr(755,root,root) %{_libdir}/uim-candwin-tbl-gtk3 | |
26f033cf | 506 | %attr(755,root,root) %{_libdir}/uim-candwin-horizontal-gtk3 |
771d5eda | 507 | |
f2675bdf JR |
508 | %files gnome |
509 | %defattr(644,root,root,755) | |
510 | %attr(755,root,root) %{_libdir}/uim-toolbar-applet-gnome3 | |
511 | %{_datadir}/dbus-1/services/org.gnome.panel.applet.UimAppletFactory.service | |
512 | %{_datadir}/gnome-panel/4.0/applets/UimApplet.panel-applet | |
513 | ||
26f033cf | 514 | %files qt |
f2675bdf | 515 | %defattr(644,root,root,755) |
771d5eda JR |
516 | %attr(755,root,root) %{_bindir}/uim-chardict-qt4 |
517 | %attr(755,root,root) %{_bindir}/uim-im-switcher-qt4 | |
518 | %attr(755,root,root) %{_bindir}/uim-pref-qt4 | |
519 | %attr(755,root,root) %{_bindir}/uim-toolbar-qt4 | |
520 | %attr(755,root,root) %{_libdir}/qt4/plugins/inputmethods/*.so | |
521 | %attr(755,root,root) %{_libdir}/uim-candwin-qt4 | |
522 | ||
26f033cf | 523 | %files qt3 |
e899826e | 524 | %defattr(644,root,root,755) |
f2675bdf JR |
525 | %attr(755,root,root) %{_bindir}/uim-chardict-qt |
526 | %attr(755,root,root) %{_bindir}/uim-im-switcher-qt | |
527 | %attr(755,root,root) %{_bindir}/uim-pref-qt | |
528 | %attr(755,root,root) %{_bindir}/uim-toolbar-qt | |
529 | %attr(755,root,root) %{_libdir}/uim-candwin-qt | |
26f033cf | 530 | %attr(755,root,root) %{_libdir}/qt/plugins-mt/inputmethods/*.so |
f2675bdf JR |
531 | |
532 | %files kde | |
533 | %defattr(644,root,root,755) | |
534 | %{_libdir}/kde4/plasma_applet_uim.so | |
535 | %{_datadir}/kde4/services/plasma-applet-uim.desktop | |
536 | ||
537 | %files -n emacs-uim | |
538 | %defattr(644,root,root,755) | |
539 | %{_datadir}/emacs/site-lisp/uim-el | |
540 | %{_datadir}/emacs/site-lisp/site-start.d/uim-init.el | |
541 | ||
542 | %files -n xemacs-uim | |
543 | %defattr(644,root,root,755) | |
cda0d829 JR |
544 | %{_datadir}/xemacs-packages/lisp/uim-el |
545 | %{_datadir}/xemacs-packages/lisp/uim-init.el | |
f2675bdf JR |
546 | |
547 | %files -n emacs-common-uim | |
548 | %defattr(644,root,root,755) | |
549 | %doc emacs/README | |
550 | %lang(ja) %doc emacs/README.ja | |
551 | %attr(755,root,root) %{_bindir}/uim-el-agent | |
552 | %attr(755,root,root) %{_bindir}/uim-el-helper-agent | |
553 | ||
554 | %files anthy | |
555 | %defattr(644,root,root,755) | |
ce8c7195 | 556 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-anthy*.so |
f2675bdf JR |
557 | %{_datadir}/uim/anthy*.scm |
558 | %{_datadir}/uim/pixmaps/anthy*.png | |
559 | ||
560 | %files canna | |
561 | %defattr(644,root,root,755) | |
562 | %{_datadir}/uim/canna*.scm | |
563 | %{_datadir}/uim/pixmaps/canna.png | |
564 | ||
565 | %files mana | |
566 | %defattr(644,root,root,755) | |
567 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-mana.so | |
568 | %{_datadir}/uim/mana*.scm | |
569 | %{_datadir}/uim/pixmaps/mana.png | |
570 | ||
ce8c7195 JR |
571 | %files prime |
572 | %defattr(644,root,root,755) | |
573 | %{_datadir}/uim/prime*.scm | |
574 | %{_datadir}/uim/pixmaps/prime.png | |
575 | ||
f2675bdf JR |
576 | %files skk |
577 | %defattr(644,root,root,755) | |
578 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-skk.so | |
579 | %{_datadir}/uim/skk*.scm | |
580 | %{_datadir}/uim/pixmaps/skk*.png | |
581 | %{_datadir}/uim/pixmaps/skk*.svg | |
582 | ||
583 | %files m17n | |
584 | %defattr(644,root,root,755) | |
585 | %attr(755,root,root) %{_bindir}/uim-m17nlib-relink-icons | |
586 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-m17nlib.so | |
587 | %{_datadir}/uim/m17nlib.scm | |
588 | %{_datadir}/uim/pixmaps/m17n*png |