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