]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without gnome # GNOME 3 panel applet | |
4 | %bcond_with kde4 # KDE 4 panel applet and knotify4 plugin | |
5 | %bcond_without kde5 # KDE 5 plasmoid | |
6 | %bcond_with qt3 # Qt 3 support / immodule | |
7 | %bcond_without qt4 # Qt 4 support / immodule | |
8 | %bcond_without qt5 # Qt 5 support / immodule / quick plugin | |
9 | %bcond_without anthy # Anthy IM and dictionary support | |
10 | %bcond_without canna # Canna IM and dictionary support | |
11 | %bcond_without eb # EB text search support | |
12 | %bcond_without m17n # m17n IM support | |
13 | %bcond_with mana # mana IM support | |
14 | %bcond_without prime # PRIME IM support | |
15 | %bcond_without wnn # Wnn IM support | |
16 | # | |
17 | Summary: Multilingual input method library | |
18 | Summary(pl.UTF-8): Biblioteka obsługująca wejście w wielu językach | |
19 | Name: uim | |
20 | Version: 1.8.9 | |
21 | Release: 2 | |
22 | License: BSD | |
23 | Group: Libraries | |
24 | #Source0Download: https://github.com/uim/uim/releases | |
25 | Source0: https://github.com/uim/uim/releases/download/%{version}/%{name}-%{version}.tar.bz2 | |
26 | # Source0-md5: fd4a5f60dea0596cac81956792942b9b | |
27 | Source1: %{name}.xinputd | |
28 | Source2: %{name}-init.el | |
29 | Patch0: %{name}-emacs-utf8.patch | |
30 | Patch1: %{name}-gnome-panel-update.patch | |
31 | Patch2: %{name}-qt5-options.patch | |
32 | URL: https://github.com/uim/uim/wiki | |
33 | %{?with_canna:BuildRequires: Canna-devel} | |
34 | %{?with_wnn:BuildRequires: FreeWnn-devel} | |
35 | %{?with_qt4:BuildRequires: Qt3Support-devel >= 4} | |
36 | %{?with_qt4:BuildRequires: QtCore-devel >= 4} | |
37 | %{?with_qt4:BuildRequires: QtGui-devel >= 4} | |
38 | %{?with_qt5:BuildRequires: Qt5Core-devel >= 5} | |
39 | %{?with_qt5:BuildRequires: Qt5Gui-devel >= 5} | |
40 | %{?with_qt5:BuildRequires: Qt5Qml-devel >= 5} | |
41 | %{?with_qt5:BuildRequires: Qt5Quick-devel >= 5} | |
42 | %{?with_qt5:BuildRequires: Qt5Widgets-devel >= 5} | |
43 | %{?with_kde5:BuildRequires: Qt5X11Extras-devel >= 5} | |
44 | %{?with_anthy:BuildRequires: anthy-devel >= 9100h-2} | |
45 | BuildRequires: autoconf >= 2.60b | |
46 | BuildRequires: automake >= 1:1.10 | |
47 | %{?with_kde4:BuildRequires: automoc4} | |
48 | %if %{with kde4} || %{with qt5} | |
49 | BuildRequires: cmake | |
50 | %endif | |
51 | BuildRequires: curl-devel >= 7.16.4 | |
52 | %{?with_eb:BuildRequires: eb-devel} | |
53 | BuildRequires: expat-devel >= 1.95 | |
54 | BuildRequires: gettext-tools >= 0.17 | |
55 | %{?with_gnome:BuildRequires: gnome-panel-devel >= 3.37} | |
56 | BuildRequires: gtk+2-devel >= 2:2.4.0 | |
57 | BuildRequires: gtk+3-devel >= 3.0 | |
58 | BuildRequires: intltool >= 0.36.3 | |
59 | %{?with_kde4:BuildRequires: kde4-kdelibs-devel} | |
60 | %{?with_kde5:BuildRequires: kf5-extra-cmake-modules} | |
61 | %{?with_kde5:BuildRequires: kf5-plasma-framework-devel} | |
62 | BuildRequires: libedit-devel | |
63 | BuildRequires: libffi-devel >= 3.0.0 | |
64 | BuildRequires: libgcroots-devel >= 0.2.3 | |
65 | BuildRequires: libnotify-devel >= 0.4 | |
66 | BuildRequires: libstdc++-devel | |
67 | BuildRequires: libtool >= 2:1.5 | |
68 | %{?with_m17n:BuildRequires: m17n-lib-devel >= 1.3.1} | |
69 | BuildRequires: ncurses-devel | |
70 | BuildRequires: openssl-devel | |
71 | BuildRequires: pkgconfig | |
72 | BuildRequires: pkgconfig(libffi) >= 3.0.0 | |
73 | # for configure check, but it affects only default set of registered modules | |
74 | #%{?with_prime:BuildRequires: prime >= 0.8.5.2} | |
75 | %{?with_qt3:BuildRequires: qt-devel >= 3.2.0} | |
76 | %{?with_qt4:BuildRequires: qt4-qmake >= 4} | |
77 | %{?with_qt5:BuildRequires: qt5-qmake >= 5} | |
78 | BuildRequires: rpmbuild(macros) >= 1.750 | |
79 | BuildRequires: sed >= 4.0 | |
80 | BuildRequires: sqlite3-devel >= 3.0.0 | |
81 | BuildRequires: xorg-lib-libX11-devel | |
82 | BuildRequires: xorg-lib-libXext-devel | |
83 | BuildRequires: xorg-lib-libXft-devel | |
84 | Requires: libgcroots >= 0.2.3 | |
85 | # for libuim-curl | |
86 | Requires: curl-libs >= 7.16.4 | |
87 | Obsoletes: uim-scim < 1.8 | |
88 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
89 | ||
90 | # avoids sigscheme SIGSEGV during install (when using gcc 12.2) | |
91 | # (hard to track if it's sigscheme or gcc bug; sigscheme gc seems incompatible with asan) | |
92 | %define specflags_x32 -fno-optimize-sibling-calls | |
93 | ||
94 | %ifarch %{ix86} | |
95 | %if "%{_ver_ge '%{cc_version}' '6.3'}" == "1" | |
96 | # "-O2 -march=i686 -mtune=pentium4" combination causes sigscheme to segfault when built with gcc 6.3-7.5 | |
97 | %define filterout -mtune=pentium4 | |
98 | %endif | |
99 | %endif | |
100 | ||
101 | %description | |
102 | Uim is a multilingual input method library. Uim aims to provide secure | |
103 | and useful input methods for all languages. Currently, it can input to | |
104 | applications which support GTK+'s immodule, Qt's immodule and XIM. | |
105 | ||
106 | This package provides the input method library, the XIM bridge and | |
107 | most of the input methods. | |
108 | ||
109 | For the Japanese input methods you need to install | |
110 | - uim-anthy for Anthy | |
111 | - uim-canna for Canna | |
112 | - uim-skk for SKK. | |
113 | ||
114 | %description -l pl.UTF-8 | |
115 | Uim jest biblioteką obsługującą wejście w wielu językach. Celem | |
116 | projektu jest udostępnienie bezpiecznych i użytecznych metod | |
117 | wprowadzania dla wszystkich języków. Obecnie potrafi obsłużyć | |
118 | aplikacje obsługujące moduły IM z GTK+, moduły IM z Qt oraz XIM. | |
119 | ||
120 | Ten pakiet udostępnia bibliotekę metody wprowadzania, mostek XIM oraz | |
121 | większość metod wprowadzania. | |
122 | ||
123 | Do wprowadzania tekstu japońskiego trzeba zainstalować: | |
124 | - uim-anthy dla metody Anthy | |
125 | - uim-canna dla metody Canna | |
126 | - uim-skk dla SKK. | |
127 | ||
128 | %package devel | |
129 | Summary: Header files for uim libraryi | |
130 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki uim | |
131 | Group: Development/Libraries | |
132 | Requires: %{name} = %{version}-%{release} | |
133 | ||
134 | %description devel | |
135 | Header files for uim library. | |
136 | ||
137 | %description devel -l pl.UTF-8 | |
138 | Pliki nagłówkowe biblioteki uim. | |
139 | ||
140 | %package gtk2 | |
141 | Summary: GTK+ 2 support for Uim | |
142 | Summary(pl.UTF-8): Obsługa GTK+ 2 dla biblioteki Uim | |
143 | Group: X11/Applications | |
144 | Requires: %{name} = %{version}-%{release} | |
145 | # for update-gtk-immodules | |
146 | Requires(post,postun): gtk+2 >= 2:2.9.1-2 | |
147 | Requires: gtk+2 >= 2:2.4.0 | |
148 | ||
149 | %description gtk2 | |
150 | Uim is a multilingual input method library. Uim aims to provide secure | |
151 | and useful input methods for all languages. | |
152 | ||
153 | This package provides the GTK+ 2 IM module and helper program. | |
154 | ||
155 | %description gtk2 -l pl.UTF-8 | |
156 | Uim jest biblioteką obsługującą wejście w wielu językach. Celem | |
157 | projektu jest udostępnienie bezpiecznych i użytecznych metod | |
158 | wprowadzania dla wszystkich języków. | |
159 | ||
160 | Ten pakiet zawiera moduł IM GTK+ 2 oraz program pomocniczy. | |
161 | ||
162 | %package gtk3 | |
163 | Summary: GTK+ 3 support for Uim | |
164 | Summary(pl.UTF-8): Obsługa GTK+ 3 dla biblioteki Uim | |
165 | Group: X11/Applications | |
166 | Requires: %{name} = %{version}-%{release} | |
167 | # for update-gtk-immodules | |
168 | Requires(post,postun): gtk+3 | |
169 | ||
170 | %description gtk3 | |
171 | Uim is a multilingual input method library. Uim aims to provide secure | |
172 | and useful input methods for all languages. | |
173 | ||
174 | This package provides the GTK+ 3 IM module and helper program. | |
175 | ||
176 | %description gtk3 -l pl.UTF-8 | |
177 | Uim jest biblioteką obsługującą wejście w wielu językach. Celem | |
178 | projektu jest udostępnienie bezpiecznych i użytecznych metod | |
179 | wprowadzania dla wszystkich języków. | |
180 | ||
181 | Ten pakiet zawiera moduł IM GTK+ 3 oraz program pomocniczy. | |
182 | ||
183 | %package gnome | |
184 | Summary: GNOME 3 Applet for Uim | |
185 | Summary(pl.UTF-8): Aplet GNOME 3 dla biblioteki Uim | |
186 | Group: X11/Applications | |
187 | Requires: %{name} = %{version}-%{release} | |
188 | Requires: %{name}-gtk3 = %{version}-%{release} | |
189 | Requires: gnome-panel >= 3.37 | |
190 | ||
191 | %description gnome | |
192 | Uim is a multilingual input method library. Uim aims to provide secure | |
193 | and useful input methods for all languages. | |
194 | ||
195 | This package provides the GNOME 3 panel applet. | |
196 | ||
197 | %description gnome -l pl.UTF-8 | |
198 | Uim jest biblioteką obsługującą wejście w wielu językach. Celem | |
199 | projektu jest udostępnienie bezpiecznych i użytecznych metod | |
200 | wprowadzania dla wszystkich języków. | |
201 | ||
202 | Ten pakiet zawiera aplet panelu GNOME 3. | |
203 | ||
204 | %package qt3 | |
205 | Summary: Qt 3 support for Uim | |
206 | Summary(pl.UTF-8): Obsługa Qt 3 dla biblioteki Uim | |
207 | Group: X11/Applications | |
208 | Requires: %{name} = %{version}-%{release} | |
209 | Requires: qt >= 6:3.2.0 | |
210 | Provides: %{name}-qt-common = %{version}-%{release} | |
211 | ||
212 | %description qt3 | |
213 | Uim is a multilingual input method library. Uim aims to provide secure | |
214 | and useful input methods for all languages. | |
215 | ||
216 | This package provides the Qt 3 IM module and helper programs. | |
217 | ||
218 | %description qt3 -l pl.UTF-8 | |
219 | Uim jest biblioteką obsługującą wejście w wielu językach. Celem | |
220 | projektu jest udostępnienie bezpiecznych i użytecznych metod | |
221 | wprowadzania dla wszystkich języków. | |
222 | ||
223 | Ten pakiet zawiera moduł IM Qt 3 oraz programy pomocnicze. | |
224 | ||
225 | %package qt4 | |
226 | Summary: Qt 4 support for Uim | |
227 | Summary(pl.UTF-8): Obsługa Qt 4 dla biblioteki Uim | |
228 | Group: X11/Applications | |
229 | Requires: %{name} = %{version}-%{release} | |
230 | Obsoletes: uim-qt < 1.8.8-4 | |
231 | ||
232 | %description qt4 | |
233 | Uim is a multilingual input method library. Uim aims to provide secure | |
234 | and useful input methods for all languages. | |
235 | ||
236 | This package provides the Qt 4 IM module and helper programs. | |
237 | ||
238 | %description qt4 -l pl.UTF-8 | |
239 | Uim jest biblioteką obsługującą wejście w wielu językach. Celem | |
240 | projektu jest udostępnienie bezpiecznych i użytecznych metod | |
241 | wprowadzania dla wszystkich języków. | |
242 | ||
243 | Ten pakiet zawiera moduł IM Qt 4 oraz programy pomocnicze. | |
244 | ||
245 | %package qt5 | |
246 | Summary: Qt 5 support for Uim | |
247 | Summary(pl.UTF-8): Obsługa Qt 5 dla biblioteki Uim | |
248 | Group: X11/Applications | |
249 | Requires: %{name} = %{version}-%{release} | |
250 | ||
251 | %description qt5 | |
252 | Uim is a multilingual input method library. Uim aims to provide secure | |
253 | and useful input methods for all languages. | |
254 | ||
255 | This package provides the Qt 5 IM module and helper programs. | |
256 | ||
257 | %description qt5 -l pl.UTF-8 | |
258 | Uim jest biblioteką obsługującą wejście w wielu językach. Celem | |
259 | projektu jest udostępnienie bezpiecznych i użytecznych metod | |
260 | wprowadzania dla wszystkich języków. | |
261 | ||
262 | Ten pakiet zawiera moduł IM Qt 5 oraz programy pomocnicze. | |
263 | ||
264 | %package kde | |
265 | Summary: KDE 4 Applet for Uim | |
266 | Summary(pl.UTF-8): Aplet KDE 4 dla biblioteki Uim | |
267 | Group: X11/Applications | |
268 | Requires: %{name} = %{version}-%{release} | |
269 | Requires: %{name}-qt4 = %{version}-%{release} | |
270 | ||
271 | %description kde | |
272 | Uim is a multilingual input method library. Uim aims to provide secure | |
273 | and useful input methods for all languages. | |
274 | ||
275 | This package provides the KDE 4 applet. | |
276 | ||
277 | %description kde -l pl.UTF-8 | |
278 | Uim jest biblioteką obsługującą wejście w wielu językach. Celem | |
279 | projektu jest udostępnienie bezpiecznych i użytecznych metod | |
280 | wprowadzania dla wszystkich języków. | |
281 | ||
282 | Ten pakiet zawiera aplet KDE 4. | |
283 | ||
284 | %package kde5 | |
285 | Summary: KDE 5 Plasmoid for Uim | |
286 | Summary(pl.UTF-8): Plazmoid KDE 5 dla biblioteki Uim | |
287 | Group: X11/Applications | |
288 | Requires: %{name} = %{version}-%{release} | |
289 | Requires: %{name}-qt5 = %{version}-%{release} | |
290 | ||
291 | %description kde5 | |
292 | Uim is a multilingual input method library. Uim aims to provide secure | |
293 | and useful input methods for all languages. | |
294 | ||
295 | This package provides the KDE 5 plasmoid. | |
296 | ||
297 | %description kde5 -l pl.UTF-8 | |
298 | Uim jest biblioteką obsługującą wejście w wielu językach. Celem | |
299 | projektu jest udostępnienie bezpiecznych i użytecznych metod | |
300 | wprowadzania dla wszystkich języków. | |
301 | ||
302 | Ten pakiet zawiera plazmoid KDE 5. | |
303 | ||
304 | %package -n emacs-common-uim | |
305 | Summary: Common package for Emacsen support for Uim | |
306 | Summary(pl.UTF-8): Pakiet wspólny Uima dla emacsów | |
307 | Group: Libraries | |
308 | Requires: %{name} = %{version}-%{release} | |
309 | ||
310 | %description -n emacs-common-uim | |
311 | This package provides an utility to use Emacsen support for Uim. | |
312 | ||
313 | %description -n emacs-common-uim -l pl.UTF-8 | |
314 | Ten pakiet zawiera narzędzia pozwalające na używanie Uima w emacsach. | |
315 | ||
316 | %package -n emacs-uim | |
317 | Summary: Emacs support for Uim | |
318 | Summary(pl.UTF-8): Obsługa Uima w Emacsie | |
319 | Group: Libraries | |
320 | Requires: emacs | |
321 | Requires: emacs-common-uim = %{version}-%{release} | |
322 | ||
323 | %description -n emacs-uim | |
324 | This package provides Emacs support for Uim. | |
325 | ||
326 | %description -n emacs-uim -l pl.UTF-8 | |
327 | Ten pakiet zapewnia obsługę Uima w Emacsie. | |
328 | ||
329 | %package -n xemacs-uim | |
330 | Summary: XEmacs support for Uim | |
331 | Summary(pl.UTF-8): Obsługa Uima w XEmacsie | |
332 | Group: Libraries | |
333 | Requires: emacs-common-uim = %{version}-%{release} | |
334 | Requires: xemacs | |
335 | ||
336 | %description -n xemacs-uim | |
337 | This package provides XEmacs support. | |
338 | ||
339 | %description -n xemacs-uim -l pl.UTF-8 | |
340 | Ten pakiet zapewnia obsługę Uima w XEmacsie. | |
341 | ||
342 | %package anthy | |
343 | Summary: Anthy support for Uim | |
344 | Summary(pl.UTF-8): Obsługa metody Anthy w Uimie | |
345 | Group: Libraries | |
346 | Requires(post,postun): %{_bindir}/uim-module-manager | |
347 | Requires: %{name} = %{version}-%{release} | |
348 | Requires: anthy >= 9100h | |
349 | ||
350 | %description anthy | |
351 | This package provides support for Anthy, a Japanese input method. | |
352 | ||
353 | %description anthy -l pl.UTF-8 | |
354 | Ten pakiet zawiera obsługę metody Anthy wprowadzania znaków | |
355 | japońskich. | |
356 | ||
357 | %package canna | |
358 | Summary: Canna support for Uim | |
359 | Summary(pl.UTF-8): Obsługa metody Canna w Uimie | |
360 | Group: Libraries | |
361 | Requires(post,postun): %{_bindir}/uim-module-manager | |
362 | Requires: %{name} = %{version}-%{release} | |
363 | Requires: Canna | |
364 | ||
365 | %description canna | |
366 | This package provides support for Canna, a Japanese input method. | |
367 | ||
368 | %description canna -l pl.UTF-8 | |
369 | Ten pakiet zawiera obsługę metody Canna wprowadzania znaków | |
370 | japońskich. | |
371 | ||
372 | %package eb | |
373 | Summary: EB search support for Uim | |
374 | Summary(pl.UTF-8): Obsługa wyszukiwania EB w Uimie | |
375 | Group: Libraries | |
376 | Requires(post,postun): %{_bindir}/uim-module-manager | |
377 | Requires: %{name} = %{version}-%{release} | |
378 | ||
379 | %description eb | |
380 | This package provides support for searching text in books in EB | |
381 | format. | |
382 | ||
383 | %description eb -l pl.UTF-8 | |
384 | Ten pakiet zawiera obsługę wyszukiwania tekstu w książkach w formacie | |
385 | EB. | |
386 | ||
387 | %package m17n | |
388 | Summary: m17n-lib support for Uim | |
389 | Summary(pl.UTF-8): Obsługa m17n-lib w Uimie | |
390 | Group: Libraries | |
391 | Requires(post,postun): %{_bindir}/uim-module-manager | |
392 | Requires: %{name} = %{version}-%{release} | |
393 | Requires: m17n-lib >= 1.3.1 | |
394 | ||
395 | %description m17n | |
396 | This package provides support for m17n-lib, which allows input of many | |
397 | languages using the input table map from m17n-db. | |
398 | ||
399 | %description m17n -l pl.UTF-8 | |
400 | Ten pakiet zawiera obsługę m17n-lib, co pozwala na wprowadzanie znaków | |
401 | wielu języków przy użyciu tablic wejściowych z m17n-db. | |
402 | ||
403 | %package mana | |
404 | Summary: Mana support for Uim | |
405 | Summary(pl.UTF-8): Obsługa metody Mana w Uimie | |
406 | Group: Libraries | |
407 | Requires(post,postun): %{_bindir}/uim-module-manager | |
408 | Requires: %{name} = %{version}-%{release} | |
409 | Requires: mana | |
410 | Requires: mana-uim | |
411 | ||
412 | %description mana | |
413 | This package provides support for mana, a Japanese input method. | |
414 | ||
415 | %description mana -l pl.UTF-8 | |
416 | Ten pakiet zawiera obsługę metody Mana wprowadzania znaków | |
417 | japońskich. | |
418 | ||
419 | %package prime | |
420 | Summary: PRIME support for Uim | |
421 | Summary(pl.UTF-8): Obsługa metody PRIME w Uimie | |
422 | Group: Libraries | |
423 | Requires(post,postun): %{_bindir}/uim-module-manager | |
424 | Requires: %{name} = %{version}-%{release} | |
425 | Requires: prime >= 0.8.5.2 | |
426 | ||
427 | %description prime | |
428 | This package provides support for PRIME, a Japanese input method. | |
429 | ||
430 | %description prime -l pl.UTF-8 | |
431 | Ten pakiet zawiera obsługę metody PRIME wprowadzania znaków | |
432 | japońskich. | |
433 | ||
434 | %package sj3 | |
435 | Summary: SJ3 support for Uim | |
436 | Summary(pl.UTF-8): Obsługa metody SJ3 w Uimie | |
437 | Group: Libraries | |
438 | Requires(post,postun): %{_bindir}/uim-module-manager | |
439 | Requires: %{name} = %{version}-%{release} | |
440 | ||
441 | %description sj3 | |
442 | This package provides support for SJ3, a Japanese input method. | |
443 | ||
444 | %description sj3 -l pl.UTF-8 | |
445 | Ten pakiet zawiera obsługę metody SJ3 wprowadzania znaków | |
446 | japońskich. | |
447 | ||
448 | %package skk | |
449 | Summary: SKK support for Uim | |
450 | Summary(pl.UTF-8): Obsługa metody SKK w Uimie | |
451 | Group: Libraries | |
452 | Requires(post,postun): %{_bindir}/uim-module-manager | |
453 | Requires: %{name} = %{version}-%{release} | |
454 | Requires: skkdic | |
455 | ||
456 | %description skk | |
457 | This package provides support for SKK, a Japanese input method. | |
458 | ||
459 | %description skk -l pl.UTF-8 | |
460 | Ten pakiet zawiera obsługę metody SKK wprowadzania znaków | |
461 | japońskich. | |
462 | ||
463 | %package wnn | |
464 | Summary: Wnn support for Uim | |
465 | Summary(pl.UTF-8): Obsługa metody Wnn w Uimie | |
466 | Group: Libraries | |
467 | Requires(post,postun): %{_bindir}/uim-module-manager | |
468 | Requires: %{name} = %{version}-%{release} | |
469 | ||
470 | %description wnn | |
471 | This package provides support for Wnn, a Japanese input method. | |
472 | ||
473 | %description wnn -l pl.UTF-8 | |
474 | Ten pakiet zawiera obsługę metody Wnn wprowadzania znaków | |
475 | japońskich. | |
476 | ||
477 | %prep | |
478 | %setup -q | |
479 | %patch0 -p1 | |
480 | %patch1 -p1 | |
481 | %patch2 -p1 | |
482 | ||
483 | cp -a fep/README fep/README.fep | |
484 | cp -a fep/README.ja fep/README.fep.ja | |
485 | cp -a fep/README.key fep/README.fep.key | |
486 | cp -a xim/README xim/README.xim | |
487 | ||
488 | %{__sed} -i -e 's,\${QML_INSTALL_DIR}/com/github/uim,${CMAKE_INSTALL_LIBDIR}/qt5/qml/uim,' \ | |
489 | qt5/applet/qtquick-plugin/CMakeLists.txt | |
490 | ||
491 | %build | |
492 | %{__gettextize} | |
493 | %{__intltoolize} | |
494 | %{__libtoolize} | |
495 | %{__aclocal} -I m4 | |
496 | %{__autoconf} | |
497 | %{__autoheader} | |
498 | %{__automake} | |
499 | %configure \ | |
500 | MANA=/usr/bin/mana \ | |
501 | --enable-default-toolkit=gtk3 \ | |
502 | --enable-dict \ | |
503 | --disable-gnome-applet \ | |
504 | %{?with_gnome:--enable-gnome3-applet} \ | |
505 | %{?with_kde4:--enable-kde4-applet} \ | |
506 | --enable-notify=libnotify%{?with_kde4:,knotify4} \ | |
507 | --enable-openssl \ | |
508 | --enable-pref \ | |
509 | %{?with_qt4:--enable-qt4-qt3support} \ | |
510 | --without-anthy \ | |
511 | %{?with_anthy:--with-anthy-utf8} \ | |
512 | %{?with_canna:--with-canna} \ | |
513 | --with-curl \ | |
514 | %{?with_eb:--with-eb} \ | |
515 | --with-expat \ | |
516 | --with-ffi \ | |
517 | --with-gtk2 \ | |
518 | --with-gtk3 \ | |
519 | %{!?with_kde5:--without-kde5} \ | |
520 | --with-libedit \ | |
521 | --with-libgcroots=installed \ | |
522 | --with-lispdir=%{_datadir}/emacs/site-lisp \ | |
523 | %{!?with_m17n:--without-m17nlib} \ | |
524 | %{!?with_mana:--without-mana} \ | |
525 | --without-openssl-header-check \ | |
526 | %{!?with_prime:--without-prime} \ | |
527 | %{?with_qt3:--with-qt --with-qt-immodule} \ | |
528 | %{?with_qt4:--with-qt4 --with-qt4-immodule} \ | |
529 | %{?with_qt5:--with-qt5 --with-qt5-immodule --with-quick} \ | |
530 | --with-sj3 \ | |
531 | --with-skk \ | |
532 | --with-sqlite3 \ | |
533 | --with-ssl-engine \ | |
534 | %{?with_wnn:--with-wnn --with-wnn-includes=/usr/include/wnn} \ | |
535 | --with-x \ | |
536 | --with-xft | |
537 | ||
538 | %{__make} -j1 | |
539 | ||
540 | %install | |
541 | rm -rf $RPM_BUILD_ROOT | |
542 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinput.d \ | |
543 | $RPM_BUILD_ROOT%{_datadir}/{emacs/site-lisp,xemacs-packages/lisp}/site-start.d \ | |
544 | $RPM_BUILD_ROOT%{_localstatedir}/lib/uim | |
545 | ||
546 | %{__make} -j1 install \ | |
547 | QT_PLUGINSDIR=%{_libdir}/qt/plugins-mt \ | |
548 | DESTDIR=$RPM_BUILD_ROOT | |
549 | ||
550 | # For XEmacs | |
551 | %{__make} -j1 install -C emacs \ | |
552 | DESTDIR=$RPM_BUILD_ROOT \ | |
553 | UIMEL_LISP_DIR=%{_datadir}/xemacs-packages/lisp/uim-el | |
554 | ||
555 | %{__rm} $RPM_BUILD_ROOT%{_libdir}{,/gtk*/*/immodules,/uim/*%{?with_gnome:,/gnome-panel/modules}%{?with_qt3:,/qt/plugins-mt/*}}/*.la | |
556 | ||
557 | %{__sed} -e 's|@@LIB@@|%{_lib}|g' %{SOURCE1} >$RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinput.d/uim.conf | |
558 | install -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d/ | |
559 | install -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/xemacs-packages/lisp/ | |
560 | ||
561 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/uim/{installed-modules,loader}.scm $RPM_BUILD_ROOT%{_localstatedir}/lib/uim/ | |
562 | ln -sf %{_localstatedir}/lib/uim/installed-modules.scm $RPM_BUILD_ROOT%{_datadir}/uim/ | |
563 | ln -sf %{_localstatedir}/lib/uim/loader.scm $RPM_BUILD_ROOT%{_datadir}/uim/ | |
564 | ||
565 | # remnants of removed SCIM module | |
566 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/uim/pixmaps/scim.{png,svg} | |
567 | ||
568 | # OSX-specific | |
569 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/uim/annotation-osx-dcs.scm | |
570 | ||
571 | # Register additional input methods | |
572 | LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} \ | |
573 | LIBUIM_SYSTEM_SCM_FILES=$RPM_BUILD_ROOT%{_datadir}/uim/lib \ | |
574 | LIBUIM_SCM_FILES=$RPM_BUILD_ROOT%{_datadir}/uim \ | |
575 | LIBUIM_PLUGIN_LIB_DIR=$RPM_BUILD_ROOT%{_libdir}/uim/plugin \ | |
576 | UIM_DISABLE_NOTIFY=1 \ | |
577 | $RPM_BUILD_ROOT%{_bindir}/uim-module-manager \ | |
578 | --path $RPM_BUILD_ROOT%{_localstatedir}/lib/uim \ | |
579 | --register tcode trycode hangul | |
580 | ||
581 | # Unregister methods that come from separate packages | |
582 | LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} \ | |
583 | LIBUIM_SYSTEM_SCM_FILES=$RPM_BUILD_ROOT%{_datadir}/uim/lib \ | |
584 | LIBUIM_SCM_FILES=$RPM_BUILD_ROOT%{_datadir}/uim \ | |
585 | LIBUIM_PLUGIN_LIB_DIR=$RPM_BUILD_ROOT%{_libdir}/uim/plugin \ | |
586 | UIM_DISABLE_NOTIFY=1 \ | |
587 | $RPM_BUILD_ROOT%{_bindir}/uim-module-manager \ | |
588 | --path $RPM_BUILD_ROOT%{_localstatedir}/lib/uim \ | |
589 | --unregister anthy-utf8 canna m17nlib mana prime sj3 skk wnn | |
590 | ||
591 | %find_lang %{name} | |
592 | ||
593 | %clean | |
594 | rm -rf $RPM_BUILD_ROOT | |
595 | ||
596 | %post -p /sbin/ldconfig | |
597 | %postun -p /sbin/ldconfig | |
598 | ||
599 | %post gtk2 | |
600 | %if "%{_lib}" == "lib64" | |
601 | %{_bindir}/gtk-query-immodules-2.0-64 > %{_sysconfdir}/gtk64-2.0/gtk.immodules | |
602 | %else | |
603 | %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules | |
604 | %endif | |
605 | ||
606 | %postun gtk2 | |
607 | %if "%{_lib}" == "lib64" | |
608 | %{_bindir}/gtk-query-immodules-2.0-64 > %{_sysconfdir}/gtk64-2.0/gtk.immodules | |
609 | %else | |
610 | %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules | |
611 | %endif | |
612 | ||
613 | %post gtk3 | |
614 | %if "%{_lib}" == "lib64" | |
615 | %{_bindir}/gtk-query-immodules-3.0-64 --update-cache | |
616 | %else | |
617 | %{_bindir}/gtk-query-immodules-3.0 --update-cache | |
618 | %endif | |
619 | ||
620 | %postun gtk3 | |
621 | %if "%{_lib}" == "lib64" | |
622 | %{_bindir}/gtk-query-immodules-3.0-64 --update-cache | |
623 | %else | |
624 | %{_bindir}/gtk-query-immodules-3.0 --update-cache | |
625 | %endif | |
626 | ||
627 | %post anthy | |
628 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register anthy-utf8 | |
629 | ||
630 | %postun anthy | |
631 | if [ "$1" = "0" ]; then | |
632 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister anthy-utf8 | |
633 | fi | |
634 | ||
635 | %post canna | |
636 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register canna | |
637 | ||
638 | %postun canna | |
639 | if [ "$1" = "0" ]; then | |
640 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister canna | |
641 | fi | |
642 | ||
643 | %post m17n | |
644 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register m17nlib | |
645 | ||
646 | %postun m17n | |
647 | if [ "$1" = "0" ]; then | |
648 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister m17nlib | |
649 | fi | |
650 | ||
651 | %post mana | |
652 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register mana | |
653 | ||
654 | %postun mana | |
655 | if [ "$1" = "0" ]; then | |
656 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister mana | |
657 | fi | |
658 | ||
659 | %post prime | |
660 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register prime | |
661 | ||
662 | %postun prime | |
663 | if [ "$1" = "0" ]; then | |
664 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister prime | |
665 | fi | |
666 | ||
667 | %post sj3 | |
668 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register sj3 | |
669 | ||
670 | %postun sj3 | |
671 | if [ "$1" = "0" ]; then | |
672 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister sj3 | |
673 | fi | |
674 | ||
675 | %post skk | |
676 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register skk | |
677 | ||
678 | %postun skk | |
679 | if [ "$1" = "0" ]; then | |
680 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister skk | |
681 | fi | |
682 | ||
683 | %post wnn | |
684 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register wnn | |
685 | ||
686 | %postun wnn | |
687 | if [ "$1" = "0" ]; then | |
688 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister wnn | |
689 | fi | |
690 | ||
691 | %files -f %{name}.lang | |
692 | %defattr(644,root,root,755) | |
693 | %doc AUTHORS COPYING NEWS README RELNOTE fep/README.fep{,.key} xim/README.xim | |
694 | %lang(ja) %doc fep/README.fep.ja | |
695 | %{_sysconfdir}/X11/xinit/xinput.d/uim.conf | |
696 | %attr(755,root,root) %{_bindir}/uim-fep | |
697 | %attr(755,root,root) %{_bindir}/uim-fep-tick | |
698 | %attr(755,root,root) %{_bindir}/uim-help | |
699 | %attr(755,root,root) %{_bindir}/uim-module-manager | |
700 | %attr(755,root,root) %{_bindir}/uim-sh | |
701 | %attr(755,root,root) %{_bindir}/uim-xim | |
702 | %attr(755,root,root) %{_libdir}/libuim.so.*.*.* | |
703 | %attr(755,root,root) %ghost %{_libdir}/libuim.so.8 | |
704 | %attr(755,root,root) %{_libdir}/libuim-custom.so.*.*.* | |
705 | %attr(755,root,root) %ghost %{_libdir}/libuim-custom.so.2 | |
706 | %attr(755,root,root) %{_libdir}/libuim-scm.so.*.*.* | |
707 | %attr(755,root,root) %ghost %{_libdir}/libuim-scm.so.0 | |
708 | %attr(755,root,root) %{_libexecdir}/uim-helper-server | |
709 | %dir %{_libdir}/uim | |
710 | %dir %{_libdir}/uim/notify | |
711 | %attr(755,root,root) %{_libdir}/uim/notify/libuimnotify-libnotify.so | |
712 | %dir %{_libdir}/uim/plugin | |
713 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-curl.so | |
714 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-custom-enabler.so | |
715 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-editline.so | |
716 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-expat.so | |
717 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-ffi.so | |
718 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-fileio.so | |
719 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-lolevel.so | |
720 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-look.so | |
721 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-process.so | |
722 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-socket.so | |
723 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-sqlite3.so | |
724 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-xkb.so | |
725 | %dir %{_datadir}/uim | |
726 | %{_datadir}/uim/byeoru-data | |
727 | %{_datadir}/uim/helperdata | |
728 | %{_datadir}/uim/lib | |
729 | %{_datadir}/uim/pixmaps | |
730 | %{_datadir}/uim/tables | |
731 | %{_datadir}/uim/*.scm | |
732 | # NOTE: scm and pixmaps files are always installed, even if particular part is disabled by bcond | |
733 | # by using unconditional exclude we avoid packaging them if bcond is disabled | |
734 | %exclude %{_datadir}/uim/pixmaps/anthy*.png | |
735 | %exclude %{_datadir}/uim/pixmaps/canna.png | |
736 | %exclude %{_datadir}/uim/pixmaps/m17n*png | |
737 | %exclude %{_datadir}/uim/pixmaps/mana.png | |
738 | %exclude %{_datadir}/uim/pixmaps/mana.svg | |
739 | %if %{with prime} | |
740 | %exclude %{_datadir}/uim/pixmaps/prime*.png | |
741 | %endif | |
742 | %exclude %{_datadir}/uim/pixmaps/sj3.png | |
743 | %exclude %{_datadir}/uim/pixmaps/sj3.svg | |
744 | %exclude %{_datadir}/uim/pixmaps/skk*.png | |
745 | %exclude %{_datadir}/uim/pixmaps/skk*.svg | |
746 | %exclude %{_datadir}/uim/pixmaps/wnn.png | |
747 | %exclude %{_datadir}/uim/pixmaps/wnn.svg | |
748 | %exclude %{_datadir}/uim/annotation-eb.scm | |
749 | %exclude %{_datadir}/uim/anthy*.scm | |
750 | %exclude %{_datadir}/uim/canna*.scm | |
751 | %exclude %{_datadir}/uim/m17nlib*.scm | |
752 | %exclude %{_datadir}/uim/mana*.scm | |
753 | %if %{with prime} | |
754 | %exclude %{_datadir}/uim/prime*.scm | |
755 | %endif | |
756 | %exclude %{_datadir}/uim/sj3*.scm | |
757 | %exclude %{_datadir}/uim/skk*.scm | |
758 | %exclude %{_datadir}/uim/wnn*.scm | |
759 | %{_desktopdir}/uim.desktop | |
760 | %{_mandir}/man1/uim-xim.1* | |
761 | %dir %{_localstatedir}/lib/uim | |
762 | %verify(not md5 mtime size) %{_localstatedir}/lib/uim/installed-modules.scm | |
763 | %verify(not md5 mtime size) %{_localstatedir}/lib/uim/loader.scm | |
764 | ||
765 | %files devel | |
766 | %defattr(644,root,root,755) | |
767 | %attr(755,root,root) %{_libdir}/libuim.so | |
768 | %attr(755,root,root) %{_libdir}/libuim-custom.so | |
769 | %attr(755,root,root) %{_libdir}/libuim-scm.so | |
770 | %{_includedir}/%{name} | |
771 | %{_pkgconfigdir}/uim.pc | |
772 | ||
773 | %files gtk2 | |
774 | %defattr(644,root,root,755) | |
775 | %attr(755,root,root) %{_bindir}/uim-dict-gtk | |
776 | %attr(755,root,root) %{_bindir}/uim-im-switcher-gtk | |
777 | %attr(755,root,root) %{_bindir}/uim-input-pad-ja | |
778 | %attr(755,root,root) %{_bindir}/uim-pref-gtk | |
779 | %attr(755,root,root) %{_bindir}/uim-toolbar-gtk | |
780 | %attr(755,root,root) %{_bindir}/uim-toolbar-gtk-systray | |
781 | %attr(755,root,root) %{_libdir}/gtk-2.0/*/immodules/im-uim.so | |
782 | %attr(755,root,root) %{_libexecdir}/uim-candwin-gtk | |
783 | %attr(755,root,root) %{_libexecdir}/uim-candwin-tbl-gtk | |
784 | %attr(755,root,root) %{_libexecdir}/uim-candwin-horizontal-gtk | |
785 | ||
786 | %files gtk3 | |
787 | %defattr(644,root,root,755) | |
788 | %attr(755,root,root) %{_bindir}/uim-dict-gtk3 | |
789 | %attr(755,root,root) %{_bindir}/uim-im-switcher-gtk3 | |
790 | %attr(755,root,root) %{_bindir}/uim-input-pad-ja-gtk3 | |
791 | %attr(755,root,root) %{_bindir}/uim-pref-gtk3 | |
792 | %attr(755,root,root) %{_bindir}/uim-toolbar-gtk3 | |
793 | %attr(755,root,root) %{_bindir}/uim-toolbar-gtk3-systray | |
794 | %attr(755,root,root) %{_libdir}/gtk-3.0/*/immodules/im-uim.so | |
795 | %attr(755,root,root) %{_libexecdir}/uim-candwin-gtk3 | |
796 | %attr(755,root,root) %{_libexecdir}/uim-candwin-tbl-gtk3 | |
797 | %attr(755,root,root) %{_libexecdir}/uim-candwin-horizontal-gtk3 | |
798 | %dir %{_datadir}/uim/ui | |
799 | %{_datadir}/uim/ui/uim-applet-menu.xml | |
800 | ||
801 | %if %{with gnome} | |
802 | %files gnome | |
803 | %defattr(644,root,root,755) | |
804 | %attr(755,root,root) %{_libdir}/gnome-panel/modules/uim.so | |
805 | %endif | |
806 | ||
807 | %if %{with qt3} | |
808 | %files qt3 | |
809 | %defattr(644,root,root,755) | |
810 | %attr(755,root,root) %{_bindir}/uim-chardict-qt | |
811 | %attr(755,root,root) %{_bindir}/uim-im-switcher-qt | |
812 | %attr(755,root,root) %{_bindir}/uim-pref-qt | |
813 | %attr(755,root,root) %{_bindir}/uim-toolbar-qt | |
814 | %attr(755,root,root) %{_libexecdir}/uim-candwin-qt | |
815 | %attr(755,root,root) %{_libdir}/qt/plugins-mt/inputmethods/libquiminputcontextplugin.so | |
816 | %endif | |
817 | ||
818 | %if %{with qt4} | |
819 | %files qt4 | |
820 | %defattr(644,root,root,755) | |
821 | %attr(755,root,root) %{_bindir}/uim-chardict-qt4 | |
822 | %attr(755,root,root) %{_bindir}/uim-im-switcher-qt4 | |
823 | %attr(755,root,root) %{_bindir}/uim-pref-qt4 | |
824 | %attr(755,root,root) %{_bindir}/uim-toolbar-qt4 | |
825 | %attr(755,root,root) %{_libdir}/qt4/plugins/inputmethods/libuiminputcontextplugin.so | |
826 | %attr(755,root,root) %{_libexecdir}/uim-candwin-qt4 | |
827 | %endif | |
828 | ||
829 | %if %{with qt5} | |
830 | %files qt5 | |
831 | %defattr(644,root,root,755) | |
832 | %attr(755,root,root) %{_bindir}/uim-chardict-qt5 | |
833 | %attr(755,root,root) %{_bindir}/uim-im-switcher-qt5 | |
834 | %attr(755,root,root) %{_bindir}/uim-pref-qt5 | |
835 | %attr(755,root,root) %{_bindir}/uim-toolbar-qt5 | |
836 | %attr(755,root,root) %{_libexecdir}/uim-candwin-qt5 | |
837 | %attr(755,root,root) %{_libdir}/qt5/plugins/platforminputcontexts/libuimplatforminputcontextplugin.so | |
838 | %dir %{_libdir}/qt5/qml/uim | |
839 | %attr(755,root,root) %{_libdir}/qt5/qml/uim/libuim-qtquick-plugin.so | |
840 | %{_libdir}/qt5/qml/uim/qmldir | |
841 | %endif | |
842 | ||
843 | %if %{with kde4} | |
844 | %files kde | |
845 | %defattr(644,root,root,755) | |
846 | %attr(755,root,root) %{_libdir}/kde4/plasma_applet_uim.so | |
847 | %attr(755,root,root) %{_libdir}/uim/notify/libuimnotify-knotify4.so | |
848 | %{_datadir}/kde4/services/plasma-applet-uim.desktop | |
849 | %endif | |
850 | ||
851 | %if %{with kde5} | |
852 | %files kde5 | |
853 | %defattr(644,root,root,755) | |
854 | %{_datadir}/kservices5/plasma-applet-com.github.uim.status.desktop | |
855 | %{_datadir}/metainfo/com.github.uim.status.appdata.xml | |
856 | %{_datadir}/plasma/plasmoids/com.github.uim.status | |
857 | %endif | |
858 | ||
859 | %files -n emacs-common-uim | |
860 | %defattr(644,root,root,755) | |
861 | %attr(755,root,root) %{_bindir}/uim-el-agent | |
862 | %attr(755,root,root) %{_bindir}/uim-el-helper-agent | |
863 | ||
864 | %files -n emacs-uim | |
865 | %defattr(644,root,root,755) | |
866 | %{_datadir}/emacs/site-lisp/uim-el | |
867 | %{_datadir}/emacs/site-lisp/site-start.d/uim-init.el | |
868 | ||
869 | %files -n xemacs-uim | |
870 | %defattr(644,root,root,755) | |
871 | %{_datadir}/xemacs-packages/lisp/uim-el | |
872 | %{_datadir}/xemacs-packages/lisp/uim-init.el | |
873 | ||
874 | %if %{with anthy} | |
875 | %files anthy | |
876 | %defattr(644,root,root,755) | |
877 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-anthy-utf8.so | |
878 | %{_datadir}/uim/anthy*.scm | |
879 | %{_datadir}/uim/pixmaps/anthy*.png | |
880 | %endif | |
881 | ||
882 | %if %{with canna} | |
883 | %files canna | |
884 | %defattr(644,root,root,755) | |
885 | %{_datadir}/uim/canna*.scm | |
886 | %{_datadir}/uim/pixmaps/canna.png | |
887 | %endif | |
888 | ||
889 | %if %{with eb} | |
890 | %files eb | |
891 | %defattr(644,root,root,755) | |
892 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-eb.so | |
893 | %{_datadir}/uim/annotation-eb.scm | |
894 | %endif | |
895 | ||
896 | %if %{with m17n} | |
897 | %files m17n | |
898 | %defattr(644,root,root,755) | |
899 | %attr(755,root,root) %{_bindir}/uim-m17nlib-relink-icons | |
900 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-m17nlib.so | |
901 | %{_datadir}/uim/m17nlib*.scm | |
902 | %{_datadir}/uim/pixmaps/m17n*.png | |
903 | %endif | |
904 | ||
905 | %if %{with mana} | |
906 | %files mana | |
907 | %defattr(644,root,root,755) | |
908 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-mana.so | |
909 | %{_datadir}/uim/mana*.scm | |
910 | %{_datadir}/uim/pixmaps/mana.png | |
911 | %{_datadir}/uim/pixmaps/mana.svg | |
912 | %endif | |
913 | ||
914 | %if %{with prime} | |
915 | %files prime | |
916 | %defattr(644,root,root,755) | |
917 | %{_datadir}/uim/prime*.scm | |
918 | %{_datadir}/uim/pixmaps/prime*.png | |
919 | %endif | |
920 | ||
921 | %files sj3 | |
922 | %defattr(644,root,root,755) | |
923 | %{_datadir}/uim/sj3*.scm | |
924 | %{_datadir}/uim/pixmaps/sj3.png | |
925 | %{_datadir}/uim/pixmaps/sj3.svg | |
926 | ||
927 | %files skk | |
928 | %defattr(644,root,root,755) | |
929 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-skk.so | |
930 | %{_datadir}/uim/skk*.scm | |
931 | %{_datadir}/uim/pixmaps/skk*.png | |
932 | %{_datadir}/uim/pixmaps/skk*.svg | |
933 | ||
934 | %if %{with wnn} | |
935 | %files wnn | |
936 | %defattr(644,root,root,755) | |
937 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-wnn.so | |
938 | %{_datadir}/uim/wnn*.scm | |
939 | %{_datadir}/uim/pixmaps/wnn.png | |
940 | %{_datadir}/uim/pixmaps/wnn.svg | |
941 | %endif |