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