]>
Commit | Line | Data |
---|---|---|
c91086d6 JB |
1 | # |
2 | # Conditional build: | |
b61f08ee | 3 | %bcond_without apidocs # API documentation |
24050eba | 4 | %bcond_without static_libs # static library |
c91086d6 | 5 | |
d0cc215a | 6 | Summary: Protocol definitions and daemon for D-Bus at-spi |
5585ec04 | 7 | Summary(pl-UTF-8): Definicje protokołu oraz demon at-spi dla usługi D-Bus |
d0cc215a | 8 | Name: at-spi2-core |
a067c339 JB |
9 | Version: 2.52.0 |
10 | Release: 1 | |
0fb65a50 | 11 | License: LGPL v2.1+ |
5585ec04 | 12 | Group: Daemons |
a067c339 JB |
13 | Source0: https://download.gnome.org/sources/at-spi2-core/2.52/%{name}-%{version}.tar.xz |
14 | # Source0-md5: e6591545b2bf204fe9a58f777bd0b78a | |
f4747273 JB |
15 | URL: https://wiki.linuxfoundation.org/accessibility/d-bus |
16 | BuildRequires: dbus-devel >= 1.5 | |
46c3d207 | 17 | BuildRequires: gettext-tools >= 0.19.8 |
9e0a849c | 18 | BuildRequires: glib2-devel >= 1:2.67.4 |
46c3d207 | 19 | BuildRequires: gobject-introspection-devel >= 1.32.0 |
4e14d4d2 | 20 | %{?with_apidocs:BuildRequires: gi-docgen >= 2021.1} |
9e0a849c | 21 | BuildRequires: libxml2-devel >= 1:2.9.1 |
4e14d4d2 | 22 | BuildRequires: meson >= 0.63.0 |
1a6bb5c3 | 23 | BuildRequires: ninja >= 1.5 |
d0cc215a | 24 | BuildRequires: pkgconfig |
ab906245 | 25 | BuildRequires: rpm-build >= 4.6 |
5124e2fb | 26 | BuildRequires: rpmbuild(macros) >= 2.029 |
a1ca39e9 | 27 | BuildRequires: tar >= 1:1.22 |
d0cc215a | 28 | BuildRequires: xorg-lib-libX11-devel |
d0cc215a MB |
29 | BuildRequires: xorg-lib-libXi-devel |
30 | BuildRequires: xorg-lib-libXtst-devel | |
a1ca39e9 | 31 | BuildRequires: xz |
2322de40 | 32 | Requires(post,preun): systemd-units >= 1:250.1 |
5585ec04 | 33 | Requires: %{name}-libs = %{version}-%{release} |
f4747273 | 34 | Requires: dbus >= 1.5 |
2322de40 | 35 | Requires: systemd-units >= 1:250.1 |
d0cc215a MB |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | at-spi allows assistive technologies to access GTK-based applications. | |
40 | Essentially it exposes the internals of applications for automation, | |
41 | so tools such as screen readers, magnifiers, or even scripting | |
42 | interfaces can query and interact with GUI controls. | |
43 | ||
44 | This version of at-spi is a major break from previous versions. It has | |
45 | been completely rewritten to use D-Bus rather than ORBIT / CORBA for | |
46 | its transport protocol. | |
47 | ||
5585ec04 JB |
48 | %description -l pl.UTF-8 |
49 | at-spi pozwala na dostęp technik wspomagających do aplikacji partych | |
50 | na bibliotece GTK+. W szczególności udostępnia wnętrzności aplikacji | |
51 | na potrzeby automatyzacji, dzięki czemu narzędzia takie jak czytniki | |
52 | ekranowe, lupy czy nawet interfejsy skryptowe mogą odpytywać i | |
53 | współpracować interaktywnie z kontrolkami GUI. | |
54 | ||
55 | Ta wersja at-spi to duża zmiana w stosunku do poprzednich wersji. | |
56 | Została całkowicie przepisana z użyciem protokołu transportowego D-Bus | |
57 | zamiast wcześniejszego ORBIT/CORBA. | |
58 | ||
59 | %package libs | |
60 | Summary: at-spi2 core library | |
61 | Summary(pl.UTF-8): Główna biblioteka at-spi2 | |
62 | Group: Libraries | |
f4747273 | 63 | Requires: dbus-libs >= 1.5 |
9e0a849c | 64 | Requires: glib2 >= 1:2.67.4 |
5585ec04 JB |
65 | Conflicts: at-spi2-core < 2.2.1-2 |
66 | ||
67 | %description libs | |
68 | at-spi2 core library. | |
69 | ||
70 | %description libs -l pl.UTF-8 | |
71 | Główna biblioteka at-spi2. | |
72 | ||
d0cc215a MB |
73 | %package devel |
74 | Summary: Header files for at-spi2 library | |
75 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki at-spi2 | |
76 | Group: Development/Libraries | |
5585ec04 | 77 | Requires: %{name}-libs = %{version}-%{release} |
f4747273 | 78 | Requires: dbus-devel >= 1.5 |
9e0a849c | 79 | Requires: glib2-devel >= 1:2.67.4 |
5585ec04 | 80 | Requires: xorg-lib-libX11-devel |
d0cc215a MB |
81 | |
82 | %description devel | |
83 | Header files for at-spi2 library. | |
84 | ||
85 | %description devel -l pl.UTF-8 | |
86 | Pliki nagłówkowe biblioteki at-spi2. | |
87 | ||
f4747273 JB |
88 | %package static |
89 | Summary: Static at-spi2 library | |
90 | Summary(pl.UTF-8): Statyczna biblioteka at-spi2 | |
91 | Group: Development/Libraries | |
92 | Requires: %{name}-devel = %{version}-%{release} | |
93 | ||
94 | %description static | |
95 | Static at-spi2 library. | |
96 | ||
97 | %description static -l pl.UTF-8 | |
98 | Statyczna biblioteka at-spi2. | |
99 | ||
d0cc215a MB |
100 | %package apidocs |
101 | Summary: at-spi2 library API documentation | |
102 | Summary(pl.UTF-8): Dokumentacja API biblioteki at-spi2 | |
103 | Group: Documentation | |
b50f32c0 | 104 | BuildArch: noarch |
d0cc215a MB |
105 | |
106 | %description apidocs | |
107 | at-spi2 library API documentation. | |
108 | ||
109 | %description apidocs -l pl.UTF-8 | |
110 | Dokumentacja API biblioteki at-spi2. | |
111 | ||
9e0a849c JB |
112 | %package -n at-spi2-atk |
113 | Summary: A GTK+ module that bridges ATK to D-Bus at-spi | |
114 | Summary(pl.UTF-8): Moduł GTK+ łączący ATK z at-spi jako usługą D-Bus | |
115 | Group: Libraries | |
116 | Requires: at-spi2-atk-libs = %{version}-%{release} | |
117 | Requires: atk = 1:%{version}-%{release} | |
118 | Requires: %{name} = %{version}-%{release} | |
119 | Requires: dbus >= 1.5 | |
120 | ||
121 | %description -n at-spi2-atk | |
122 | This package provides a GTK+ module that bridges ATK to the new D-Bus | |
123 | based at-spi. | |
124 | ||
125 | %description -n at-spi2-atk -l pl.UTF-8 | |
126 | Ten pakiet dostarcza moduł GTK+ łączący ATK z nowym at-spi, opartym o | |
127 | usługę D-Bus. | |
128 | ||
129 | %package -n at-spi2-atk-libs | |
130 | Summary: Shared atk-bridge library | |
131 | Summary(pl.UTF-8): Biblioteka współdzielona atk-bridge | |
132 | Group: Libraries | |
133 | Requires: %{name}-libs = %{version}-%{release} | |
134 | Requires: atk = 1:%{version}-%{release} | |
135 | Requires: dbus-libs >= 1.5 | |
136 | Requires: glib2 >= 1:2.32.0 | |
137 | Conflicts: at-spi2-atk < 2.6.0-2 | |
138 | ||
139 | %description -n at-spi2-atk-libs | |
140 | Shared atk-bridge library, providing ATK/D-Bus bridge. | |
141 | ||
142 | %description -n at-spi2-atk-libs -l pl.UTF-8 | |
143 | Biblioteka współdzielona atk-bridge, zapewniająca pomost między ATK a | |
144 | D-Bus. | |
145 | ||
146 | %package -n at-spi2-atk-devel | |
147 | Summary: Header files for atk-bridge library | |
148 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki atk-bridge | |
149 | Group: Development/Libraries | |
150 | Requires: at-spi2-atk-libs = %{version}-%{release} | |
151 | Requires: %{name}-devel = %{version}-%{release} | |
152 | Requires: glib2-devel >= 1:2.32.0 | |
153 | ||
154 | %description -n at-spi2-atk-devel | |
155 | Header files for atk-bridge library. | |
156 | ||
157 | %description -n at-spi2-atk-devel -l pl.UTF-8 | |
158 | Pliki nagłówkowe biblioteki atk-bridge. | |
159 | ||
160 | %package -n at-spi2-atk-static | |
161 | Summary: Static atk-bridge library | |
162 | Summary(pl.UTF-8): Biblioteka statyczna atk-bridge | |
163 | Group: Development/Libraries | |
164 | Requires: at-spi2-atk-devel = %{version}-%{release} | |
165 | ||
166 | %description -n at-spi2-atk-static | |
167 | Static atk-bridge library. | |
168 | ||
169 | %description -n at-spi2-atk-static -l pl.UTF-8 | |
170 | Biblioteka statyczna atk-bridge. | |
171 | ||
172 | %package -n atk | |
173 | Summary: ATK - Accessibility Toolkit | |
174 | Summary(pl.UTF-8): ATK - biblioteka ułatwiająca niepełnosprawnym korzystanie z komputerów | |
175 | Summary(pt_BR.UTF-8): Interfaces para suporte a acessibilidade | |
176 | Epoch: 1 | |
177 | Group: Libraries | |
178 | Requires: glib2 >= 1:2.38.0 | |
179 | Obsoletes: libatk1.0_0 < 1:2 | |
180 | ||
181 | %description -n atk | |
182 | The ATK library provides a set of interfaces for adding accessibility | |
183 | support to applications and graphical user interface toolkits. By | |
184 | supporting the ATK interfaces, an application or toolkit can be used | |
185 | as tools such as screen readers and magnifiers, and alternative input | |
186 | devices. | |
187 | ||
188 | %description -n atk -l pl.UTF-8 | |
189 | Biblioteka ATK udostępnia zestaw interfejsów ułatwiających | |
190 | niepełnosprawnym korzystanie z aplikacji i poszczególnych elementów | |
191 | graficznego interfejsu użytkownika. Poprzez wykorzystanie interfejsów | |
192 | ATK, aplikacja lub element interfejsu może być używany z takimi | |
193 | narzędziami jak czytniki ekranu i narzędzia powiększające oraz | |
194 | alternatywnymi urządzeniami wejściowymi. | |
195 | ||
196 | %description -n atk -l pt_BR.UTF-8 | |
197 | A biblioteca ATK provê um conjunto de interfaces para adicionar | |
198 | suporte a acessibilidade para aplicações e interfaces gráficas. | |
199 | Suportando a interface ATK, uma aplicação ou interface gráfica pode | |
200 | ser utilizada como ferramentas de leitura e aumento de tela, | |
201 | dispositivos de entrada alternativos, etc. | |
202 | ||
203 | %package -n atk-devel | |
204 | Summary: ATK - header files | |
205 | Summary(pl.UTF-8): ATK - pliki nagłówkowe | |
206 | Summary(pt_BR.UTF-8): Interfaces para suporte a acessibilidade | |
207 | Epoch: 1 | |
208 | Group: X11/Development/Libraries | |
209 | Requires: atk = 1:%{version}-%{release} | |
210 | Requires: glib2-devel >= 1:2.38.0 | |
211 | Obsoletes: libatk1.0_0-devel < 1:2 | |
212 | ||
213 | %description -n atk-devel | |
214 | ATK - header files. | |
215 | ||
216 | %description -n atk-devel -l pl.UTF-8 | |
217 | ATK - pliki nagłówkowe. | |
218 | ||
219 | %description -n atk-devel -l pt_BR.UTF-8 | |
220 | Interfaces para suporte a acessibilidade. | |
221 | ||
222 | %package -n atk-static | |
223 | Summary: ATK static library | |
224 | Summary(pl.UTF-8): Biblioteka statyczna ATK | |
225 | Summary(pt_BR.UTF-8): Interfaces para suporte a acessibilidade | |
226 | Epoch: 1 | |
227 | Group: X11/Development/Libraries | |
228 | Requires: atk-devel = 1:%{version}-%{release} | |
229 | ||
230 | %description -n atk-static | |
231 | ATK static library. | |
232 | ||
233 | %description -n atk-static -l pl.UTF-8 | |
234 | Biblioteka statyczna ATK. | |
235 | ||
236 | %description -n atk-static -l pt_BR.UTF-8 | |
237 | Interfaces para suporte a acessibilidade. | |
238 | ||
239 | %package -n atk-apidocs | |
240 | Summary: ATK API documentation | |
241 | Summary(pl.UTF-8): Dokumentacja API ATK | |
242 | Epoch: 1 | |
243 | Group: Documentation | |
9e0a849c JB |
244 | BuildArch: noarch |
245 | ||
246 | %description -n atk-apidocs | |
247 | ATK API documentation. | |
248 | ||
249 | %description -n atk-apidocs -l pl.UTF-8 | |
250 | Dokumentacja API ATK. | |
251 | ||
d0cc215a MB |
252 | %prep |
253 | %setup -q | |
254 | ||
255 | %build | |
8c784cdb | 256 | %meson build \ |
f4747273 | 257 | %{!?with_static_libs:--default-library='shared'} \ |
8aae1c0e JP |
258 | -Ddbus_daemon=/usr/bin/dbus-daemon \ |
259 | -Ddbus_broker=/usr/bin/dbus-broker-launch \ | |
260 | -Ddefault_bus=dbus-broker \ | |
b61f08ee | 261 | %{?with_apidocs:-Ddocs=true} \ |
4e14d4d2 | 262 | -Dx11=enabled |
f4747273 | 263 | |
1a6bb5c3 | 264 | %ninja_build -C build |
d0cc215a MB |
265 | |
266 | %install | |
267 | rm -rf $RPM_BUILD_ROOT | |
268 | ||
1a6bb5c3 | 269 | %ninja_install -C build |
d0cc215a | 270 | |
4e14d4d2 | 271 | %if %{with apidocs} |
5124e2fb JB |
272 | install -d $RPM_BUILD_ROOT%{_gidocdir} |
273 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/{atk,libatspi} $RPM_BUILD_ROOT%{_gidocdir} | |
4e14d4d2 JB |
274 | %endif |
275 | ||
d0cc215a MB |
276 | %find_lang %{name} |
277 | ||
278 | %clean | |
279 | rm -rf $RPM_BUILD_ROOT | |
280 | ||
0017442b JR |
281 | %post |
282 | %systemd_user_post at-spi-dbus-bus.service | |
283 | ||
284 | %preun | |
285 | %systemd_user_preun at-spi-dbus-bus.service | |
286 | ||
5585ec04 JB |
287 | %post libs -p /sbin/ldconfig |
288 | %postun libs -p /sbin/ldconfig | |
d0cc215a | 289 | |
9e0a849c JB |
290 | %post -n at-spi2-atk-libs -p /sbin/ldconfig |
291 | %postun -n at-spi2-atk-libs -p /sbin/ldconfig | |
292 | ||
293 | %post -n atk -p /sbin/ldconfig | |
294 | %postun -n atk -p /sbin/ldconfig | |
295 | ||
d0cc215a MB |
296 | %files -f %{name}.lang |
297 | %defattr(644,root,root,755) | |
9e0a849c | 298 | %doc MAINTAINERS NEWS README.md |
d653cc64 | 299 | %attr(755,root,root) %{_libexecdir}/at-spi-bus-launcher |
d0cc215a | 300 | %attr(755,root,root) %{_libexecdir}/at-spi2-registryd |
8821f7ce MB |
301 | %dir %{_datadir}/dbus-1/accessibility-services |
302 | %{_datadir}/dbus-1/accessibility-services/org.a11y.atspi.Registry.service | |
d653cc64 | 303 | %{_datadir}/dbus-1/services/org.a11y.Bus.service |
53eddf50 MB |
304 | %dir %{_datadir}/defaults/at-spi2 |
305 | %{_datadir}/defaults/at-spi2/accessibility.conf | |
a18fbbb0 | 306 | %{_sysconfdir}/xdg/Xwayland-session.d/00-at-spi |
d0cc215a | 307 | %{_sysconfdir}/xdg/autostart/at-spi-dbus-bus.desktop |
53eddf50 | 308 | %{systemduserunitdir}/at-spi-dbus-bus.service |
d0cc215a | 309 | |
5585ec04 JB |
310 | %files libs |
311 | %defattr(644,root,root,755) | |
312 | %attr(755,root,root) %{_libdir}/libatspi.so.*.*.* | |
313 | %attr(755,root,root) %ghost %{_libdir}/libatspi.so.0 | |
314 | %{_libdir}/girepository-1.0/Atspi-2.0.typelib | |
315 | ||
d0cc215a MB |
316 | %files devel |
317 | %defattr(644,root,root,755) | |
318 | %attr(755,root,root) %{_libdir}/libatspi.so | |
319 | %{_includedir}/at-spi-2.0 | |
320 | %{_datadir}/gir-1.0/Atspi-2.0.gir | |
d653cc64 | 321 | %{_pkgconfigdir}/atspi-2.pc |
d0cc215a | 322 | |
f4747273 JB |
323 | %if %{with static_libs} |
324 | %files static | |
325 | %defattr(644,root,root,755) | |
b61f08ee | 326 | %{_libdir}/libatspi.a |
f4747273 JB |
327 | %endif |
328 | ||
b61f08ee | 329 | %if %{with apidocs} |
d0cc215a MB |
330 | %files apidocs |
331 | %defattr(644,root,root,755) | |
5124e2fb | 332 | %{_gidocdir}/libatspi |
b61f08ee | 333 | %endif |
9e0a849c JB |
334 | |
335 | %files -n at-spi2-atk | |
336 | %defattr(644,root,root,755) | |
337 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libatk-bridge.so | |
338 | %{_libdir}/gnome-settings-daemon-3.0/gtk-modules/at-spi2-atk.desktop | |
339 | ||
340 | %files -n at-spi2-atk-libs | |
341 | %defattr(644,root,root,755) | |
342 | %attr(755,root,root) %{_libdir}/libatk-bridge-2.0.so.*.*.* | |
343 | %attr(755,root,root) %ghost %{_libdir}/libatk-bridge-2.0.so.0 | |
344 | ||
345 | %files -n at-spi2-atk-devel | |
346 | %defattr(644,root,root,755) | |
347 | %attr(755,root,root) %{_libdir}/libatk-bridge-2.0.so | |
348 | %{_includedir}/at-spi2-atk | |
349 | %{_pkgconfigdir}/atk-bridge-2.0.pc | |
350 | ||
351 | %if %{with static_libs} | |
352 | %files -n at-spi2-atk-static | |
353 | %defattr(644,root,root,755) | |
354 | %{_libdir}/libatk-bridge-2.0.a | |
355 | %endif | |
356 | ||
357 | %files -n atk | |
358 | %defattr(644,root,root,755) | |
359 | %attr(755,root,root) %{_libdir}/libatk-1.0.so.*.*.* | |
360 | %attr(755,root,root) %ghost %{_libdir}/libatk-1.0.so.0 | |
361 | %{_libdir}/girepository-1.0/Atk-1.0.typelib | |
362 | ||
363 | %files -n atk-devel | |
364 | %attr(755,root,root) %{_libdir}/libatk-1.0.so | |
365 | %{_includedir}/atk-1.0 | |
366 | %{_pkgconfigdir}/atk.pc | |
367 | %{_datadir}/gir-1.0/Atk-1.0.gir | |
368 | ||
369 | %if %{with static_libs} | |
370 | %files -n atk-static | |
371 | %defattr(644,root,root,755) | |
372 | %{_libdir}/libatk-1.0.a | |
373 | %endif | |
374 | ||
375 | %if %{with apidocs} | |
376 | %files -n atk-apidocs | |
377 | %defattr(644,root,root,755) | |
5124e2fb | 378 | %{_gidocdir}/atk |
9e0a849c | 379 | %endif |