]>
Commit | Line | Data |
---|---|---|
46d4d4d9 | 1 | # TODO: clutter (requires .pc: clutter-1.0 clutter-imcontext-0.1) |
2134b070 JB |
2 | # |
3 | # Conditional build: | |
46d4d4d9 | 4 | %bcond_with gtk2ui # build GTK+ 2.x based gtkutils and setup |
2b4f6a07 | 5 | %bcond_without clutter # Clutter IMModule |
46d4d4d9 JB |
6 | %bcond_without gtk2 # GTK+ 2.x IMModule |
7 | %bcond_without qt3 # Qt 3.x IMModule | |
8 | %bcond_without qt4 # Qt 4.x IMModule | |
2134b070 | 9 | # |
3f00fa8f | 10 | Summary: Smart Common Input Method |
b3609d11 | 11 | Summary(pl.UTF-8): Smart Common Input Method - ogólna metoda wprowadzania |
3f00fa8f | 12 | Name: scim |
46d4d4d9 | 13 | Version: 1.4.14 |
3d9c9c85 | 14 | Release: 3 |
07e6bf0f JB |
15 | License: LGPL v2+ |
16 | Group: X11/Applications | |
1ce66fad | 17 | Source0: http://downloads.sourceforge.net/scim/%{name}-%{version}.tar.gz |
46d4d4d9 | 18 | # Source0-md5: 495fbd080d9d6189e7eb67fd61097324 |
72578bc2 | 19 | Source1: %{name}.xinputd |
46d4d4d9 | 20 | Patch0: %{name}-config.patch |
7048cf00 JB |
21 | URL: http://www.scim-im.org/ |
22 | BuildRequires: autoconf >= 2.59-9 | |
23 | BuildRequires: automake | |
2b4f6a07 JB |
24 | %{?with_clutter:BuildRequires: clutter-devel >= 1.0.0} |
25 | %{?with_clutter:BuildRequires: clutter-imcontext-devel >= 0.1} | |
83ca2ec0 | 26 | BuildRequires: gettext-tools >= 0.14.1 |
2134b070 | 27 | BuildRequires: gdk-pixbuf2-devel >= 2.4.0 |
46d4d4d9 | 28 | %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.4.0} |
2134b070 | 29 | BuildRequires: gtk+3-devel >= 3.0.0 |
7048cf00 | 30 | BuildRequires: intltool >= 0.33 |
27f7c937 | 31 | BuildRequires: libltdl-devel |
7048cf00 | 32 | BuildRequires: libstdc++-devel |
1ce66fad | 33 | BuildRequires: libtool >= 2:2.0 |
7048cf00 JB |
34 | BuildRequires: pango-devel >= 1.1.0 |
35 | BuildRequires: pkgconfig | |
46d4d4d9 | 36 | %{?with_qt3:BuildRequires: qt-devel >= 3} |
7048cf00 | 37 | BuildRequires: xorg-lib-libX11-devel |
46d4d4d9 JB |
38 | %if %{with qt4} |
39 | BuildRequires: QtCore-devel >= 4.0 | |
40 | BuildRequires: QtGui-devel >= 4.0 | |
41 | BuildRequires: qt4-build >= 4.0 | |
42 | %endif | |
b680a40e JR |
43 | Requires: %{name}-libs = %{version}-%{release} |
44 | Requires: im-chooser | |
45 | Requires: imsettings | |
3f00fa8f | 46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
2134b070 JB |
48 | %define abiver 1.4.0 |
49 | %if "%{_lib}" != "lib" | |
50 | %define libext %(lib="%{_lib}"; echo ${lib#lib}) | |
51 | %define gtk2confdir %{_sysconfdir}/gtk%{libext}-2.0 | |
52 | %define gtkpqext -%{libext} | |
53 | %else | |
54 | %define gtk2confbase %{_sysconfdir}/gtk-2.0 | |
55 | %define gtkpqext %{nil} | |
56 | %endif | |
57 | ||
3f00fa8f | 58 | %description |
7048cf00 | 59 | scim is the core package of the SCIM project, which provides the |
07e6bf0f | 60 | fundamental routines and data types. A GTK+ 2 based Panel (User |
7048cf00 JB |
61 | Interface) and setup dialog are also shipped within this package. |
62 | ||
bee9bfb0 JR |
63 | %description -l pl.UTF-8 |
64 | scim to główny pakiet projektu SCIM, udostępniający podstawowe funkcje | |
65 | i typy danych. W pakiecie załączony jest także oparty na GTK+ 2 panel | |
66 | (interfejs użytkownika) i konfiguracyjne okno dialogowe. | |
3f00fa8f | 67 | |
b680a40e JR |
68 | %package libs |
69 | Summary: Smart Common Input Method libraries | |
70 | Summary(pl.UTF-8): Biblioteki Smart Common Input Method | |
71 | Group: X11/Libraries | |
1ce66fad JB |
72 | Requires: gtk+2 >= 2:2.4.0 |
73 | Requires: pango >= 1.1.0 | |
b680a40e JR |
74 | |
75 | %description libs | |
76 | Smart Common Input Method libraries. | |
77 | ||
78 | %description libs -l pl.UTF-8 | |
79 | Biblioteki Smart Common Input Method. | |
80 | ||
07e6bf0f JB |
81 | %package devel |
82 | Summary: Header files for SCIM libraries | |
83 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek SCIM | |
84 | Group: X11/Development/Libraries | |
b680a40e | 85 | Requires: %{name}-libs = %{version}-%{release} |
07e6bf0f JB |
86 | |
87 | %description devel | |
88 | Header files for SCIM libraries. | |
89 | ||
90 | %description devel -l pl.UTF-8 | |
91 | Pliki nagłówkowe bibliotek SCIM. | |
92 | ||
93 | %package static | |
94 | Summary: Static SCIM libraries | |
95 | Summary(pl.UTF-8): Statyczne biblioteki SCIM | |
96 | Group: X11/Development/Libraries | |
97 | Requires: %{name}-devel = %{version}-%{release} | |
98 | ||
99 | %description static | |
100 | Static SCIM libraries. | |
101 | ||
102 | %description static -l pl.UTF-8 | |
103 | Statyczne biblioteki SCIM. | |
104 | ||
2b4f6a07 JB |
105 | %package clutter |
106 | # or -n clutter-imcontext-scim? | |
107 | Summary: Smart Common Input Method Clutter IM module | |
108 | Summary(pl.UTF-8): Moduł IM Clutter oparty na SCIM | |
109 | Group: X11/Libraries | |
110 | Requires: %{name} = %{version}-%{release} | |
111 | ||
112 | %description clutter | |
113 | This package provides a Clutter input method module for SCIM. | |
114 | ||
115 | %description clutter -l pl.UTF-8 | |
116 | Ten pakiet zawiera moduł methody wejściowej Clutter oparty na SCIM. | |
117 | ||
b680a40e | 118 | %package gtk2 |
1ce66fad | 119 | # or -n gtk+2-im-scim? |
2134b070 JB |
120 | Summary: Smart Common Input Method GTK+ 2.x IM module |
121 | Summary(pl.UTF-8): Moduł IM GTK+ 2.x oparty na SCIM | |
b680a40e JR |
122 | Group: X11/Libraries |
123 | Requires: %{name} = %{version}-%{release} | |
124 | Requires: gtk+2 | |
1ce66fad | 125 | Requires(post,postun): gtk+2 |
b680a40e JR |
126 | |
127 | %description gtk2 | |
2134b070 | 128 | This package provides a GTK+ 2.x input method module for SCIM. |
1ce66fad JB |
129 | |
130 | %description gtk2 -l pl.UTF-8 | |
2134b070 JB |
131 | Ten pakiet zawiera moduł methody wejściowej GTK+ 2.x oparty na SCIM. |
132 | ||
133 | %package gtk3 | |
134 | # or -n gtk+3-im-scim? | |
135 | Summary: Smart Common Input Method GTK+ 3.x IM module | |
136 | Summary(pl.UTF-8): Moduł IM GTK+ 3.x oparty na SCIM | |
137 | Group: X11/Libraries | |
138 | Requires: %{name} = %{version}-%{release} | |
139 | Requires: gtk+3 | |
140 | Requires(post,postun): gtk+3 | |
141 | ||
142 | %description gtk3 | |
143 | This package provides a GTK+ 3.x input method module for SCIM. | |
144 | ||
145 | %description gtk3 -l pl.UTF-8 | |
146 | Ten pakiet zawiera moduł methody wejściowej GTK+ 3.x oparty na SCIM. | |
b680a40e | 147 | |
46d4d4d9 JB |
148 | %package qt3 |
149 | # or -n qt-plugin-im-scim? | |
150 | Summary: Smart Common Input Method Qt 3.x IM module | |
151 | Summary(pl.UTF-8): Moduł IM Qt 3.x oparty na SCIM | |
152 | Group: X11/Libraries | |
153 | Requires: %{name} = %{version}-%{release} | |
154 | Requires: qt >= 3 | |
155 | ||
156 | %description qt3 | |
157 | This package provides a Qt 3.x input method module for SCIM. | |
158 | ||
159 | %description qt3 -l pl.UTF-8 | |
160 | Ten pakiet zawiera moduł methody wejściowej Qt 3.x oparty na SCIM. | |
161 | ||
162 | %package qt4 | |
163 | # or -n qt4-plugin-im-scim? | |
164 | Summary: Smart Common Input Method Qt 4.x IM module | |
165 | Summary(pl.UTF-8): Moduł IM Qt 4.x oparty na SCIM | |
166 | Group: X11/Libraries | |
167 | Requires: %{name} = %{version}-%{release} | |
2b4f6a07 | 168 | Requires: QtGui >= 4 |
46d4d4d9 JB |
169 | |
170 | %description qt4 | |
171 | This package provides a Qt 4.x input method module for SCIM. | |
172 | ||
173 | %description qt4 -l pl.UTF-8 | |
174 | Ten pakiet zawiera moduł methody wejściowej Qt 4.x oparty na SCIM. | |
175 | ||
3f00fa8f | 176 | %prep |
177 | %setup -q | |
b680a40e | 178 | %patch0 -p1 |
07e6bf0f | 179 | |
3f00fa8f | 180 | %build |
eda81dd2 | 181 | %{__intltoolize} |
7048cf00 JB |
182 | %{__libtoolize} |
183 | %{__aclocal} -I m4 | |
b680a40e | 184 | %{__autoheader} |
7048cf00 | 185 | %{__autoconf} |
b680a40e | 186 | %{__automake} |
07e6bf0f | 187 | %configure \ |
2b4f6a07 | 188 | %{!?with_clutter:--disable-clutter-immodule} \ |
46d4d4d9 | 189 | %{!?with_gtk2:--disable-gtk2-immodule} \ |
2134b070 | 190 | --enable-ld-version-script \ |
46d4d4d9 JB |
191 | %{!?with_qt3:--disable-qt3-immodule} \ |
192 | %{!?with_qt4:--disable-qt4-immodule} \ | |
193 | %{?with_gtk2ui:--with-gtk-version=2} \ | |
194 | %{?with_qt3:--with-qt3-im-module-dir=%{_libdir}/qt/plugins-mt/inputmethods} | |
96eef15b | 195 | |
3f00fa8f | 196 | %{__make} |
197 | ||
198 | %install | |
199 | rm -rf $RPM_BUILD_ROOT | |
b680a40e | 200 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinput.d |
3f00fa8f | 201 | |
202 | %{__make} install \ | |
b680a40e | 203 | DESTDIR=$RPM_BUILD_ROOT |
07e6bf0f | 204 | |
b680a40e JR |
205 | %{__sed} -e 's|@@LIB@@|%{_lib}|g' %{SOURCE1} >$RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinput.d/scim.conf |
206 | ||
207 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
208 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/scim-1.0/*/*/*.{la,a} | |
2b4f6a07 | 209 | %{?with_clutter:%{__rm} $RPM_BUILD_ROOT%{_libdir}/clutter-imcontext/immodules/im-scim.{la,a}} |
46d4d4d9 | 210 | %{?with_gtk2:%{__rm} $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/immodules/im-scim.{la,a}} |
2134b070 | 211 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/*/immodules/im-scim.{la,a} |
46d4d4d9 JB |
212 | %{?with_qt3:%{__rm} $RPM_BUILD_ROOT%{_libdir}/qt/plugins-mt/inputmethods/im-scim.{la,a}} |
213 | %{?with_qt4:%{__rm} $RPM_BUILD_ROOT%{_libdir}/qt4/plugins/inputmethods/im-scim.{la,a}} | |
2134b070 JB |
214 | |
215 | # obsolete GNOME2 file | |
216 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/control-center-2.0/capplets/scim-setup.desktop | |
07e6bf0f JB |
217 | |
218 | %find_lang %{name} | |
3f00fa8f | 219 | |
220 | %clean | |
221 | rm -rf $RPM_BUILD_ROOT | |
222 | ||
b680a40e JR |
223 | %post libs -p /sbin/ldconfig |
224 | %postun libs -p /sbin/ldconfig | |
225 | ||
226 | %post gtk2 | |
2134b070 | 227 | %{_bindir}/gtk-query-immodules-2.0%{gtkpqext} > %{gtk2confdir}/gtk.immodules |
b680a40e JR |
228 | |
229 | %postun gtk2 | |
2134b070 JB |
230 | %{_bindir}/gtk-query-immodules-2.0%{gtkpqext} > %{gtk2confdir}/gtk.immodules |
231 | ||
232 | %post gtk3 | |
233 | %{_bindir}/gtk-query-immodules-3.0%{gtkpqext} --update-cache | |
234 | ||
235 | %postun gtk3 | |
236 | %{_bindir}/gtk-query-immodules-3.0%{gtkpqext} --update-cache | |
3f00fa8f | 237 | |
07e6bf0f | 238 | %files -f %{name}.lang |
3f00fa8f | 239 | %defattr(644,root,root,755) |
7048cf00 | 240 | %doc AUTHORS ChangeLog README THANKS TODO |
b680a40e JR |
241 | %dir %{_sysconfdir}/scim |
242 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/scim/config | |
243 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/scim/global | |
244 | %{_sysconfdir}/X11/xinit/xinput.d/scim.conf | |
07e6bf0f JB |
245 | %attr(755,root,root) %{_bindir}/scim |
246 | %attr(755,root,root) %{_bindir}/scim-config-agent | |
46d4d4d9 | 247 | %attr(755,root,root) %{_bindir}/scim-im-agent |
07e6bf0f | 248 | %attr(755,root,root) %{_bindir}/scim-setup |
2134b070 JB |
249 | %dir %{_libdir}/scim-1.0/%{abiver}/Filter |
250 | %dir %{_libdir}/scim-1.0/%{abiver}/FrontEnd | |
251 | %dir %{_libdir}/scim-1.0/%{abiver}/Helper | |
252 | %dir %{_libdir}/scim-1.0/%{abiver}/SetupUI | |
253 | %attr(755,root,root) %{_libdir}/scim-1.0/%{abiver}/Filter/*.so | |
254 | %attr(755,root,root) %{_libdir}/scim-1.0/%{abiver}/FrontEnd/*.so | |
255 | %attr(755,root,root) %{_libdir}/scim-1.0/%{abiver}/Helper/*.so | |
256 | %attr(755,root,root) %{_libdir}/scim-1.0/%{abiver}/SetupUI/*.so | |
07e6bf0f JB |
257 | %attr(755,root,root) %{_libdir}/scim-1.0/scim-helper-launcher |
258 | %attr(755,root,root) %{_libdir}/scim-1.0/scim-helper-manager | |
259 | %attr(755,root,root) %{_libdir}/scim-1.0/scim-launcher | |
260 | %attr(755,root,root) %{_libdir}/scim-1.0/scim-panel-gtk | |
07e6bf0f | 261 | %{_datadir}/scim |
07e6bf0f JB |
262 | %{_desktopdir}/scim-setup.desktop |
263 | %{_pixmapsdir}/scim-setup.png | |
264 | ||
b680a40e JR |
265 | %files libs |
266 | %defattr(644,root,root,755) | |
267 | %attr(755,root,root) %{_libdir}/libscim-1.0.so.*.*.* | |
2579aaf4 | 268 | %attr(755,root,root) %ghost %{_libdir}/libscim-1.0.so.8 |
b680a40e | 269 | %attr(755,root,root) %{_libdir}/libscim-gtkutils-1.0.so.*.*.* |
2579aaf4 | 270 | %attr(755,root,root) %ghost %{_libdir}/libscim-gtkutils-1.0.so.8 |
b680a40e | 271 | %attr(755,root,root) %{_libdir}/libscim-x11utils-1.0.so.*.*.* |
2579aaf4 | 272 | %attr(755,root,root) %ghost %{_libdir}/libscim-x11utils-1.0.so.8 |
b680a40e | 273 | %dir %{_libdir}/scim-1.0 |
2134b070 JB |
274 | %dir %{_libdir}/scim-1.0/%{abiver} |
275 | %dir %{_libdir}/scim-1.0/%{abiver}/Config | |
276 | %dir %{_libdir}/scim-1.0/%{abiver}/IMEngine | |
277 | %attr(755,root,root) %{_libdir}/scim-1.0/%{abiver}/Config/*.so | |
278 | %attr(755,root,root) %{_libdir}/scim-1.0/%{abiver}/IMEngine/*.so | |
b680a40e | 279 | |
07e6bf0f JB |
280 | %files devel |
281 | %defattr(644,root,root,755) | |
282 | %attr(755,root,root) %{_libdir}/libscim-1.0.so | |
283 | %attr(755,root,root) %{_libdir}/libscim-gtkutils-1.0.so | |
284 | %attr(755,root,root) %{_libdir}/libscim-x11utils-1.0.so | |
07e6bf0f JB |
285 | %dir %{_includedir}/scim-1.0 |
286 | %{_includedir}/scim-1.0/scim*.h | |
287 | %{_includedir}/scim-1.0/gtk | |
288 | %{_includedir}/scim-1.0/x11 | |
289 | %{_pkgconfigdir}/scim.pc | |
290 | %{_pkgconfigdir}/scim-gtkutils.pc | |
291 | %{_pkgconfigdir}/scim-x11utils.pc | |
292 | ||
293 | %files static | |
294 | %defattr(644,root,root,755) | |
295 | %{_libdir}/libscim-1.0.a | |
296 | %{_libdir}/libscim-gtkutils-1.0.a | |
297 | %{_libdir}/libscim-x11utils-1.0.a | |
b680a40e | 298 | |
2b4f6a07 JB |
299 | %if %{with clutter} |
300 | %files clutter | |
301 | %defattr(644,root,root,755) | |
302 | # TODO: move these dirs to clutter-imcontext when other modules appear | |
303 | %dir %{_libdir}/clutter-imcontext | |
304 | %dir %{_libdir}/clutter-imcontext/immodules | |
305 | %attr(755,root,root) %{_libdir}/clutter-imcontext/immodules/im-scim.so | |
306 | %endif | |
307 | ||
46d4d4d9 | 308 | %if %{with gtk2} |
b680a40e JR |
309 | %files gtk2 |
310 | %defattr(644,root,root,755) | |
2134b070 | 311 | %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/immodules/im-scim.so |
46d4d4d9 | 312 | %endif |
2134b070 JB |
313 | |
314 | %files gtk3 | |
315 | %defattr(644,root,root,755) | |
316 | %attr(755,root,root) %{_libdir}/gtk-3.0/3.*/immodules/im-scim.so | |
46d4d4d9 JB |
317 | |
318 | %if %{with qt3} | |
319 | %files qt3 | |
320 | %defattr(644,root,root,755) | |
321 | %attr(755,root,root) %{_libdir}/qt/plugins-mt/inputmethods/im-scim.so | |
322 | %endif | |
323 | ||
324 | %if %{with qt4} | |
325 | %files qt4 | |
326 | %defattr(644,root,root,755) | |
327 | %attr(755,root,root) %{_libdir}/qt4/plugins/inputmethods/im-scim.so | |
328 | %endif |