]>
Commit | Line | Data |
---|---|---|
f322f76f | 1 | # TODO: package kde5 plasmoid |
49d5fc91 JB |
2 | # |
3 | # Conditional build: | |
bd5acb7e | 4 | %bcond_without gnome # GNOME 3 panel applet |
f322f76f JB |
5 | %bcond_with kde4 # KDE 4 panel applet and knotify4 plugin |
6 | %bcond_with kde5 # KDE 5 plasmoid | |
3caa2e4e | 7 | %bcond_with qt3 # Qt 3 support / immodule |
a224586e | 8 | %bcond_without qt4 # Qt 4 support / immodule |
f322f76f | 9 | %bcond_without qt5 # Qt 5 support / immodule / quick plugin |
d5e30092 JB |
10 | %bcond_without anthy # Anthy IM and dictionary support |
11 | %bcond_without canna # Canna IM and dictionary support | |
12 | %bcond_without eb # EB text search support | |
9b05171f | 13 | %bcond_without m17n # m17n IM support |
9cb37a7f | 14 | %bcond_with mana # mana IM support |
bd5acb7e | 15 | %bcond_without prime # PRIME IM support |
b2aa69ad | 16 | %bcond_without wnn # Wnn IM support |
49d5fc91 | 17 | # |
e899826e | 18 | Summary: Multilingual input method library |
57784c95 | 19 | Summary(pl.UTF-8): Biblioteka obsługująca wejście w wielu językach |
e899826e | 20 | Name: uim |
f322f76f JB |
21 | Version: 1.8.9 |
22 | Release: 1 | |
bd5acb7e | 23 | License: BSD |
e899826e | 24 | Group: Libraries |
d611abd5 | 25 | #Source0Download: https://github.com/uim/uim/releases |
bd5acb7e | 26 | Source0: https://github.com/uim/uim/releases/download/%{version}/%{name}-%{version}.tar.bz2 |
f322f76f | 27 | # Source0-md5: fd4a5f60dea0596cac81956792942b9b |
f2675bdf JR |
28 | Source1: %{name}.xinputd |
29 | Source2: %{name}-init.el | |
26f033cf | 30 | Patch0: %{name}-emacs-utf8.patch |
bd5acb7e | 31 | Patch1: %{name}-gnome-panel-update.patch |
f322f76f | 32 | Patch2: %{name}-qt5-options.patch |
d611abd5 | 33 | URL: https://github.com/uim/uim/wiki |
9b05171f | 34 | %{?with_canna:BuildRequires: Canna-devel} |
a224586e JB |
35 | %{?with_wnn:BuildRequires: FreeWnn-devel} |
36 | %{?with_qt4:BuildRequires: Qt3Support-devel >= 4} | |
bd5acb7e JB |
37 | %{?with_qt4:BuildRequires: QtCore-devel >= 4} |
38 | %{?with_qt4:BuildRequires: QtGui-devel >= 4} | |
39 | %{?with_qt5:BuildRequires: Qt5Core-devel >= 5} | |
40 | %{?with_qt5:BuildRequires: Qt5Gui-devel >= 5} | |
f322f76f JB |
41 | %{?with_qt5:BuildRequires: Qt5Qml-devel >= 5} |
42 | %{?with_qt5:BuildRequires: Qt5Quick-devel >= 5} | |
bd5acb7e | 43 | %{?with_qt5:BuildRequires: Qt5Widgets-devel >= 5} |
9b05171f | 44 | %{?with_anthy:BuildRequires: anthy-devel >= 9100h-2} |
db59d528 JB |
45 | BuildRequires: autoconf >= 2.60b |
46 | BuildRequires: automake >= 1:1.10 | |
f322f76f JB |
47 | %{?with_kde4:BuildRequires: automoc4} |
48 | %if %{with kde4} || %{with qt5} | |
49 | BuildRequires: cmake | |
50 | %endif | |
a224586e | 51 | BuildRequires: curl-devel >= 7.16.4 |
49d5fc91 | 52 | %{?with_eb:BuildRequires: eb-devel} |
a224586e | 53 | BuildRequires: expat-devel >= 1.95 |
44de909a | 54 | BuildRequires: gettext-tools >= 0.17 |
bd5acb7e | 55 | %{?with_gnome:BuildRequires: gnome-panel-devel >= 3.37} |
a224586e JB |
56 | BuildRequires: gtk+2-devel >= 2:2.4.0 |
57 | BuildRequires: gtk+3-devel >= 3.0 | |
f322f76f | 58 | %{?with_kde5:BuildRequires: kf5-plasma-devel} |
a224586e | 59 | BuildRequires: intltool >= 0.36.3 |
f322f76f | 60 | %{?with_kde4:BuildRequires: kde4-kdelibs-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 JR |
278 | |
279 | %package -n emacs-common-uim | |
280 | Summary: Common package for Emacsen support for Uim | |
9b05171f | 281 | Summary(pl.UTF-8): Pakiet wspólny Uima dla emacsów |
f2675bdf | 282 | Group: Libraries |
ce8c7195 | 283 | Requires: %{name} = %{version}-%{release} |
f2675bdf JR |
284 | |
285 | %description -n emacs-common-uim | |
286 | This package provides an utility to use Emacsen support for Uim. | |
287 | ||
9b05171f JB |
288 | %description -n emacs-common-uim -l pl.UTF-8 |
289 | Ten pakiet zawiera narzędzia pozwalające na używanie Uima w emacsach. | |
290 | ||
291 | %package -n emacs-uim | |
292 | Summary: Emacs support for Uim | |
293 | Summary(pl.UTF-8): Obsługa Uima w Emacsie | |
294 | Group: Libraries | |
295 | Requires: emacs | |
296 | Requires: emacs-common-uim = %{version}-%{release} | |
297 | ||
298 | %description -n emacs-uim | |
299 | This package provides Emacs support for Uim. | |
300 | ||
f322f76f | 301 | %description -n emacs-uim -l pl.UTF-8 |
9b05171f JB |
302 | Ten pakiet zapewnia obsługę Uima w Emacsie. |
303 | ||
f2675bdf JR |
304 | %package -n xemacs-uim |
305 | Summary: XEmacs support for Uim | |
9b05171f | 306 | Summary(pl.UTF-8): Obsługa Uima w XEmacsie |
f2675bdf JR |
307 | Group: Libraries |
308 | Requires: emacs-common-uim = %{version}-%{release} | |
309 | Requires: xemacs | |
310 | ||
311 | %description -n xemacs-uim | |
312 | This package provides XEmacs support. | |
313 | ||
9b05171f JB |
314 | %description -n xemacs-uim -l pl.UTF-8 |
315 | Ten pakiet zapewnia obsługę Uima w XEmacsie. | |
316 | ||
f2675bdf JR |
317 | %package anthy |
318 | Summary: Anthy support for Uim | |
9b05171f | 319 | Summary(pl.UTF-8): Obsługa metody Anthy w Uimie |
f2675bdf | 320 | Group: Libraries |
9b05171f | 321 | Requires(post,postun): %{_bindir}/uim-module-manager |
ce8c7195 | 322 | Requires: %{name} = %{version}-%{release} |
9b05171f | 323 | Requires: anthy >= 9100h |
f2675bdf JR |
324 | |
325 | %description anthy | |
326 | This package provides support for Anthy, a Japanese input method. | |
327 | ||
9b05171f JB |
328 | %description anthy -l pl.UTF-8 |
329 | Ten pakiet zawiera obsługę metody Anthy wprowadzania znaków | |
330 | japońskich. | |
331 | ||
f2675bdf JR |
332 | %package canna |
333 | Summary: Canna support for Uim | |
9b05171f | 334 | Summary(pl.UTF-8): Obsługa metody Canna w Uimie |
f2675bdf | 335 | Group: Libraries |
9b05171f | 336 | Requires(post,postun): %{_bindir}/uim-module-manager |
ce8c7195 | 337 | Requires: %{name} = %{version}-%{release} |
9b05171f | 338 | Requires: Canna |
f2675bdf JR |
339 | |
340 | %description canna | |
341 | This package provides support for Canna, a Japanese input method. | |
342 | ||
9b05171f JB |
343 | %description canna -l pl.UTF-8 |
344 | Ten pakiet zawiera obsługę metody Canna wprowadzania znaków | |
345 | japońskich. | |
346 | ||
d5e30092 JB |
347 | %package eb |
348 | Summary: EB search support for Uim | |
349 | Summary(pl.UTF-8): Obsługa wyszukiwania EB w Uimie | |
350 | Group: Libraries | |
351 | Requires(post,postun): %{_bindir}/uim-module-manager | |
352 | Requires: %{name} = %{version}-%{release} | |
353 | ||
354 | %description eb | |
355 | This package provides support for searching text in books in EB | |
356 | format. | |
357 | ||
358 | %description eb -l pl.UTF-8 | |
359 | Ten pakiet zawiera obsługę wyszukiwania tekstu w książkach w formacie | |
360 | EB. | |
361 | ||
9b05171f JB |
362 | %package m17n |
363 | Summary: m17n-lib support for Uim | |
364 | Summary(pl.UTF-8): Obsługa m17n-lib w Uimie | |
365 | Group: Libraries | |
366 | Requires(post,postun): %{_bindir}/uim-module-manager | |
367 | Requires: %{name} = %{version}-%{release} | |
a224586e | 368 | Requires: m17n-lib >= 1.3.1 |
9b05171f JB |
369 | |
370 | %description m17n | |
371 | This package provides support for m17n-lib, which allows input of many | |
372 | languages using the input table map from m17n-db. | |
373 | ||
374 | %description m17n -l pl.UTF-8 | |
375 | Ten pakiet zawiera obsługę m17n-lib, co pozwala na wprowadzanie znaków | |
376 | wielu języków przy użyciu tablic wejściowych z m17n-db. | |
377 | ||
f2675bdf JR |
378 | %package mana |
379 | Summary: Mana support for Uim | |
9b05171f | 380 | Summary(pl.UTF-8): Obsługa metody Mana w Uimie |
f2675bdf | 381 | Group: Libraries |
9b05171f JB |
382 | Requires(post,postun): %{_bindir}/uim-module-manager |
383 | Requires: %{name} = %{version}-%{release} | |
f2675bdf | 384 | Requires: mana |
ce8c7195 | 385 | Requires: mana-uim |
f2675bdf JR |
386 | |
387 | %description mana | |
388 | This package provides support for mana, a Japanese input method. | |
389 | ||
9b05171f JB |
390 | %description mana -l pl.UTF-8 |
391 | Ten pakiet zawiera obsługę metody Mana wprowadzania znaków | |
392 | japońskich. | |
393 | ||
ce8c7195 JR |
394 | %package prime |
395 | Summary: PRIME support for Uim | |
9b05171f | 396 | Summary(pl.UTF-8): Obsługa metody PRIME w Uimie |
ce8c7195 | 397 | Group: Libraries |
9b05171f | 398 | Requires(post,postun): %{_bindir}/uim-module-manager |
ce8c7195 | 399 | Requires: %{name} = %{version}-%{release} |
a224586e | 400 | Requires: prime >= 0.8.5.2 |
ce8c7195 JR |
401 | |
402 | %description prime | |
403 | This package provides support for PRIME, a Japanese input method. | |
404 | ||
9b05171f JB |
405 | %description prime -l pl.UTF-8 |
406 | Ten pakiet zawiera obsługę metody PRIME wprowadzania znaków | |
407 | japońskich. | |
408 | ||
d5e30092 JB |
409 | %package sj3 |
410 | Summary: SJ3 support for Uim | |
411 | Summary(pl.UTF-8): Obsługa metody SJ3 w Uimie | |
412 | Group: Libraries | |
413 | Requires(post,postun): %{_bindir}/uim-module-manager | |
414 | Requires: %{name} = %{version}-%{release} | |
415 | ||
416 | %description sj3 | |
417 | This package provides support for SJ3, a Japanese input method. | |
418 | ||
419 | %description sj3 -l pl.UTF-8 | |
420 | Ten pakiet zawiera obsługę metody SJ3 wprowadzania znaków | |
421 | japońskich. | |
422 | ||
f2675bdf JR |
423 | %package skk |
424 | Summary: SKK support for Uim | |
9b05171f | 425 | Summary(pl.UTF-8): Obsługa metody SKK w Uimie |
f2675bdf | 426 | Group: Libraries |
9b05171f | 427 | Requires(post,postun): %{_bindir}/uim-module-manager |
ce8c7195 | 428 | Requires: %{name} = %{version}-%{release} |
9b05171f | 429 | Requires: skkdic |
f2675bdf JR |
430 | |
431 | %description skk | |
432 | This package provides support for SKK, a Japanese input method. | |
433 | ||
9b05171f JB |
434 | %description skk -l pl.UTF-8 |
435 | Ten pakiet zawiera obsługę metody SKK wprowadzania znaków | |
436 | japońskich. | |
f2675bdf | 437 | |
d5e30092 JB |
438 | %package wnn |
439 | Summary: Wnn support for Uim | |
440 | Summary(pl.UTF-8): Obsługa metody Wnn w Uimie | |
441 | Group: Libraries | |
442 | Requires(post,postun): %{_bindir}/uim-module-manager | |
443 | Requires: %{name} = %{version}-%{release} | |
444 | ||
445 | %description wnn | |
446 | This package provides support for Wnn, a Japanese input method. | |
447 | ||
448 | %description wnn -l pl.UTF-8 | |
449 | Ten pakiet zawiera obsługę metody Wnn wprowadzania znaków | |
450 | japońskich. | |
451 | ||
e899826e | 452 | %prep |
453 | %setup -q | |
454 | %patch0 -p1 | |
bd5acb7e | 455 | %patch1 -p1 |
f322f76f | 456 | %patch2 -p1 |
f2675bdf JR |
457 | |
458 | cp -a fep/README fep/README.fep | |
459 | cp -a fep/README.ja fep/README.fep.ja | |
460 | cp -a fep/README.key fep/README.fep.key | |
461 | cp -a xim/README xim/README.xim | |
e899826e | 462 | |
f322f76f JB |
463 | %{__sed} -i -e 's,\${QML_INSTALL_DIR}/com/github/uim,${CMAKE_INSTALL_LIBDIR}/qt5/qml/uim,' \ |
464 | qt5/applet/qtquick-plugin/CMakeLists.txt | |
465 | ||
e899826e | 466 | %build |
a0c5f34e JR |
467 | %{__gettextize} |
468 | %{__intltoolize} | |
469 | %{__libtoolize} | |
470 | %{__aclocal} -I m4 | |
471 | %{__autoconf} | |
472 | %{__autoheader} | |
473 | %{__automake} | |
15d800b6 | 474 | %configure \ |
a224586e | 475 | MANA=/usr/bin/mana \ |
15d800b6 JR |
476 | --enable-default-toolkit=gtk3 \ |
477 | --enable-dict \ | |
bd5acb7e | 478 | --disable-gnome-applet \ |
49d5fc91 | 479 | %{?with_gnome:--enable-gnome3-applet} \ |
f322f76f JB |
480 | %{?with_kde4:--enable-kde4-applet} \ |
481 | --enable-notify=libnotify%{?with_kde4:,knotify4} \ | |
49d5fc91 JB |
482 | --enable-openssl \ |
483 | --enable-pref \ | |
a224586e | 484 | %{?with_qt4:--enable-qt4-qt3support} \ |
ce8c7195 | 485 | --without-anthy \ |
9b05171f JB |
486 | %{?with_anthy:--with-anthy-utf8} \ |
487 | %{?with_canna:--with-canna} \ | |
15d800b6 | 488 | --with-curl \ |
49d5fc91 | 489 | %{?with_eb:--with-eb} \ |
15d800b6 | 490 | --with-expat \ |
15d800b6 | 491 | --with-ffi \ |
15d800b6 JR |
492 | --with-gtk2 \ |
493 | --with-gtk3 \ | |
f322f76f | 494 | %{!?with_kde5:--without-kde5} \ |
49d5fc91 JB |
495 | --with-libedit \ |
496 | --with-libgcroots=installed \ | |
497 | --with-lispdir=%{_datadir}/emacs/site-lisp \ | |
a224586e | 498 | %{!?with_m17n:--without-m17nlib} \ |
bd5acb7e JB |
499 | %{!?with_mana:--without-mana} \ |
500 | --without-openssl-header-check \ | |
501 | %{!?with_prime:--without-prime} \ | |
a224586e JB |
502 | %{?with_qt3:--with-qt --with-qt-immodule} \ |
503 | %{?with_qt4:--with-qt4 --with-qt4-immodule} \ | |
f322f76f | 504 | %{?with_qt5:--with-qt5 --with-qt5-immodule --with-quick} \ |
d5e30092 JB |
505 | --with-sj3 \ |
506 | --with-skk \ | |
49d5fc91 JB |
507 | --with-sqlite3 \ |
508 | --with-ssl-engine \ | |
b2aa69ad | 509 | %{?with_wnn:--with-wnn --with-wnn-includes=/usr/include/wnn} \ |
49d5fc91 JB |
510 | --with-x \ |
511 | --with-xft | |
15d800b6 | 512 | |
734a1f7a | 513 | %{__make} -j1 |
e899826e | 514 | |
515 | %install | |
516 | rm -rf $RPM_BUILD_ROOT | |
f2675bdf | 517 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinput.d \ |
cda0d829 | 518 | $RPM_BUILD_ROOT%{_datadir}/{emacs/site-lisp,xemacs-packages/lisp}/site-start.d \ |
ce8c7195 | 519 | $RPM_BUILD_ROOT%{_localstatedir}/lib/uim |
e899826e | 520 | |
466aeaa9 | 521 | %{__make} -j1 install \ |
26f033cf | 522 | QT_PLUGINSDIR=%{_libdir}/qt/plugins-mt \ |
e899826e | 523 | DESTDIR=$RPM_BUILD_ROOT |
524 | ||
f2675bdf | 525 | # For XEmacs |
466aeaa9 | 526 | %{__make} -j1 install -C emacs \ |
f2675bdf | 527 | DESTDIR=$RPM_BUILD_ROOT \ |
cda0d829 | 528 | UIMEL_LISP_DIR=%{_datadir}/xemacs-packages/lisp/uim-el |
f2675bdf | 529 | |
bd5acb7e | 530 | %{__rm} $RPM_BUILD_ROOT%{_libdir}{,/gtk*/*/immodules,/uim/*%{?with_gnome:,/gnome-panel/modules}%{?with_qt3:,/qt/plugins-mt/*}}/*.la |
15d800b6 | 531 | |
f2675bdf JR |
532 | %{__sed} -e 's|@@LIB@@|%{_lib}|g' %{SOURCE1} >$RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinput.d/uim.conf |
533 | install -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d/ | |
cda0d829 | 534 | install -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/xemacs-packages/lisp/ |
f2675bdf | 535 | |
f72e2b22 | 536 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/uim/{installed-modules,loader}.scm $RPM_BUILD_ROOT%{_localstatedir}/lib/uim/ |
ce8c7195 JR |
537 | ln -sf %{_localstatedir}/lib/uim/installed-modules.scm $RPM_BUILD_ROOT%{_datadir}/uim/ |
538 | ln -sf %{_localstatedir}/lib/uim/loader.scm $RPM_BUILD_ROOT%{_datadir}/uim/ | |
539 | ||
bd5acb7e JB |
540 | # remnants of removed SCIM module |
541 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/uim/pixmaps/scim.{png,svg} | |
f72e2b22 | 542 | |
d5e30092 JB |
543 | # OSX-specific |
544 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/uim/annotation-osx-dcs.scm | |
545 | ||
ce8c7195 JR |
546 | # Register additional input methods |
547 | LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} \ | |
548 | LIBUIM_SYSTEM_SCM_FILES=$RPM_BUILD_ROOT%{_datadir}/uim/lib \ | |
549 | LIBUIM_SCM_FILES=$RPM_BUILD_ROOT%{_datadir}/uim \ | |
550 | LIBUIM_PLUGIN_LIB_DIR=$RPM_BUILD_ROOT%{_libdir}/uim/plugin \ | |
551 | UIM_DISABLE_NOTIFY=1 \ | |
552 | $RPM_BUILD_ROOT%{_bindir}/uim-module-manager \ | |
553 | --path $RPM_BUILD_ROOT%{_localstatedir}/lib/uim \ | |
554 | --register tcode trycode hangul | |
555 | ||
556 | # Unregister methods that come from separate packages | |
557 | LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} \ | |
558 | LIBUIM_SYSTEM_SCM_FILES=$RPM_BUILD_ROOT%{_datadir}/uim/lib \ | |
559 | LIBUIM_SCM_FILES=$RPM_BUILD_ROOT%{_datadir}/uim \ | |
560 | LIBUIM_PLUGIN_LIB_DIR=$RPM_BUILD_ROOT%{_libdir}/uim/plugin \ | |
561 | UIM_DISABLE_NOTIFY=1 \ | |
562 | $RPM_BUILD_ROOT%{_bindir}/uim-module-manager \ | |
563 | --path $RPM_BUILD_ROOT%{_localstatedir}/lib/uim \ | |
bd5acb7e | 564 | --unregister anthy-utf8 canna m17nlib mana prime sj3 skk wnn |
ce8c7195 | 565 | |
e899826e | 566 | %find_lang %{name} |
567 | ||
568 | %clean | |
569 | rm -rf $RPM_BUILD_ROOT | |
570 | ||
49d5fc91 JB |
571 | %post -p /sbin/ldconfig |
572 | %postun -p /sbin/ldconfig | |
ce8c7195 JR |
573 | |
574 | %post gtk2 | |
d5e30092 | 575 | %if "%{_lib}" == "lib64" |
879f273b | 576 | %{_bindir}/gtk-query-immodules-2.0-64 > %{_sysconfdir}/gtk64-2.0/gtk.immodules |
879f273b | 577 | %else |
e899826e | 578 | %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules |
879f273b | 579 | %endif |
e899826e | 580 | |
ce8c7195 | 581 | %postun gtk2 |
d5e30092 | 582 | %if "%{_lib}" == "lib64" |
879f273b | 583 | %{_bindir}/gtk-query-immodules-2.0-64 > %{_sysconfdir}/gtk64-2.0/gtk.immodules |
879f273b | 584 | %else |
5e1c7cdb | 585 | %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules |
ce8c7195 JR |
586 | %endif |
587 | ||
588 | %post gtk3 | |
d5e30092 | 589 | %if "%{_lib}" == "lib64" |
ce8c7195 JR |
590 | %{_bindir}/gtk-query-immodules-3.0-64 --update-cache |
591 | %else | |
879f273b JR |
592 | %{_bindir}/gtk-query-immodules-3.0 --update-cache |
593 | %endif | |
e899826e | 594 | |
ce8c7195 | 595 | %postun gtk3 |
d5e30092 | 596 | %if "%{_lib}" == "lib64" |
ce8c7195 JR |
597 | %{_bindir}/gtk-query-immodules-3.0-64 --update-cache |
598 | %else | |
599 | %{_bindir}/gtk-query-immodules-3.0 --update-cache | |
600 | %endif | |
601 | ||
602 | %post anthy | |
603 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register anthy-utf8 | |
604 | ||
605 | %postun anthy | |
606 | if [ "$1" = "0" ]; then | |
607 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister anthy-utf8 | |
608 | fi | |
609 | ||
610 | %post canna | |
611 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register canna | |
612 | ||
613 | %postun canna | |
614 | if [ "$1" = "0" ]; then | |
615 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister canna | |
616 | fi | |
617 | ||
9b05171f JB |
618 | %post m17n |
619 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register m17nlib | |
ce8c7195 | 620 | |
9b05171f | 621 | %postun m17n |
ce8c7195 | 622 | if [ "$1" = "0" ]; then |
9b05171f | 623 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister m17nlib |
ce8c7195 JR |
624 | fi |
625 | ||
626 | %post mana | |
627 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register mana | |
628 | ||
629 | %postun mana | |
630 | if [ "$1" = "0" ]; then | |
631 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister mana | |
632 | fi | |
633 | ||
9b05171f JB |
634 | %post prime |
635 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register prime | |
ce8c7195 | 636 | |
9b05171f | 637 | %postun prime |
ce8c7195 | 638 | if [ "$1" = "0" ]; then |
9b05171f | 639 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister prime |
ce8c7195 JR |
640 | fi |
641 | ||
d5e30092 JB |
642 | %post sj3 |
643 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register sj3 | |
644 | ||
645 | %postun sj3 | |
646 | if [ "$1" = "0" ]; then | |
647 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister sj3 | |
648 | fi | |
649 | ||
9b05171f JB |
650 | %post skk |
651 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register skk | |
ce8c7195 | 652 | |
9b05171f | 653 | %postun skk |
ce8c7195 | 654 | if [ "$1" = "0" ]; then |
9b05171f | 655 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister skk |
ce8c7195 JR |
656 | fi |
657 | ||
d5e30092 JB |
658 | %post wnn |
659 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --register wnn | |
660 | ||
661 | %postun wnn | |
662 | if [ "$1" = "0" ]; then | |
663 | %{_bindir}/uim-module-manager --path %{_localstatedir}/lib/uim --unregister wnn | |
664 | fi | |
665 | ||
e899826e | 666 | %files -f %{name}.lang |
667 | %defattr(644,root,root,755) | |
bd5acb7e JB |
668 | %doc AUTHORS COPYING NEWS README RELNOTE fep/README.fep{,.key} xim/README.xim |
669 | %lang(ja) %doc fep/README.fep.ja | |
f2675bdf | 670 | %{_sysconfdir}/X11/xinit/xinput.d/uim.conf |
771d5eda JR |
671 | %attr(755,root,root) %{_bindir}/uim-fep |
672 | %attr(755,root,root) %{_bindir}/uim-fep-tick | |
673 | %attr(755,root,root) %{_bindir}/uim-help | |
771d5eda JR |
674 | %attr(755,root,root) %{_bindir}/uim-module-manager |
675 | %attr(755,root,root) %{_bindir}/uim-sh | |
676 | %attr(755,root,root) %{_bindir}/uim-xim | |
d5e30092 JB |
677 | %attr(755,root,root) %{_libdir}/libuim.so.*.*.* |
678 | %attr(755,root,root) %ghost %{_libdir}/libuim.so.8 | |
679 | %attr(755,root,root) %{_libdir}/libuim-custom.so.*.*.* | |
680 | %attr(755,root,root) %ghost %{_libdir}/libuim-custom.so.2 | |
681 | %attr(755,root,root) %{_libdir}/libuim-scm.so.*.*.* | |
682 | %attr(755,root,root) %ghost %{_libdir}/libuim-scm.so.0 | |
b1adeb71 | 683 | %attr(755,root,root) %{_libexecdir}/uim-helper-server |
15d800b6 JR |
684 | %dir %{_libdir}/uim |
685 | %dir %{_libdir}/uim/notify | |
d5e30092 | 686 | %attr(755,root,root) %{_libdir}/uim/notify/libuimnotify-libnotify.so |
15d800b6 | 687 | %dir %{_libdir}/uim/plugin |
15d800b6 JR |
688 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-curl.so |
689 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-custom-enabler.so | |
15d800b6 JR |
690 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-editline.so |
691 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-expat.so | |
692 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-ffi.so | |
693 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-fileio.so | |
694 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-lolevel.so | |
695 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-look.so | |
15d800b6 | 696 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-process.so |
15d800b6 JR |
697 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-socket.so |
698 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-sqlite3.so | |
b1adeb71 | 699 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-xkb.so |
f2675bdf | 700 | %dir %{_datadir}/uim |
d5e30092 JB |
701 | %{_datadir}/uim/byeoru-data |
702 | %{_datadir}/uim/helperdata | |
703 | %{_datadir}/uim/lib | |
704 | %{_datadir}/uim/pixmaps | |
705 | %{_datadir}/uim/tables | |
706 | %{_datadir}/uim/*.scm | |
707 | # NOTE: scm and pixmaps files are always installed, even if particular part is disabled by bcond | |
708 | # by using unconditional exclude we avoid packaging them if bcond is disabled | |
26f033cf JR |
709 | %exclude %{_datadir}/uim/pixmaps/anthy*.png |
710 | %exclude %{_datadir}/uim/pixmaps/canna.png | |
d5e30092 | 711 | %exclude %{_datadir}/uim/pixmaps/m17n*png |
26f033cf | 712 | %exclude %{_datadir}/uim/pixmaps/mana.png |
d5e30092 | 713 | %exclude %{_datadir}/uim/pixmaps/mana.svg |
bd5acb7e | 714 | %if %{with prime} |
d5e30092 | 715 | %exclude %{_datadir}/uim/pixmaps/prime*.png |
f72e2b22 | 716 | %endif |
d5e30092 JB |
717 | %exclude %{_datadir}/uim/pixmaps/sj3.png |
718 | %exclude %{_datadir}/uim/pixmaps/sj3.svg | |
26f033cf JR |
719 | %exclude %{_datadir}/uim/pixmaps/skk*.png |
720 | %exclude %{_datadir}/uim/pixmaps/skk*.svg | |
d5e30092 JB |
721 | %exclude %{_datadir}/uim/pixmaps/wnn.png |
722 | %exclude %{_datadir}/uim/pixmaps/wnn.svg | |
c34027a2 | 723 | %exclude %{_datadir}/uim/annotation-eb.scm |
d5e30092 JB |
724 | %exclude %{_datadir}/uim/anthy*.scm |
725 | %exclude %{_datadir}/uim/canna*.scm | |
726 | %exclude %{_datadir}/uim/m17nlib*.scm | |
727 | %exclude %{_datadir}/uim/mana*.scm | |
bd5acb7e | 728 | %if %{with prime} |
d5e30092 | 729 | %exclude %{_datadir}/uim/prime*.scm |
f72e2b22 | 730 | %endif |
c34027a2 | 731 | %exclude %{_datadir}/uim/sj3*.scm |
d5e30092 JB |
732 | %exclude %{_datadir}/uim/skk*.scm |
733 | %exclude %{_datadir}/uim/wnn*.scm | |
15d800b6 | 734 | %{_desktopdir}/uim.desktop |
d5e30092 | 735 | %{_mandir}/man1/uim-xim.1* |
ce8c7195 | 736 | %dir %{_localstatedir}/lib/uim |
d5e30092 JB |
737 | %verify(not md5 mtime size) %{_localstatedir}/lib/uim/installed-modules.scm |
738 | %verify(not md5 mtime size) %{_localstatedir}/lib/uim/loader.scm | |
e899826e | 739 | |
f2675bdf JR |
740 | %files devel |
741 | %defattr(644,root,root,755) | |
d5e30092 JB |
742 | %attr(755,root,root) %{_libdir}/libuim.so |
743 | %attr(755,root,root) %{_libdir}/libuim-custom.so | |
744 | %attr(755,root,root) %{_libdir}/libuim-scm.so | |
f2675bdf | 745 | %{_includedir}/%{name} |
d5e30092 | 746 | %{_pkgconfigdir}/uim.pc |
f2675bdf JR |
747 | |
748 | %files gtk2 | |
749 | %defattr(644,root,root,755) | |
771d5eda JR |
750 | %attr(755,root,root) %{_bindir}/uim-dict-gtk |
751 | %attr(755,root,root) %{_bindir}/uim-im-switcher-gtk | |
f2675bdf | 752 | %attr(755,root,root) %{_bindir}/uim-input-pad-ja |
771d5eda JR |
753 | %attr(755,root,root) %{_bindir}/uim-pref-gtk |
754 | %attr(755,root,root) %{_bindir}/uim-toolbar-gtk | |
755 | %attr(755,root,root) %{_bindir}/uim-toolbar-gtk-systray | |
d5e30092 | 756 | %attr(755,root,root) %{_libdir}/gtk-2.0/*/immodules/im-uim.so |
b1adeb71 AG |
757 | %attr(755,root,root) %{_libexecdir}/uim-candwin-gtk |
758 | %attr(755,root,root) %{_libexecdir}/uim-candwin-tbl-gtk | |
759 | %attr(755,root,root) %{_libexecdir}/uim-candwin-horizontal-gtk | |
771d5eda | 760 | |
f2675bdf JR |
761 | %files gtk3 |
762 | %defattr(644,root,root,755) | |
771d5eda JR |
763 | %attr(755,root,root) %{_bindir}/uim-dict-gtk3 |
764 | %attr(755,root,root) %{_bindir}/uim-im-switcher-gtk3 | |
765 | %attr(755,root,root) %{_bindir}/uim-input-pad-ja-gtk3 | |
766 | %attr(755,root,root) %{_bindir}/uim-pref-gtk3 | |
767 | %attr(755,root,root) %{_bindir}/uim-toolbar-gtk3 | |
768 | %attr(755,root,root) %{_bindir}/uim-toolbar-gtk3-systray | |
d5e30092 | 769 | %attr(755,root,root) %{_libdir}/gtk-3.0/*/immodules/im-uim.so |
b1adeb71 AG |
770 | %attr(755,root,root) %{_libexecdir}/uim-candwin-gtk3 |
771 | %attr(755,root,root) %{_libexecdir}/uim-candwin-tbl-gtk3 | |
772 | %attr(755,root,root) %{_libexecdir}/uim-candwin-horizontal-gtk3 | |
f72e2b22 JB |
773 | %dir %{_datadir}/uim/ui |
774 | %{_datadir}/uim/ui/uim-applet-menu.xml | |
771d5eda | 775 | |
49d5fc91 | 776 | %if %{with gnome} |
f2675bdf JR |
777 | %files gnome |
778 | %defattr(644,root,root,755) | |
bd5acb7e | 779 | %attr(755,root,root) %{_libdir}/gnome-panel/modules/uim.so |
49d5fc91 | 780 | %endif |
f2675bdf | 781 | |
a224586e | 782 | %if %{with qt3} |
26f033cf | 783 | %files qt3 |
e899826e | 784 | %defattr(644,root,root,755) |
f2675bdf JR |
785 | %attr(755,root,root) %{_bindir}/uim-chardict-qt |
786 | %attr(755,root,root) %{_bindir}/uim-im-switcher-qt | |
787 | %attr(755,root,root) %{_bindir}/uim-pref-qt | |
788 | %attr(755,root,root) %{_bindir}/uim-toolbar-qt | |
b1adeb71 | 789 | %attr(755,root,root) %{_libexecdir}/uim-candwin-qt |
d5e30092 | 790 | %attr(755,root,root) %{_libdir}/qt/plugins-mt/inputmethods/libquiminputcontextplugin.so |
49d5fc91 | 791 | %endif |
f2675bdf | 792 | |
a224586e | 793 | %if %{with qt4} |
bd5acb7e | 794 | %files qt4 |
9b05171f JB |
795 | %defattr(644,root,root,755) |
796 | %attr(755,root,root) %{_bindir}/uim-chardict-qt4 | |
797 | %attr(755,root,root) %{_bindir}/uim-im-switcher-qt4 | |
798 | %attr(755,root,root) %{_bindir}/uim-pref-qt4 | |
799 | %attr(755,root,root) %{_bindir}/uim-toolbar-qt4 | |
d5e30092 | 800 | %attr(755,root,root) %{_libdir}/qt4/plugins/inputmethods/libuiminputcontextplugin.so |
b1adeb71 | 801 | %attr(755,root,root) %{_libexecdir}/uim-candwin-qt4 |
a224586e JB |
802 | %endif |
803 | ||
bd5acb7e JB |
804 | %if %{with qt5} |
805 | %files qt5 | |
806 | %defattr(644,root,root,755) | |
807 | %attr(755,root,root) %{_bindir}/uim-chardict-qt5 | |
808 | %attr(755,root,root) %{_bindir}/uim-im-switcher-qt5 | |
809 | %attr(755,root,root) %{_bindir}/uim-pref-qt5 | |
810 | %attr(755,root,root) %{_bindir}/uim-toolbar-qt5 | |
bd5acb7e | 811 | %attr(755,root,root) %{_libexecdir}/uim-candwin-qt5 |
f322f76f JB |
812 | %attr(755,root,root) %{_libdir}/qt5/plugins/platforminputcontexts/libuimplatforminputcontextplugin.so |
813 | %dir %{_libdir}/qt5/qml/uim | |
814 | %attr(755,root,root) %{_libdir}/qt5/qml/uim/libuim-qtquick-plugin.so | |
815 | %{_libdir}/qt5/qml/uim/qmldir | |
bd5acb7e JB |
816 | %endif |
817 | ||
f322f76f | 818 | %if %{with kde4} |
a224586e JB |
819 | %files kde |
820 | %defattr(644,root,root,755) | |
821 | %attr(755,root,root) %{_libdir}/kde4/plasma_applet_uim.so | |
bd5acb7e | 822 | %attr(755,root,root) %{_libdir}/uim/notify/libuimnotify-knotify4.so |
a224586e JB |
823 | %{_datadir}/kde4/services/plasma-applet-uim.desktop |
824 | %endif | |
9b05171f JB |
825 | |
826 | %files -n emacs-common-uim | |
827 | %defattr(644,root,root,755) | |
9b05171f JB |
828 | %attr(755,root,root) %{_bindir}/uim-el-agent |
829 | %attr(755,root,root) %{_bindir}/uim-el-helper-agent | |
830 | ||
f2675bdf JR |
831 | %files -n emacs-uim |
832 | %defattr(644,root,root,755) | |
833 | %{_datadir}/emacs/site-lisp/uim-el | |
834 | %{_datadir}/emacs/site-lisp/site-start.d/uim-init.el | |
835 | ||
836 | %files -n xemacs-uim | |
837 | %defattr(644,root,root,755) | |
cda0d829 JR |
838 | %{_datadir}/xemacs-packages/lisp/uim-el |
839 | %{_datadir}/xemacs-packages/lisp/uim-init.el | |
f2675bdf | 840 | |
9b05171f | 841 | %if %{with anthy} |
f2675bdf JR |
842 | %files anthy |
843 | %defattr(644,root,root,755) | |
d5e30092 | 844 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-anthy-utf8.so |
f2675bdf JR |
845 | %{_datadir}/uim/anthy*.scm |
846 | %{_datadir}/uim/pixmaps/anthy*.png | |
9b05171f | 847 | %endif |
f2675bdf | 848 | |
9b05171f | 849 | %if %{with canna} |
f2675bdf JR |
850 | %files canna |
851 | %defattr(644,root,root,755) | |
852 | %{_datadir}/uim/canna*.scm | |
853 | %{_datadir}/uim/pixmaps/canna.png | |
9b05171f JB |
854 | %endif |
855 | ||
d5e30092 JB |
856 | %if %{with eb} |
857 | %files eb | |
858 | %defattr(644,root,root,755) | |
859 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-eb.so | |
860 | %{_datadir}/uim/annotation-eb.scm | |
861 | %endif | |
862 | ||
9b05171f JB |
863 | %if %{with m17n} |
864 | %files m17n | |
865 | %defattr(644,root,root,755) | |
866 | %attr(755,root,root) %{_bindir}/uim-m17nlib-relink-icons | |
867 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-m17nlib.so | |
d5e30092 JB |
868 | %{_datadir}/uim/m17nlib*.scm |
869 | %{_datadir}/uim/pixmaps/m17n*.png | |
9b05171f | 870 | %endif |
f2675bdf | 871 | |
49d5fc91 | 872 | %if %{with mana} |
f2675bdf JR |
873 | %files mana |
874 | %defattr(644,root,root,755) | |
875 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-mana.so | |
876 | %{_datadir}/uim/mana*.scm | |
877 | %{_datadir}/uim/pixmaps/mana.png | |
d5e30092 | 878 | %{_datadir}/uim/pixmaps/mana.svg |
49d5fc91 | 879 | %endif |
f2675bdf | 880 | |
bd5acb7e | 881 | %if %{with prime} |
ce8c7195 JR |
882 | %files prime |
883 | %defattr(644,root,root,755) | |
884 | %{_datadir}/uim/prime*.scm | |
d5e30092 | 885 | %{_datadir}/uim/pixmaps/prime*.png |
d5e30092 JB |
886 | %endif |
887 | ||
888 | %files sj3 | |
889 | %defattr(644,root,root,755) | |
890 | %{_datadir}/uim/sj3*.scm | |
891 | %{_datadir}/uim/pixmaps/sj3.png | |
892 | %{_datadir}/uim/pixmaps/sj3.svg | |
ce8c7195 | 893 | |
f2675bdf JR |
894 | %files skk |
895 | %defattr(644,root,root,755) | |
896 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-skk.so | |
897 | %{_datadir}/uim/skk*.scm | |
04b5fc36 JB |
898 | %{_datadir}/uim/pixmaps/skk*.png |
899 | %{_datadir}/uim/pixmaps/skk*.svg | |
d5e30092 JB |
900 | |
901 | %if %{with wnn} | |
902 | %files wnn | |
903 | %defattr(644,root,root,755) | |
904 | %attr(755,root,root) %{_libdir}/uim/plugin/libuim-wnn.so | |
905 | %{_datadir}/uim/wnn*.scm | |
906 | %{_datadir}/uim/pixmaps/wnn.png | |
907 | %{_datadir}/uim/pixmaps/wnn.svg | |
908 | %endif |