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