]>
Commit | Line | Data |
---|---|---|
cd384468 JB |
1 | # |
2 | # Conditional build: | |
90d7596d | 3 | %bcond_without mate # MATE support module |
cd384468 JB |
4 | %bcond_without xfce # Xfce support module |
5 | # | |
90527fe8 | 6 | Summary: Delivery framework for general Input Method configuration |
cd384468 | 7 | Summary(pl.UTF-8): Szkielet do ogólnej konfiguracji method wprowadzania znaków |
90527fe8 | 8 | Name: imsettings |
11261e79 | 9 | Version: 1.4.0 |
d168b977 | 10 | Release: 3 |
cd384468 | 11 | License: LGPL v2+ |
90527fe8 | 12 | Group: Applications/System |
cd384468 | 13 | #Source0Download: http://code.google.com/p/imsettings/downloads/list |
90527fe8 | 14 | Source0: http://imsettings.googlecode.com/files/%{name}-%{version}.tar.bz2 |
11261e79 | 15 | # Source0-md5: eb2e37056afe2f4be4b843a6b31f5bd1 |
90527fe8 | 16 | Patch0: %{name}-constraint-of-language.patch |
8c5db2e1 | 17 | Patch1: %{name}-no-bash.patch |
ceaa4e5c | 18 | Patch2: %{name}-format-security.patch |
90527fe8 | 19 | URL: http://code.google.com/p/imsettings/ |
cd384468 | 20 | BuildRequires: GConf2-devel >= 2.0 |
501f6d48 | 21 | BuildRequires: dbus-devel |
90527fe8 JR |
22 | BuildRequires: desktop-file-utils |
23 | BuildRequires: gettext-devel | |
cd384468 | 24 | BuildRequires: glib2-devel >= 1:2.26.0 |
b312cd55 | 25 | BuildRequires: gobject-introspection-devel >= 1.30.0 |
cd384468 | 26 | BuildRequires: gtk+2-devel >= 2:2.12.0 |
857bdfe0 JB |
27 | # "fallback support in GTK+" |
28 | #BuildRequires: gtk+3-devel >= 3.3.3 | |
cd384468 | 29 | BuildRequires: gtk-doc >= 1.0 |
90527fe8 | 30 | BuildRequires: libgxim-devel >= 0.3.1 |
cd384468 | 31 | BuildRequires: libnotify-devel >= 0.7.0 |
90d7596d | 32 | %{?with_mate:BuildRequires: mate-conf-devel} |
cd384468 JB |
33 | BuildRequires: pkgconfig |
34 | %{?with_xfce:BuildRequires: xfconf-devel} | |
90527fe8 | 35 | BuildRequires: xorg-lib-libX11-devel |
cd384468 JB |
36 | Requires: %{name}-desktop-module = %{version}-%{release} |
37 | Requires: %{name}-libs = %{version}-%{release} | |
38 | Requires: libnotify >= 0.7.0 | |
90527fe8 JR |
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 | ||
cd384468 JB |
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. | |
90527fe8 JR |
57 | |
58 | %package libs | |
59 | Summary: IMSettings library | |
60 | Summary(pl.UTF-8): Biblioteka IMSettings | |
61 | Group: Libraries | |
cd384468 | 62 | Requires: glib2 >= 1:2.26.0 |
90527fe8 JR |
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} | |
cd384468 | 75 | Requires: glib2-devel >= 1:2.26.0 |
90527fe8 JR |
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 | ||
cd384468 | 95 | %package xim |
90527fe8 | 96 | Summary: XIM support on imsettings |
cd384468 | 97 | Summary(pl.UTF-8): Obsługa XIM dla imsettings |
90527fe8 JR |
98 | Group: Applications/System |
99 | Requires: %{name} = %{version}-%{release} | |
100 | Requires: im-chooser | |
cd384468 | 101 | Requires: libgxim >= 0.3.1 |
90527fe8 | 102 | |
cd384468 | 103 | %description xim |
90527fe8 JR |
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 | ||
cd384468 JB |
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 | |
90d7596d | 120 | Summary(pl.UTF-8): Obsługa GNOME 2 (GConfa) dla imsettings |
90527fe8 JR |
121 | Group: Applications/System |
122 | Requires: %{name} = %{version}-%{release} | |
123 | Requires: im-chooser | |
cd384468 | 124 | Provides: %{name}-desktop-module = %{version}-%{release} |
90527fe8 | 125 | |
cd384468 | 126 | %description gnome2 |
90527fe8 JR |
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 | ||
cd384468 JB |
131 | This package contains a module to get this working on GNOME 2 (using |
132 | GConf). | |
90527fe8 | 133 | |
cd384468 JB |
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 | |
90527fe8 JR |
146 | Group: Applications/System |
147 | Requires: %{name} = %{version}-%{release} | |
148 | Requires: im-chooser | |
cd384468 | 149 | Provides: %{name}-desktop-module = %{version}-%{release} |
90527fe8 | 150 | |
cd384468 | 151 | %description gnome3 |
90527fe8 JR |
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 | ||
cd384468 JB |
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. | |
90527fe8 | 164 | |
cd384468 JB |
165 | Ten pakiet zawiera moduł umożliwiający to dla aplikacji GNOME 3 |
166 | (korzystających z GSettings). | |
167 | ||
90d7596d JB |
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 | ||
cd384468 | 193 | %package qt |
90527fe8 | 194 | Summary: Qt support on imsettings |
cd384468 | 195 | Summary(pl.UTF-8): Obsługa Qt dla imsettings |
90527fe8 JR |
196 | Group: Applications/System |
197 | Requires: %{name} = %{version}-%{release} | |
198 | Requires: im-chooser | |
cd384468 | 199 | Provides: %{name}-desktop-module = %{version}-%{release} |
90527fe8 | 200 | |
cd384468 | 201 | %description qt |
90527fe8 JR |
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 | ||
cd384468 JB |
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 | |
90527fe8 | 217 | Summary: Xfce support on imsettings |
cd384468 | 218 | Summary(pl.UTF-8): Obsługa Xfce dla imsettings |
90527fe8 JR |
219 | Group: Applications/System |
220 | Requires: %{name} = %{version}-%{release} | |
221 | Requires: im-chooser | |
222 | Requires: xfce4-settings >= 4.6.0 | |
cd384468 | 223 | Provides: %{name}-desktop-module = %{version}-%{release} |
90527fe8 | 224 | |
cd384468 | 225 | %description xfce |
90527fe8 JR |
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 | ||
cd384468 JB |
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 | |
90527fe8 | 241 | Summary: LXDE support on imsettings |
cd384468 | 242 | Summary(pl.UTF-8): Obsługa LXDE dla imsettings |
90527fe8 JR |
243 | Group: Applications/System |
244 | Requires: %{name} = %{version}-%{release} | |
aed6bafe | 245 | #Requires: lxde-settings-daemon |
90527fe8 | 246 | Requires: lxsession |
cd384468 | 247 | Provides: %{name}-desktop-module = %{version}-%{release} |
90527fe8 | 248 | |
cd384468 | 249 | %description lxde |
90527fe8 JR |
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 | ||
cd384468 JB |
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 | ||
90527fe8 JR |
264 | %prep |
265 | %setup -q | |
266 | %patch0 -p1 | |
8c5db2e1 | 267 | %patch1 -p1 |
ceaa4e5c | 268 | %patch2 -p1 |
90527fe8 JR |
269 | |
270 | %build | |
271 | %configure \ | |
a9984d9e | 272 | --disable-silent-rules \ |
90527fe8 JR |
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-check | |
308 | %attr(755,root,root) %{_bindir}/imsettings-switch | |
309 | ||
310 | %dir %{_libdir}/%{name} | |
311 | %attr(755,root,root) %{_libdir}/imsettings-daemon | |
312 | %attr(755,root,root) %{_libdir}/xinputinfo.sh | |
313 | %{_datadir}/dbus-1/services/imsettings-daemon.service | |
314 | %{_pixmapsdir}/imsettings-unknown.png | |
315 | ||
316 | %files libs | |
317 | %defattr(644,root,root,755) | |
318 | %attr(755,root,root) %{_libdir}/libimsettings.so.*.*.* | |
cd384468 | 319 | %attr(755,root,root) %ghost %{_libdir}/libimsettings.so.5 |
4c331558 | 320 | %{_libdir}/girepository-1.0/IMSettings-1.3.typelib |
90527fe8 JR |
321 | |
322 | %files devel | |
323 | %defattr(644,root,root,755) | |
324 | %attr(755,root,root) %{_libdir}/libimsettings.so | |
325 | %{_pkgconfigdir}/imsettings.pc | |
326 | %{_includedir}/imsettings | |
4c331558 | 327 | %{_datadir}/gir-1.0/IMSettings-1.3.gir |
90527fe8 JR |
328 | %{_gtkdocdir}/imsettings |
329 | ||
330 | %files static | |
331 | %defattr(644,root,root,755) | |
332 | %{_libdir}/libimsettings.a | |
333 | ||
cd384468 | 334 | %files xim |
90527fe8 JR |
335 | %defattr(644,root,root,755) |
336 | %attr(755,root,root) %{_bindir}/imsettings-xim | |
337 | %attr(755,root,root) %{_libdir}/%{name}/libimsettings-xim.so | |
338 | ||
cd384468 | 339 | %files gnome2 |
90527fe8 JR |
340 | %defattr(644,root,root,755) |
341 | %attr(755,root,root) %{_libdir}/%{name}/libimsettings-gconf.so | |
342 | ||
cd384468 | 343 | %files gnome3 |
90527fe8 JR |
344 | %defattr(644,root,root,755) |
345 | %attr(755,root,root) %{_libdir}/%{name}/libimsettings-gsettings.so | |
346 | ||
90d7596d JB |
347 | %if %{with mate} |
348 | %files mate | |
349 | %defattr(644,root,root,755) | |
350 | %attr(755,root,root) %{_libdir}/%{name}/libimsettings-mateconf.so | |
351 | %endif | |
352 | ||
cd384468 | 353 | %files qt |
90527fe8 JR |
354 | %defattr(644,root,root,755) |
355 | %attr(755,root,root) %{_libdir}/%{name}/libimsettings-qt.so | |
356 | ||
cd384468 JB |
357 | %if %{with xfce} |
358 | %files xfce | |
90527fe8 JR |
359 | %defattr(644,root,root,755) |
360 | %attr(755,root,root) %{_libdir}/%{name}/libimsettings-xfce.so | |
cd384468 | 361 | %endif |
90527fe8 | 362 | |
cd384468 | 363 | %files lxde |
90527fe8 JR |
364 | %defattr(644,root,root,755) |
365 | %attr(755,root,root) %{_libdir}/%{name}/libimsettings-lxde.so |