]> git.pld-linux.org Git - packages/imsettings.git/blob - imsettings.spec
b1e0afe6d704d836589fbe2f022f6ca70799f5fe
[packages/imsettings.git] / imsettings.spec
1 #
2 # Conditional build:
3 %bcond_without  mate    # MATE support module
4 %bcond_without  xfce    # Xfce support module
5 #
6 Summary:        Delivery framework for general Input Method configuration
7 Summary(pl.UTF-8):      Szkielet do ogólnej konfiguracji method wprowadzania znaków
8 Name:           imsettings
9 Version:        1.4.0
10 Release:        1
11 License:        LGPL v2+
12 Group:          Applications/System
13 #Source0Download: http://code.google.com/p/imsettings/downloads/list
14 Source0:        http://imsettings.googlecode.com/files/%{name}-%{version}.tar.bz2
15 # Source0-md5:  eb2e37056afe2f4be4b843a6b31f5bd1
16 Patch0:         %{name}-constraint-of-language.patch
17 Patch1:         %{name}-no-bash.patch
18 URL:            http://code.google.com/p/imsettings/
19 BuildRequires:  GConf2-devel >= 2.0
20 BuildRequires:  dbus-devel
21 BuildRequires:  desktop-file-utils
22 BuildRequires:  gettext-devel
23 BuildRequires:  glib2-devel >= 1:2.26.0
24 BuildRequires:  gobject-introspection-devel >= 1.30.0
25 BuildRequires:  gtk+2-devel >= 2:2.12.0
26 # "fallback support in GTK+"
27 #BuildRequires: gtk+3-devel >= 3.3.3
28 BuildRequires:  gtk-doc >= 1.0
29 BuildRequires:  libgxim-devel >= 0.3.1
30 BuildRequires:  libnotify-devel >= 0.7.0
31 %{?with_mate: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.26.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.26.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 xim
95 Summary:        XIM support on imsettings
96 Summary(pl.UTF-8):      Obsługa XIM dla imsettings
97 Group:          Applications/System
98 Requires:       %{name} = %{version}-%{release}
99 Requires:       im-chooser
100 Requires:       libgxim >= 0.3.1
101
102 %description xim
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 with XIM.
108
109 %description xim -l pl.UTF-8
110 IMSettings to szkielet udostępniający ustawienia metod wprowadzania
111 znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie
112 natychmiast bez potrzeby restartu aplikacji ani środowiska
113 graficznego.
114
115 Ten pakiet zawiera moduł umożliwiający to dla usługi XIM.
116
117 %package gnome2
118 Summary:        GNOME 2 (GConf) support on imsettings
119 Summary(pl.UTF-8):      Obsługa GNOME 2 (GConfa) dla imsettings
120 Group:          Applications/System
121 Requires:       %{name} = %{version}-%{release}
122 Requires:       im-chooser
123 Provides:       %{name}-desktop-module = %{version}-%{release}
124
125 %description gnome2
126 IMSettings is a framework that delivers Input Method settings and
127 applies the changes so they take effect immediately without any need
128 to restart applications or the desktop.
129
130 This package contains a module to get this working on GNOME 2 (using
131 GConf).
132
133 %description gnome2 -l pl.UTF-8
134 IMSettings to szkielet udostępniający ustawienia metod wprowadzania
135 znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie
136 natychmiast bez potrzeby restartu aplikacji ani środowiska
137 graficznego.
138
139 Ten pakiet zawiera moduł umożliwiający to dla aplikacji GNOME 2
140 (korzystających z GConfa).
141
142 %package gnome3
143 Summary:        GNOME 3 (GSettings) support on imsettings
144 Summary(pl.UTF-8):      Obsługa GNOME 3 (GSettings) dla imsettings
145 Group:          Applications/System
146 Requires:       %{name} = %{version}-%{release}
147 Requires:       im-chooser
148 Provides:       %{name}-desktop-module = %{version}-%{release}
149
150 %description gnome3
151 IMSettings is a framework that delivers Input Method settings and
152 applies the changes so they take effect immediately without any need
153 to restart applications or the desktop.
154
155 This package contains a module to get this working on GNOME 3 (using
156 GSettings).
157
158 %description gnome3 -l pl.UTF-8
159 IMSettings to szkielet udostępniający ustawienia metod wprowadzania
160 znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie
161 natychmiast bez potrzeby restartu aplikacji ani środowiska
162 graficznego.
163
164 Ten pakiet zawiera moduł umożliwiający to dla aplikacji GNOME 3
165 (korzystających z GSettings).
166
167 %package mate
168 Summary:        MATE (MateConf) support on imsettings
169 Summary(pl.UTF-8):      Obsługa MATE (MateConfa) dla imsettings
170 Group:          Applications/System
171 Requires:       %{name} = %{version}-%{release}
172 Requires:       im-chooser
173 Provides:       %{name}-desktop-module = %{version}-%{release}
174
175 %description mate
176 IMSettings is a framework that delivers Input Method settings and
177 applies the changes so they take effect immediately without any need
178 to restart applications or the desktop.
179
180 This package contains a module to get this working on MATE (using
181 MateConf).
182
183 %description mate -l pl.UTF-8
184 IMSettings to szkielet udostępniający ustawienia metod wprowadzania
185 znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie
186 natychmiast bez potrzeby restartu aplikacji ani środowiska
187 graficznego.
188
189 Ten pakiet zawiera moduł umożliwiający to dla aplikacji MATE
190 (korzystających z MateConfa).
191
192 %package qt
193 Summary:        Qt support on imsettings
194 Summary(pl.UTF-8):      Obsługa Qt dla imsettings
195 Group:          Applications/System
196 Requires:       %{name} = %{version}-%{release}
197 Requires:       im-chooser
198 Provides:       %{name}-desktop-module = %{version}-%{release}
199
200 %description qt
201 IMSettings is a framework that delivers Input Method settings and
202 applies the changes so they take effect immediately without any need
203 to restart applications or the desktop.
204
205 This package contains a module to get this working on Qt applications.
206
207 %description qt -l pl.UTF-8
208 IMSettings to szkielet udostępniający ustawienia metod wprowadzania
209 znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie
210 natychmiast bez potrzeby restartu aplikacji ani środowiska
211 graficznego.
212
213 Ten pakiet zawiera moduł umożliwiający to dla aplikacji Qt.
214
215 %package xfce
216 Summary:        Xfce support on imsettings
217 Summary(pl.UTF-8):      Obsługa Xfce dla imsettings
218 Group:          Applications/System
219 Requires:       %{name} = %{version}-%{release}
220 Requires:       im-chooser
221 Requires:       xfce4-settings >= 4.6.0
222 Provides:       %{name}-desktop-module = %{version}-%{release}
223
224 %description xfce
225 IMSettings is a framework that delivers Input Method settings and
226 applies the changes so they take effect immediately without any need
227 to restart applications or the desktop.
228
229 This package contains a module to get this working on Xfce.
230
231 %description xfce -l pl.UTF-8
232 IMSettings to szkielet udostępniający ustawienia metod wprowadzania
233 znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie
234 natychmiast bez potrzeby restartu aplikacji ani środowiska
235 graficznego.
236
237 Ten pakiet zawiera moduł umożliwiający to dla aplikacji Xfce.
238
239 %package lxde
240 Summary:        LXDE support on imsettings
241 Summary(pl.UTF-8):      Obsługa LXDE dla imsettings
242 Group:          Applications/System
243 Requires:       %{name} = %{version}-%{release}
244 #Requires:      lxde-settings-daemon
245 Requires:       lxsession
246 Provides:       %{name}-desktop-module = %{version}-%{release}
247
248 %description lxde
249 IMSettings is a framework that delivers Input Method settings and
250 applies the changes so they take effect immediately without any need
251 to restart applications or the desktop.
252
253 This package contains a module to get this working on LXDE.
254
255 %description lxde -l pl.UTF-8
256 IMSettings to szkielet udostępniający ustawienia metod wprowadzania
257 znaków (Input Method) i wykonujący zmiany tak, że wchodzą w życie
258 natychmiast bez potrzeby restartu aplikacji ani środowiska
259 graficznego.
260
261 Ten pakiet zawiera moduł umożliwiający to dla aplikacji LXDE.
262
263 %prep
264 %setup -q
265 %patch0 -p1
266 %patch1 -p1
267
268 %build
269 %configure \
270         --disable-silent-rules \
271         --with-xinputsh=50-xinput.sh \
272         --with-html-dir=%{_gtkdocdir}
273
274 %{__make}
275
276 %install
277 rm -rf $RPM_BUILD_ROOT
278
279 %{__make} install \
280         DESTDIR=$RPM_BUILD_ROOT
281
282 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
283 %{__rm} $RPM_BUILD_ROOT%{_libdir}/imsettings/*.{a,la}
284
285 %find_lang %{name}
286
287 %clean
288 rm -rf $RPM_BUILD_ROOT
289
290 %post   libs -p /sbin/ldconfig
291 %postun libs -p /sbin/ldconfig
292
293 %files -f %{name}.lang
294 %defattr(644,root,root,755)
295 %doc AUTHORS ChangeLog NEWS README
296
297 %{_sysconfdir}/X11/xinit/xinitrc.d/50-xinput.sh
298 %dir %{_sysconfdir}/X11/xinit/xinput.d
299 %{_sysconfdir}/X11/xinit/xinput.d/*.conf
300 %{_sysconfdir}/xdg/autostart/imsettings-start.desktop
301
302 %attr(755,root,root) %{_bindir}/imsettings-reload
303 %attr(755,root,root) %{_bindir}/imsettings-list
304 %attr(755,root,root) %{_bindir}/imsettings-info
305 %attr(755,root,root) %{_bindir}/imsettings-check
306 %attr(755,root,root) %{_bindir}/imsettings-switch
307
308 %dir %{_libdir}/%{name}
309 %attr(755,root,root) %{_libdir}/imsettings-daemon
310 %attr(755,root,root) %{_libdir}/xinputinfo.sh
311 %{_datadir}/dbus-1/services/imsettings-daemon.service
312 %{_pixmapsdir}/imsettings-unknown.png
313
314 %files libs
315 %defattr(644,root,root,755)
316 %attr(755,root,root) %{_libdir}/libimsettings.so.*.*.*
317 %attr(755,root,root) %ghost %{_libdir}/libimsettings.so.5
318 %{_libdir}/girepository-1.0/IMSettings-1.3.typelib
319
320 %files devel
321 %defattr(644,root,root,755)
322 %attr(755,root,root) %{_libdir}/libimsettings.so
323 %{_pkgconfigdir}/imsettings.pc
324 %{_includedir}/imsettings
325 %{_datadir}/gir-1.0/IMSettings-1.3.gir
326 %{_gtkdocdir}/imsettings
327
328 %files static
329 %defattr(644,root,root,755)
330 %{_libdir}/libimsettings.a
331
332 %files xim
333 %defattr(644,root,root,755)
334 %attr(755,root,root) %{_bindir}/imsettings-xim
335 %attr(755,root,root) %{_libdir}/%{name}/libimsettings-xim.so
336
337 %files gnome2
338 %defattr(644,root,root,755)
339 %attr(755,root,root) %{_libdir}/%{name}/libimsettings-gconf.so
340
341 %files gnome3
342 %defattr(644,root,root,755)
343 %attr(755,root,root) %{_libdir}/%{name}/libimsettings-gsettings.so
344
345 %if %{with mate}
346 %files mate
347 %defattr(644,root,root,755)
348 %attr(755,root,root) %{_libdir}/%{name}/libimsettings-mateconf.so
349 %endif
350
351 %files qt
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_libdir}/%{name}/libimsettings-qt.so
354
355 %if %{with xfce}
356 %files xfce
357 %defattr(644,root,root,755)
358 %attr(755,root,root) %{_libdir}/%{name}/libimsettings-xfce.so
359 %endif
360
361 %files lxde
362 %defattr(644,root,root,755)
363 %attr(755,root,root) %{_libdir}/%{name}/libimsettings-lxde.so
This page took 0.080932 seconds and 2 git commands to generate.