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