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