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