]> git.pld-linux.org Git - packages/imsettings.git/blame - imsettings.spec
- release 2 (by relup.sh)
[packages/imsettings.git] / imsettings.spec
CommitLineData
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 8Summary: Delivery framework for general Input Method configuration
cd384468 9Summary(pl.UTF-8): Szkielet do ogólnej konfiguracji method wprowadzania znaków
90527fe8 10Name: imsettings
1839c1c1 11Version: 1.8.1
c8de012b 12Release: 2
cd384468 13License: LGPL v2+
90527fe8 14Group: Applications/System
4dfe74ec 15Source0: https://bitbucket.org/tagoh/imsettings/downloads/%{name}-%{version}.tar.bz2
1839c1c1 16# Source0-md5: c04341a008d8c60e1532f033f4020f44
90527fe8 17Patch0: %{name}-constraint-of-language.patch
8c5db2e1 18Patch1: %{name}-no-bash.patch
fdc97b72 19URL: https://tagoh.bitbucket.org/imsettings/
1839c1c1 20%{?with_gconf:BuildRequires: GConf2-devel >= 2.0}
501f6d48 21BuildRequires: dbus-devel
90527fe8 22BuildRequires: desktop-file-utils
1839c1c1 23BuildRequires: gettext-tools >= 0.19.8
6134044c 24BuildRequires: glib2-devel >= 1:2.32.0
b312cd55 25BuildRequires: gobject-introspection-devel >= 1.30.0
334a45f4
JB
26# for fallback support in GTK+
27BuildRequires: gtk+2-devel >= 2:2.24.11
28BuildRequires: gtk+3-devel >= 3.3.3
cd384468 29BuildRequires: gtk-doc >= 1.0
fdc97b72 30BuildRequires: libgxim-devel >= 0.5.0
cd384468 31BuildRequires: libnotify-devel >= 0.7.0
6134044c 32%{?with_mateconf:BuildRequires: mate-conf-devel}
cd384468
JB
33BuildRequires: pkgconfig
34%{?with_xfce:BuildRequires: xfconf-devel}
90527fe8 35BuildRequires: xorg-lib-libX11-devel
cd384468
JB
36Requires: %{name}-desktop-module = %{version}-%{release}
37Requires: %{name}-libs = %{version}-%{release}
38Requires: libnotify >= 0.7.0
90527fe8
JR
39Requires: xinitrc-ng
40Requires: xorg-app-xinit
41BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43%description
44IMSettings is a framework that delivers Input Method settings and
45applies the changes so they take effect immediately without any need
46to restart applications or the desktop.
47
48This package contains the core DBus services and some utilities.
49
cd384468
JB
50%description -l pl.UTF-8
51IMSettings to szkielet udostępniający ustawienia metod wprowadzania
52znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie
53natychmiast bez potrzeby restartu aplikacji ani środowiska
54graficznego.
55
56Ten pakiet zawiera główne usługi DBus oraz trochę narzędzi.
90527fe8
JR
57
58%package libs
59Summary: IMSettings library
60Summary(pl.UTF-8): Biblioteka IMSettings
61Group: Libraries
6134044c 62Requires: glib2 >= 1:2.32.0
90527fe8
JR
63
64%description libs
65IMSettings library.
66
67%description libs -l pl.UTF-8
68Biblioteka imsettings.
69
70%package devel
71Summary: Header files for IMSettings library
72Summary(pl.UTF-8): Pliki nagłówkowe biblioteki IMSettings
73Group: Development/Libraries
74Requires: %{name}-libs = %{version}-%{release}
6134044c 75Requires: glib2-devel >= 1:2.32.0
90527fe8
JR
76
77%description devel
78Header files for IMSettings library.
79
80%description devel -l pl.UTF-8
81Pliki nagłówkowe biblioteki IMSettings.
82
83%package static
84Summary: Static IMSettings library
85Summary(pl.UTF-8): Statyczna biblioteka IMSettings
86Group: Development/Libraries
87Requires: %{name}-devel = %{version}-%{release}
88
89%description static
90Static IMSettings library.
91
92%description static -l pl.UTF-8
93Statyczna biblioteka IMSettings.
94
6134044c
JB
95%package cinnamon
96Summary: Cinnamon (via GSettings) support on imsettings
97Summary(pl.UTF-8): Obsługa Cinnamon (poprzez GSettings) dla imsettings
90527fe8
JR
98Group: Applications/System
99Requires: %{name} = %{version}-%{release}
100Requires: im-chooser
6134044c 101Provides: %{name}-desktop-module = %{version}-%{release}
90527fe8 102
6134044c 103%description cinnamon
90527fe8
JR
104IMSettings is a framework that delivers Input Method settings and
105applies the changes so they take effect immediately without any need
106to restart applications or the desktop.
107
6134044c
JB
108This package contains a module to get this working on Cinnamon (using
109GSettings).
90527fe8 110
6134044c 111%description cinnamon -l pl.UTF-8
cd384468
JB
112IMSettings to szkielet udostępniający ustawienia metod wprowadzania
113znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie
114natychmiast bez potrzeby restartu aplikacji ani środowiska
115graficznego.
116
6134044c
JB
117Ten pakiet zawiera moduł umożliwiający to dla aplikacji Cinnamon
118(korzystających z GSettings).
cd384468
JB
119
120%package gnome2
121Summary: GNOME 2 (GConf) support on imsettings
90d7596d 122Summary(pl.UTF-8): Obsługa GNOME 2 (GConfa) dla imsettings
90527fe8
JR
123Group: Applications/System
124Requires: %{name} = %{version}-%{release}
125Requires: im-chooser
cd384468 126Provides: %{name}-desktop-module = %{version}-%{release}
90527fe8 127
cd384468 128%description gnome2
90527fe8
JR
129IMSettings is a framework that delivers Input Method settings and
130applies the changes so they take effect immediately without any need
131to restart applications or the desktop.
132
cd384468
JB
133This package contains a module to get this working on GNOME 2 (using
134GConf).
90527fe8 135
cd384468
JB
136%description gnome2 -l pl.UTF-8
137IMSettings to szkielet udostępniający ustawienia metod wprowadzania
138znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie
139natychmiast bez potrzeby restartu aplikacji ani środowiska
140graficznego.
141
142Ten pakiet zawiera moduł umożliwiający to dla aplikacji GNOME 2
143(korzystających z GConfa).
144
145%package gnome3
146Summary: GNOME 3 (GSettings) support on imsettings
147Summary(pl.UTF-8): Obsługa GNOME 3 (GSettings) dla imsettings
90527fe8
JR
148Group: Applications/System
149Requires: %{name} = %{version}-%{release}
150Requires: im-chooser
cd384468 151Provides: %{name}-desktop-module = %{version}-%{release}
90527fe8 152
cd384468 153%description gnome3
90527fe8
JR
154IMSettings is a framework that delivers Input Method settings and
155applies the changes so they take effect immediately without any need
156to restart applications or the desktop.
157
cd384468
JB
158This package contains a module to get this working on GNOME 3 (using
159GSettings).
160
161%description gnome3 -l pl.UTF-8
162IMSettings to szkielet udostępniający ustawienia metod wprowadzania
163znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie
164natychmiast bez potrzeby restartu aplikacji ani środowiska
165graficznego.
90527fe8 166
cd384468
JB
167Ten pakiet zawiera moduł umożliwiający to dla aplikacji GNOME 3
168(korzystających z GSettings).
169
6134044c
JB
170%package lxde
171Summary: LXDE support on imsettings
172Summary(pl.UTF-8): Obsługa LXDE dla imsettings
173Group: Applications/System
174Requires: %{name} = %{version}-%{release}
175#Requires: lxde-settings-daemon
176Requires: lxsession
177Provides: %{name}-desktop-module = %{version}-%{release}
178
179%description lxde
180IMSettings is a framework that delivers Input Method settings and
181applies the changes so they take effect immediately without any need
182to restart applications or the desktop.
183
184This package contains a module to get this working on LXDE.
185
186%description lxde -l pl.UTF-8
187IMSettings to szkielet udostępniający ustawienia metod wprowadzania
188znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie
189natychmiast bez potrzeby restartu aplikacji ani środowiska
190graficznego.
191
192Ten pakiet zawiera moduł umożliwiający to dla aplikacji LXDE.
193
194%package mate-conf
195Summary: MATE <= 1.4 (MateConf) support on imsettings
196Summary(pl.UTF-8): Obsługa MATE <= 1.4 (MateConfa) dla imsettings
197Group: Applications/System
198Requires: %{name} = %{version}-%{release}
199Requires: im-chooser
200Provides: %{name}-desktop-module = %{version}-%{release}
201
202%description mate-conf
203IMSettings is a framework that delivers Input Method settings and
204applies the changes so they take effect immediately without any need
205to restart applications or the desktop.
206
207This package contains a module to get this working on MATE <= 1.4
208(using MateConf).
209
210%description mate-conf -l pl.UTF-8
211IMSettings to szkielet udostępniający ustawienia metod wprowadzania
212znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie
213natychmiast bez potrzeby restartu aplikacji ani środowiska
214graficznego.
215
216Ten pakiet zawiera moduł umożliwiający to dla aplikacji MATE <= 1.4
217(korzystających z MateConfa).
218
90d7596d 219%package mate
6134044c
JB
220Summary: MATE 1.5+ (mate-settings) support on imsettings
221Summary(pl.UTF-8): Obsługa MATE 1.5+ (mate-settings) dla imsettings
90d7596d
JB
222Group: Applications/System
223Requires: %{name} = %{version}-%{release}
224Requires: im-chooser
225Provides: %{name}-desktop-module = %{version}-%{release}
226
227%description mate
228IMSettings is a framework that delivers Input Method settings and
229applies the changes so they take effect immediately without any need
230to restart applications or the desktop.
231
6134044c
JB
232This package contains a module to get this working on MATE 1.5+ (using
233mate-settings).
90d7596d
JB
234
235%description mate -l pl.UTF-8
236IMSettings to szkielet udostępniający ustawienia metod wprowadzania
237znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie
238natychmiast bez potrzeby restartu aplikacji ani środowiska
239graficznego.
240
6134044c
JB
241Ten 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 245Summary: Qt support on imsettings
cd384468 246Summary(pl.UTF-8): Obsługa Qt dla imsettings
90527fe8
JR
247Group: Applications/System
248Requires: %{name} = %{version}-%{release}
249Requires: im-chooser
cd384468 250Provides: %{name}-desktop-module = %{version}-%{release}
90527fe8 251
cd384468 252%description qt
90527fe8
JR
253IMSettings is a framework that delivers Input Method settings and
254applies the changes so they take effect immediately without any need
255to restart applications or the desktop.
256
257This package contains a module to get this working on Qt applications.
258
cd384468
JB
259%description qt -l pl.UTF-8
260IMSettings to szkielet udostępniający ustawienia metod wprowadzania
261znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie
262natychmiast bez potrzeby restartu aplikacji ani środowiska
263graficznego.
264
265Ten pakiet zawiera moduł umożliwiający to dla aplikacji Qt.
266
267%package xfce
90527fe8 268Summary: Xfce support on imsettings
cd384468 269Summary(pl.UTF-8): Obsługa Xfce dla imsettings
90527fe8
JR
270Group: Applications/System
271Requires: %{name} = %{version}-%{release}
272Requires: im-chooser
273Requires: xfce4-settings >= 4.6.0
cd384468 274Provides: %{name}-desktop-module = %{version}-%{release}
90527fe8 275
cd384468 276%description xfce
90527fe8
JR
277IMSettings is a framework that delivers Input Method settings and
278applies the changes so they take effect immediately without any need
279to restart applications or the desktop.
280
281This package contains a module to get this working on Xfce.
282
cd384468
JB
283%description xfce -l pl.UTF-8
284IMSettings to szkielet udostępniający ustawienia metod wprowadzania
285znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie
286natychmiast bez potrzeby restartu aplikacji ani środowiska
287graficznego.
288
289Ten pakiet zawiera moduł umożliwiający to dla aplikacji Xfce.
290
6134044c
JB
291%package xim
292Summary: XIM support on imsettings
293Summary(pl.UTF-8): Obsługa XIM dla imsettings
90527fe8
JR
294Group: Applications/System
295Requires: %{name} = %{version}-%{release}
6134044c
JB
296Requires: im-chooser
297Requires: libgxim >= 0.5.0
90527fe8 298
6134044c 299%description xim
90527fe8
JR
300IMSettings is a framework that delivers Input Method settings and
301applies the changes so they take effect immediately without any need
302to restart applications or the desktop.
303
6134044c 304This package contains a module to get this working with XIM.
90527fe8 305
6134044c 306%description xim -l pl.UTF-8
cd384468
JB
307IMSettings to szkielet udostępniający ustawienia metod wprowadzania
308znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie
309natychmiast bez potrzeby restartu aplikacji ani środowiska
310graficznego.
311
6134044c 312Ten 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
329rm -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
345rm -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
This page took 0.211471 seconds and 4 git commands to generate.