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