]>
Commit | Line | Data |
---|---|---|
cd384468 JB |
1 | # |
2 | # Conditional build: | |
1839c1c1 | 3 | %bcond_without gconf # GNOME 2.x (GConf) support module |
6134044c JB |
4 | %bcond_without mateconf # MATE <= 1.4 (MateConf) support module |
5 | %bcond_without xfce # Xfce support module | |
3f7841c4 | 6 | %bcond_without static_libs # static library |
cd384468 | 7 | # |
90527fe8 | 8 | Summary: Delivery framework for general Input Method configuration |
cd384468 | 9 | Summary(pl.UTF-8): Szkielet do ogólnej konfiguracji method wprowadzania znaków |
90527fe8 | 10 | Name: imsettings |
1839c1c1 | 11 | Version: 1.8.1 |
c8de012b | 12 | Release: 2 |
cd384468 | 13 | License: LGPL v2+ |
90527fe8 | 14 | Group: Applications/System |
4dfe74ec | 15 | Source0: https://bitbucket.org/tagoh/imsettings/downloads/%{name}-%{version}.tar.bz2 |
1839c1c1 | 16 | # Source0-md5: c04341a008d8c60e1532f033f4020f44 |
90527fe8 | 17 | Patch0: %{name}-constraint-of-language.patch |
8c5db2e1 | 18 | Patch1: %{name}-no-bash.patch |
fdc97b72 | 19 | URL: https://tagoh.bitbucket.org/imsettings/ |
1839c1c1 | 20 | %{?with_gconf:BuildRequires: GConf2-devel >= 2.0} |
501f6d48 | 21 | BuildRequires: dbus-devel |
90527fe8 | 22 | BuildRequires: desktop-file-utils |
1839c1c1 | 23 | BuildRequires: gettext-tools >= 0.19.8 |
6134044c | 24 | BuildRequires: glib2-devel >= 1:2.32.0 |
b312cd55 | 25 | BuildRequires: gobject-introspection-devel >= 1.30.0 |
334a45f4 JB |
26 | # for fallback support in GTK+ |
27 | BuildRequires: gtk+2-devel >= 2:2.24.11 | |
28 | BuildRequires: gtk+3-devel >= 3.3.3 | |
cd384468 | 29 | BuildRequires: gtk-doc >= 1.0 |
fdc97b72 | 30 | BuildRequires: libgxim-devel >= 0.5.0 |
cd384468 | 31 | BuildRequires: libnotify-devel >= 0.7.0 |
6134044c | 32 | %{?with_mateconf:BuildRequires: mate-conf-devel} |
cd384468 JB |
33 | BuildRequires: pkgconfig |
34 | %{?with_xfce:BuildRequires: xfconf-devel} | |
90527fe8 | 35 | BuildRequires: xorg-lib-libX11-devel |
cd384468 JB |
36 | Requires: %{name}-desktop-module = %{version}-%{release} |
37 | Requires: %{name}-libs = %{version}-%{release} | |
38 | Requires: libnotify >= 0.7.0 | |
90527fe8 JR |
39 | Requires: xinitrc-ng |
40 | Requires: xorg-app-xinit | |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
42 | ||
43 | %description | |
44 | IMSettings is a framework that delivers Input Method settings and | |
45 | applies the changes so they take effect immediately without any need | |
46 | to restart applications or the desktop. | |
47 | ||
48 | This package contains the core DBus services and some utilities. | |
49 | ||
cd384468 JB |
50 | %description -l pl.UTF-8 |
51 | IMSettings to szkielet udostępniający ustawienia metod wprowadzania | |
52 | znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie | |
53 | natychmiast bez potrzeby restartu aplikacji ani środowiska | |
54 | graficznego. | |
55 | ||
56 | Ten pakiet zawiera główne usługi DBus oraz trochę narzędzi. | |
90527fe8 JR |
57 | |
58 | %package libs | |
59 | Summary: IMSettings library | |
60 | Summary(pl.UTF-8): Biblioteka IMSettings | |
61 | Group: Libraries | |
6134044c | 62 | Requires: glib2 >= 1:2.32.0 |
90527fe8 JR |
63 | |
64 | %description libs | |
65 | IMSettings library. | |
66 | ||
67 | %description libs -l pl.UTF-8 | |
68 | Biblioteka imsettings. | |
69 | ||
70 | %package devel | |
71 | Summary: Header files for IMSettings library | |
72 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki IMSettings | |
73 | Group: Development/Libraries | |
74 | Requires: %{name}-libs = %{version}-%{release} | |
6134044c | 75 | Requires: glib2-devel >= 1:2.32.0 |
90527fe8 JR |
76 | |
77 | %description devel | |
78 | Header files for IMSettings library. | |
79 | ||
80 | %description devel -l pl.UTF-8 | |
81 | Pliki nagłówkowe biblioteki IMSettings. | |
82 | ||
83 | %package static | |
84 | Summary: Static IMSettings library | |
85 | Summary(pl.UTF-8): Statyczna biblioteka IMSettings | |
86 | Group: Development/Libraries | |
87 | Requires: %{name}-devel = %{version}-%{release} | |
88 | ||
89 | %description static | |
90 | Static IMSettings library. | |
91 | ||
92 | %description static -l pl.UTF-8 | |
93 | Statyczna biblioteka IMSettings. | |
94 | ||
6134044c JB |
95 | %package cinnamon |
96 | Summary: Cinnamon (via GSettings) support on imsettings | |
97 | Summary(pl.UTF-8): Obsługa Cinnamon (poprzez GSettings) dla imsettings | |
90527fe8 JR |
98 | Group: Applications/System |
99 | Requires: %{name} = %{version}-%{release} | |
100 | Requires: im-chooser | |
6134044c | 101 | Provides: %{name}-desktop-module = %{version}-%{release} |
90527fe8 | 102 | |
6134044c | 103 | %description cinnamon |
90527fe8 JR |
104 | IMSettings is a framework that delivers Input Method settings and |
105 | applies the changes so they take effect immediately without any need | |
106 | to restart applications or the desktop. | |
107 | ||
6134044c JB |
108 | This package contains a module to get this working on Cinnamon (using |
109 | GSettings). | |
90527fe8 | 110 | |
6134044c | 111 | %description cinnamon -l pl.UTF-8 |
cd384468 JB |
112 | IMSettings to szkielet udostępniający ustawienia metod wprowadzania |
113 | znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie | |
114 | natychmiast bez potrzeby restartu aplikacji ani środowiska | |
115 | graficznego. | |
116 | ||
6134044c JB |
117 | Ten pakiet zawiera moduł umożliwiający to dla aplikacji Cinnamon |
118 | (korzystających z GSettings). | |
cd384468 JB |
119 | |
120 | %package gnome2 | |
121 | Summary: GNOME 2 (GConf) support on imsettings | |
90d7596d | 122 | Summary(pl.UTF-8): Obsługa GNOME 2 (GConfa) dla imsettings |
90527fe8 JR |
123 | Group: Applications/System |
124 | Requires: %{name} = %{version}-%{release} | |
125 | Requires: im-chooser | |
cd384468 | 126 | Provides: %{name}-desktop-module = %{version}-%{release} |
90527fe8 | 127 | |
cd384468 | 128 | %description gnome2 |
90527fe8 JR |
129 | IMSettings is a framework that delivers Input Method settings and |
130 | applies the changes so they take effect immediately without any need | |
131 | to restart applications or the desktop. | |
132 | ||
cd384468 JB |
133 | This package contains a module to get this working on GNOME 2 (using |
134 | GConf). | |
90527fe8 | 135 | |
cd384468 JB |
136 | %description gnome2 -l pl.UTF-8 |
137 | IMSettings to szkielet udostępniający ustawienia metod wprowadzania | |
138 | znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie | |
139 | natychmiast bez potrzeby restartu aplikacji ani środowiska | |
140 | graficznego. | |
141 | ||
142 | Ten pakiet zawiera moduł umożliwiający to dla aplikacji GNOME 2 | |
143 | (korzystających z GConfa). | |
144 | ||
145 | %package gnome3 | |
146 | Summary: GNOME 3 (GSettings) support on imsettings | |
147 | Summary(pl.UTF-8): Obsługa GNOME 3 (GSettings) dla imsettings | |
90527fe8 JR |
148 | Group: Applications/System |
149 | Requires: %{name} = %{version}-%{release} | |
150 | Requires: im-chooser | |
cd384468 | 151 | Provides: %{name}-desktop-module = %{version}-%{release} |
90527fe8 | 152 | |
cd384468 | 153 | %description gnome3 |
90527fe8 JR |
154 | IMSettings is a framework that delivers Input Method settings and |
155 | applies the changes so they take effect immediately without any need | |
156 | to restart applications or the desktop. | |
157 | ||
cd384468 JB |
158 | This package contains a module to get this working on GNOME 3 (using |
159 | GSettings). | |
160 | ||
161 | %description gnome3 -l pl.UTF-8 | |
162 | IMSettings to szkielet udostępniający ustawienia metod wprowadzania | |
163 | znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie | |
164 | natychmiast bez potrzeby restartu aplikacji ani środowiska | |
165 | graficznego. | |
90527fe8 | 166 | |
cd384468 JB |
167 | Ten pakiet zawiera moduł umożliwiający to dla aplikacji GNOME 3 |
168 | (korzystających z GSettings). | |
169 | ||
6134044c JB |
170 | %package lxde |
171 | Summary: LXDE support on imsettings | |
172 | Summary(pl.UTF-8): Obsługa LXDE dla imsettings | |
173 | Group: Applications/System | |
174 | Requires: %{name} = %{version}-%{release} | |
175 | #Requires: lxde-settings-daemon | |
176 | Requires: lxsession | |
177 | Provides: %{name}-desktop-module = %{version}-%{release} | |
178 | ||
179 | %description lxde | |
180 | IMSettings is a framework that delivers Input Method settings and | |
181 | applies the changes so they take effect immediately without any need | |
182 | to restart applications or the desktop. | |
183 | ||
184 | This package contains a module to get this working on LXDE. | |
185 | ||
186 | %description lxde -l pl.UTF-8 | |
187 | IMSettings to szkielet udostępniający ustawienia metod wprowadzania | |
188 | znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie | |
189 | natychmiast bez potrzeby restartu aplikacji ani środowiska | |
190 | graficznego. | |
191 | ||
192 | Ten pakiet zawiera moduł umożliwiający to dla aplikacji LXDE. | |
193 | ||
194 | %package mate-conf | |
195 | Summary: MATE <= 1.4 (MateConf) support on imsettings | |
196 | Summary(pl.UTF-8): Obsługa MATE <= 1.4 (MateConfa) dla imsettings | |
197 | Group: Applications/System | |
198 | Requires: %{name} = %{version}-%{release} | |
199 | Requires: im-chooser | |
200 | Provides: %{name}-desktop-module = %{version}-%{release} | |
201 | ||
202 | %description mate-conf | |
203 | IMSettings is a framework that delivers Input Method settings and | |
204 | applies the changes so they take effect immediately without any need | |
205 | to restart applications or the desktop. | |
206 | ||
207 | This package contains a module to get this working on MATE <= 1.4 | |
208 | (using MateConf). | |
209 | ||
210 | %description mate-conf -l pl.UTF-8 | |
211 | IMSettings to szkielet udostępniający ustawienia metod wprowadzania | |
212 | znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie | |
213 | natychmiast bez potrzeby restartu aplikacji ani środowiska | |
214 | graficznego. | |
215 | ||
216 | Ten pakiet zawiera moduł umożliwiający to dla aplikacji MATE <= 1.4 | |
217 | (korzystających z MateConfa). | |
218 | ||
90d7596d | 219 | %package mate |
6134044c JB |
220 | Summary: MATE 1.5+ (mate-settings) support on imsettings |
221 | Summary(pl.UTF-8): Obsługa MATE 1.5+ (mate-settings) dla imsettings | |
90d7596d JB |
222 | Group: Applications/System |
223 | Requires: %{name} = %{version}-%{release} | |
224 | Requires: im-chooser | |
225 | Provides: %{name}-desktop-module = %{version}-%{release} | |
226 | ||
227 | %description mate | |
228 | IMSettings is a framework that delivers Input Method settings and | |
229 | applies the changes so they take effect immediately without any need | |
230 | to restart applications or the desktop. | |
231 | ||
6134044c JB |
232 | This package contains a module to get this working on MATE 1.5+ (using |
233 | mate-settings). | |
90d7596d JB |
234 | |
235 | %description mate -l pl.UTF-8 | |
236 | IMSettings to szkielet udostępniający ustawienia metod wprowadzania | |
237 | znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie | |
238 | natychmiast bez potrzeby restartu aplikacji ani środowiska | |
239 | graficznego. | |
240 | ||
6134044c JB |
241 | Ten pakiet zawiera moduł umożliwiający to dla aplikacji MATE 1.5+ |
242 | (korzystających z mate-settings). | |
90d7596d | 243 | |
cd384468 | 244 | %package qt |
90527fe8 | 245 | Summary: Qt support on imsettings |
cd384468 | 246 | Summary(pl.UTF-8): Obsługa Qt dla imsettings |
90527fe8 JR |
247 | Group: Applications/System |
248 | Requires: %{name} = %{version}-%{release} | |
249 | Requires: im-chooser | |
cd384468 | 250 | Provides: %{name}-desktop-module = %{version}-%{release} |
90527fe8 | 251 | |
cd384468 | 252 | %description qt |
90527fe8 JR |
253 | IMSettings is a framework that delivers Input Method settings and |
254 | applies the changes so they take effect immediately without any need | |
255 | to restart applications or the desktop. | |
256 | ||
257 | This package contains a module to get this working on Qt applications. | |
258 | ||
cd384468 JB |
259 | %description qt -l pl.UTF-8 |
260 | IMSettings to szkielet udostępniający ustawienia metod wprowadzania | |
261 | znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie | |
262 | natychmiast bez potrzeby restartu aplikacji ani środowiska | |
263 | graficznego. | |
264 | ||
265 | Ten pakiet zawiera moduł umożliwiający to dla aplikacji Qt. | |
266 | ||
267 | %package xfce | |
90527fe8 | 268 | Summary: Xfce support on imsettings |
cd384468 | 269 | Summary(pl.UTF-8): Obsługa Xfce dla imsettings |
90527fe8 JR |
270 | Group: Applications/System |
271 | Requires: %{name} = %{version}-%{release} | |
272 | Requires: im-chooser | |
273 | Requires: xfce4-settings >= 4.6.0 | |
cd384468 | 274 | Provides: %{name}-desktop-module = %{version}-%{release} |
90527fe8 | 275 | |
cd384468 | 276 | %description xfce |
90527fe8 JR |
277 | IMSettings is a framework that delivers Input Method settings and |
278 | applies the changes so they take effect immediately without any need | |
279 | to restart applications or the desktop. | |
280 | ||
281 | This package contains a module to get this working on Xfce. | |
282 | ||
cd384468 JB |
283 | %description xfce -l pl.UTF-8 |
284 | IMSettings to szkielet udostępniający ustawienia metod wprowadzania | |
285 | znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie | |
286 | natychmiast bez potrzeby restartu aplikacji ani środowiska | |
287 | graficznego. | |
288 | ||
289 | Ten pakiet zawiera moduł umożliwiający to dla aplikacji Xfce. | |
290 | ||
6134044c JB |
291 | %package xim |
292 | Summary: XIM support on imsettings | |
293 | Summary(pl.UTF-8): Obsługa XIM dla imsettings | |
90527fe8 JR |
294 | Group: Applications/System |
295 | Requires: %{name} = %{version}-%{release} | |
6134044c JB |
296 | Requires: im-chooser |
297 | Requires: libgxim >= 0.5.0 | |
90527fe8 | 298 | |
6134044c | 299 | %description xim |
90527fe8 JR |
300 | IMSettings is a framework that delivers Input Method settings and |
301 | applies the changes so they take effect immediately without any need | |
302 | to restart applications or the desktop. | |
303 | ||
6134044c | 304 | This package contains a module to get this working with XIM. |
90527fe8 | 305 | |
6134044c | 306 | %description xim -l pl.UTF-8 |
cd384468 JB |
307 | IMSettings to szkielet udostępniający ustawienia metod wprowadzania |
308 | znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie | |
309 | natychmiast bez potrzeby restartu aplikacji ani środowiska | |
310 | graficznego. | |
311 | ||
6134044c | 312 | Ten pakiet zawiera moduł umożliwiający to dla usługi XIM. |
cd384468 | 313 | |
90527fe8 JR |
314 | %prep |
315 | %setup -q | |
316 | %patch0 -p1 | |
8c5db2e1 | 317 | %patch1 -p1 |
90527fe8 JR |
318 | |
319 | %build | |
320 | %configure \ | |
a9984d9e | 321 | --disable-silent-rules \ |
3f7841c4 | 322 | %{?with_static_libs:--enable-static} \ |
90527fe8 JR |
323 | --with-xinputsh=50-xinput.sh \ |
324 | --with-html-dir=%{_gtkdocdir} | |
325 | ||
326 | %{__make} | |
327 | ||
328 | %install | |
329 | rm -rf $RPM_BUILD_ROOT | |
330 | ||
331 | %{__make} install \ | |
332 | DESTDIR=$RPM_BUILD_ROOT | |
333 | ||
334 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
3f7841c4 JB |
335 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/imsettings/*.la |
336 | %if %{with static_libs} | |
337 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/imsettings/*.a | |
338 | %endif | |
90527fe8 | 339 | |
9c9b1f79 JB |
340 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{eu_ES,eu} |
341 | ||
90527fe8 JR |
342 | %find_lang %{name} |
343 | ||
344 | %clean | |
345 | rm -rf $RPM_BUILD_ROOT | |
346 | ||
347 | %post libs -p /sbin/ldconfig | |
348 | %postun libs -p /sbin/ldconfig | |
349 | ||
350 | %files -f %{name}.lang | |
351 | %defattr(644,root,root,755) | |
352 | %doc AUTHORS ChangeLog NEWS README | |
353 | ||
697931cd | 354 | %attr(755,root,root) %{_sysconfdir}/X11/xinit/xinitrc.d/50-xinput.sh |
9c9b1f79 JB |
355 | %{_sysconfdir}/X11/xinit/xinput.d/none.conf |
356 | %{_sysconfdir}/X11/xinit/xinput.d/xcompose.conf | |
357 | %{_sysconfdir}/X11/xinit/xinput.d/xim.conf | |
90527fe8 JR |
358 | %{_sysconfdir}/xdg/autostart/imsettings-start.desktop |
359 | ||
360 | %attr(755,root,root) %{_bindir}/imsettings-reload | |
361 | %attr(755,root,root) %{_bindir}/imsettings-list | |
362 | %attr(755,root,root) %{_bindir}/imsettings-info | |
90527fe8 JR |
363 | %attr(755,root,root) %{_bindir}/imsettings-switch |
364 | ||
000872b8 JR |
365 | %dir %{_libdir}/%{name} |
366 | ||
ba122457 JR |
367 | %{_libexecdir}/imsettings-functions |
368 | %attr(755,root,root) %{_libexecdir}/imsettings-check | |
369 | %attr(755,root,root) %{_libexecdir}/imsettings-daemon | |
370 | %attr(755,root,root) %{_libexecdir}/xinputinfo.sh | |
371 | %attr(755,root,root) %{_libexecdir}/imsettings-target-checker.sh | |
90527fe8 JR |
372 | %{_datadir}/dbus-1/services/imsettings-daemon.service |
373 | %{_pixmapsdir}/imsettings-unknown.png | |
374 | ||
fdc97b72 JR |
375 | %{_mandir}/man1/imsettings-*.1* |
376 | ||
90527fe8 JR |
377 | %files libs |
378 | %defattr(644,root,root,755) | |
379 | %attr(755,root,root) %{_libdir}/libimsettings.so.*.*.* | |
cd384468 | 380 | %attr(755,root,root) %ghost %{_libdir}/libimsettings.so.5 |
1839c1c1 | 381 | %{_libdir}/girepository-1.0/IMSettings-1.8.typelib |
90527fe8 JR |
382 | |
383 | %files devel | |
384 | %defattr(644,root,root,755) | |
385 | %attr(755,root,root) %{_libdir}/libimsettings.so | |
386 | %{_pkgconfigdir}/imsettings.pc | |
387 | %{_includedir}/imsettings | |
1839c1c1 | 388 | %{_datadir}/gir-1.0/IMSettings-1.8.gir |
90527fe8 JR |
389 | %{_gtkdocdir}/imsettings |
390 | ||
3f7841c4 | 391 | %if %{with static_libs} |
90527fe8 JR |
392 | %files static |
393 | %defattr(644,root,root,755) | |
394 | %{_libdir}/libimsettings.a | |
3f7841c4 | 395 | %endif |
90527fe8 | 396 | |
6134044c | 397 | %files cinnamon |
90527fe8 | 398 | %defattr(644,root,root,755) |
6134044c | 399 | %attr(755,root,root) %{_libdir}/%{name}/libimsettings-cinnamon-gsettings.so |
90527fe8 | 400 | |
1839c1c1 | 401 | %if %{with gconf} |
cd384468 | 402 | %files gnome2 |
90527fe8 JR |
403 | %defattr(644,root,root,755) |
404 | %attr(755,root,root) %{_libdir}/%{name}/libimsettings-gconf.so | |
1839c1c1 | 405 | %endif |
90527fe8 | 406 | |
cd384468 | 407 | %files gnome3 |
90527fe8 JR |
408 | %defattr(644,root,root,755) |
409 | %attr(755,root,root) %{_libdir}/%{name}/libimsettings-gsettings.so | |
410 | ||
6134044c JB |
411 | %files lxde |
412 | %defattr(644,root,root,755) | |
413 | %attr(755,root,root) %{_libdir}/%{name}/libimsettings-lxde.so | |
414 | ||
415 | %if %{with mateconf} | |
416 | %files mate-conf | |
90d7596d JB |
417 | %defattr(644,root,root,755) |
418 | %attr(755,root,root) %{_libdir}/%{name}/libimsettings-mateconf.so | |
419 | %endif | |
420 | ||
6134044c JB |
421 | %files mate |
422 | %defattr(644,root,root,755) | |
423 | %attr(755,root,root) %{_libdir}/%{name}/libimsettings-mate-gsettings.so | |
424 | ||
cd384468 | 425 | %files qt |
90527fe8 JR |
426 | %defattr(644,root,root,755) |
427 | %attr(755,root,root) %{_libdir}/%{name}/libimsettings-qt.so | |
428 | ||
cd384468 JB |
429 | %if %{with xfce} |
430 | %files xfce | |
90527fe8 JR |
431 | %defattr(644,root,root,755) |
432 | %attr(755,root,root) %{_libdir}/%{name}/libimsettings-xfce.so | |
cd384468 | 433 | %endif |
90527fe8 | 434 | |
6134044c | 435 | %files xim |
90527fe8 | 436 | %defattr(644,root,root,755) |
6134044c JB |
437 | %attr(755,root,root) %{_bindir}/imsettings-xim |
438 | %attr(755,root,root) %{_libdir}/%{name}/libimsettings-xim.so |