]>
Commit | Line | Data |
---|---|---|
c91086d6 JB |
1 | # |
2 | # Conditional build: | |
b61f08ee | 3 | %bcond_without apidocs # API documentation |
f4747273 | 4 | %bcond_with 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 |
9e0a849c | 9 | Version: 2.46.0 |
db04ae9c | 10 | Release: 1 |
0fb65a50 | 11 | License: LGPL v2.1+ |
5585ec04 | 12 | Group: Daemons |
9e0a849c JB |
13 | Source0: https://download.gnome.org/sources/at-spi2-core/2.46/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 16e85a40442d80be960b4e1e3992fd5b | |
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 |
b61f08ee | 20 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.25} |
9e0a849c JB |
21 | BuildRequires: libxml2-devel >= 1:2.9.1 |
22 | BuildRequires: meson >= 0.56.2 | |
1a6bb5c3 | 23 | BuildRequires: ninja >= 1.5 |
d0cc215a | 24 | BuildRequires: pkgconfig |
ab906245 | 25 | BuildRequires: rpm-build >= 4.6 |
0017442b | 26 | BuildRequires: rpmbuild(macros) >= 2.011 |
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 | |
104 | Requires: gtk-doc-common | |
b50f32c0 | 105 | BuildArch: noarch |
d0cc215a MB |
106 | |
107 | %description apidocs | |
108 | at-spi2 library API documentation. | |
109 | ||
110 | %description apidocs -l pl.UTF-8 | |
111 | Dokumentacja API biblioteki at-spi2. | |
112 | ||
9e0a849c JB |
113 | %package -n at-spi2-atk |
114 | Summary: A GTK+ module that bridges ATK to D-Bus at-spi | |
115 | Summary(pl.UTF-8): Moduł GTK+ łączący ATK z at-spi jako usługą D-Bus | |
116 | Group: Libraries | |
117 | Requires: at-spi2-atk-libs = %{version}-%{release} | |
118 | Requires: atk = 1:%{version}-%{release} | |
119 | Requires: %{name} = %{version}-%{release} | |
120 | Requires: dbus >= 1.5 | |
121 | ||
122 | %description -n at-spi2-atk | |
123 | This package provides a GTK+ module that bridges ATK to the new D-Bus | |
124 | based at-spi. | |
125 | ||
126 | %description -n at-spi2-atk -l pl.UTF-8 | |
127 | Ten pakiet dostarcza moduł GTK+ łączący ATK z nowym at-spi, opartym o | |
128 | usługę D-Bus. | |
129 | ||
130 | %package -n at-spi2-atk-libs | |
131 | Summary: Shared atk-bridge library | |
132 | Summary(pl.UTF-8): Biblioteka współdzielona atk-bridge | |
133 | Group: Libraries | |
134 | Requires: %{name}-libs = %{version}-%{release} | |
135 | Requires: atk = 1:%{version}-%{release} | |
136 | Requires: dbus-libs >= 1.5 | |
137 | Requires: glib2 >= 1:2.32.0 | |
138 | Conflicts: at-spi2-atk < 2.6.0-2 | |
139 | ||
140 | %description -n at-spi2-atk-libs | |
141 | Shared atk-bridge library, providing ATK/D-Bus bridge. | |
142 | ||
143 | %description -n at-spi2-atk-libs -l pl.UTF-8 | |
144 | Biblioteka współdzielona atk-bridge, zapewniająca pomost między ATK a | |
145 | D-Bus. | |
146 | ||
147 | %package -n at-spi2-atk-devel | |
148 | Summary: Header files for atk-bridge library | |
149 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki atk-bridge | |
150 | Group: Development/Libraries | |
151 | Requires: at-spi2-atk-libs = %{version}-%{release} | |
152 | Requires: %{name}-devel = %{version}-%{release} | |
153 | Requires: glib2-devel >= 1:2.32.0 | |
154 | ||
155 | %description -n at-spi2-atk-devel | |
156 | Header files for atk-bridge library. | |
157 | ||
158 | %description -n at-spi2-atk-devel -l pl.UTF-8 | |
159 | Pliki nagłówkowe biblioteki atk-bridge. | |
160 | ||
161 | %package -n at-spi2-atk-static | |
162 | Summary: Static atk-bridge library | |
163 | Summary(pl.UTF-8): Biblioteka statyczna atk-bridge | |
164 | Group: Development/Libraries | |
165 | Requires: at-spi2-atk-devel = %{version}-%{release} | |
166 | ||
167 | %description -n at-spi2-atk-static | |
168 | Static atk-bridge library. | |
169 | ||
170 | %description -n at-spi2-atk-static -l pl.UTF-8 | |
171 | Biblioteka statyczna atk-bridge. | |
172 | ||
173 | %package -n atk | |
174 | Summary: ATK - Accessibility Toolkit | |
175 | Summary(pl.UTF-8): ATK - biblioteka ułatwiająca niepełnosprawnym korzystanie z komputerów | |
176 | Summary(pt_BR.UTF-8): Interfaces para suporte a acessibilidade | |
177 | Epoch: 1 | |
178 | Group: Libraries | |
179 | Requires: glib2 >= 1:2.38.0 | |
180 | Obsoletes: libatk1.0_0 < 1:2 | |
181 | ||
182 | %description -n atk | |
183 | The ATK library provides a set of interfaces for adding accessibility | |
184 | support to applications and graphical user interface toolkits. By | |
185 | supporting the ATK interfaces, an application or toolkit can be used | |
186 | as tools such as screen readers and magnifiers, and alternative input | |
187 | devices. | |
188 | ||
189 | %description -n atk -l pl.UTF-8 | |
190 | Biblioteka ATK udostępnia zestaw interfejsów ułatwiających | |
191 | niepełnosprawnym korzystanie z aplikacji i poszczególnych elementów | |
192 | graficznego interfejsu użytkownika. Poprzez wykorzystanie interfejsów | |
193 | ATK, aplikacja lub element interfejsu może być używany z takimi | |
194 | narzędziami jak czytniki ekranu i narzędzia powiększające oraz | |
195 | alternatywnymi urządzeniami wejściowymi. | |
196 | ||
197 | %description -n atk -l pt_BR.UTF-8 | |
198 | A biblioteca ATK provê um conjunto de interfaces para adicionar | |
199 | suporte a acessibilidade para aplicações e interfaces gráficas. | |
200 | Suportando a interface ATK, uma aplicação ou interface gráfica pode | |
201 | ser utilizada como ferramentas de leitura e aumento de tela, | |
202 | dispositivos de entrada alternativos, etc. | |
203 | ||
204 | %package -n atk-devel | |
205 | Summary: ATK - header files | |
206 | Summary(pl.UTF-8): ATK - pliki nagłówkowe | |
207 | Summary(pt_BR.UTF-8): Interfaces para suporte a acessibilidade | |
208 | Epoch: 1 | |
209 | Group: X11/Development/Libraries | |
210 | Requires: atk = 1:%{version}-%{release} | |
211 | Requires: glib2-devel >= 1:2.38.0 | |
212 | Obsoletes: libatk1.0_0-devel < 1:2 | |
213 | ||
214 | %description -n atk-devel | |
215 | ATK - header files. | |
216 | ||
217 | %description -n atk-devel -l pl.UTF-8 | |
218 | ATK - pliki nagłówkowe. | |
219 | ||
220 | %description -n atk-devel -l pt_BR.UTF-8 | |
221 | Interfaces para suporte a acessibilidade. | |
222 | ||
223 | %package -n atk-static | |
224 | Summary: ATK static library | |
225 | Summary(pl.UTF-8): Biblioteka statyczna ATK | |
226 | Summary(pt_BR.UTF-8): Interfaces para suporte a acessibilidade | |
227 | Epoch: 1 | |
228 | Group: X11/Development/Libraries | |
229 | Requires: atk-devel = 1:%{version}-%{release} | |
230 | ||
231 | %description -n atk-static | |
232 | ATK static library. | |
233 | ||
234 | %description -n atk-static -l pl.UTF-8 | |
235 | Biblioteka statyczna ATK. | |
236 | ||
237 | %description -n atk-static -l pt_BR.UTF-8 | |
238 | Interfaces para suporte a acessibilidade. | |
239 | ||
240 | %package -n atk-apidocs | |
241 | Summary: ATK API documentation | |
242 | Summary(pl.UTF-8): Dokumentacja API ATK | |
243 | Epoch: 1 | |
244 | Group: Documentation | |
245 | Requires: gtk-doc-common | |
246 | BuildArch: noarch | |
247 | ||
248 | %description -n atk-apidocs | |
249 | ATK API documentation. | |
250 | ||
251 | %description -n atk-apidocs -l pl.UTF-8 | |
252 | Dokumentacja API ATK. | |
253 | ||
d0cc215a MB |
254 | %prep |
255 | %setup -q | |
256 | ||
257 | %build | |
8c784cdb | 258 | %meson build \ |
f4747273 | 259 | %{!?with_static_libs:--default-library='shared'} \ |
b61f08ee | 260 | %{?with_apidocs:-Ddocs=true} \ |
fad88c4c | 261 | -Dx11=yes |
f4747273 | 262 | |
1a6bb5c3 | 263 | %ninja_build -C build |
d0cc215a MB |
264 | |
265 | %install | |
266 | rm -rf $RPM_BUILD_ROOT | |
267 | ||
1a6bb5c3 | 268 | %ninja_install -C build |
d0cc215a MB |
269 | |
270 | %find_lang %{name} | |
271 | ||
272 | %clean | |
273 | rm -rf $RPM_BUILD_ROOT | |
274 | ||
0017442b JR |
275 | %post |
276 | %systemd_user_post at-spi-dbus-bus.service | |
277 | ||
278 | %preun | |
279 | %systemd_user_preun at-spi-dbus-bus.service | |
280 | ||
5585ec04 JB |
281 | %post libs -p /sbin/ldconfig |
282 | %postun libs -p /sbin/ldconfig | |
d0cc215a | 283 | |
9e0a849c JB |
284 | %post -n at-spi2-atk-libs -p /sbin/ldconfig |
285 | %postun -n at-spi2-atk-libs -p /sbin/ldconfig | |
286 | ||
287 | %post -n atk -p /sbin/ldconfig | |
288 | %postun -n atk -p /sbin/ldconfig | |
289 | ||
d0cc215a MB |
290 | %files -f %{name}.lang |
291 | %defattr(644,root,root,755) | |
9e0a849c | 292 | %doc MAINTAINERS NEWS README.md |
d653cc64 | 293 | %attr(755,root,root) %{_libexecdir}/at-spi-bus-launcher |
d0cc215a | 294 | %attr(755,root,root) %{_libexecdir}/at-spi2-registryd |
8821f7ce MB |
295 | %dir %{_datadir}/dbus-1/accessibility-services |
296 | %{_datadir}/dbus-1/accessibility-services/org.a11y.atspi.Registry.service | |
d653cc64 | 297 | %{_datadir}/dbus-1/services/org.a11y.Bus.service |
53eddf50 MB |
298 | %dir %{_datadir}/defaults/at-spi2 |
299 | %{_datadir}/defaults/at-spi2/accessibility.conf | |
a18fbbb0 | 300 | %{_sysconfdir}/xdg/Xwayland-session.d/00-at-spi |
d0cc215a | 301 | %{_sysconfdir}/xdg/autostart/at-spi-dbus-bus.desktop |
53eddf50 | 302 | %{systemduserunitdir}/at-spi-dbus-bus.service |
d0cc215a | 303 | |
5585ec04 JB |
304 | %files libs |
305 | %defattr(644,root,root,755) | |
306 | %attr(755,root,root) %{_libdir}/libatspi.so.*.*.* | |
307 | %attr(755,root,root) %ghost %{_libdir}/libatspi.so.0 | |
308 | %{_libdir}/girepository-1.0/Atspi-2.0.typelib | |
309 | ||
d0cc215a MB |
310 | %files devel |
311 | %defattr(644,root,root,755) | |
312 | %attr(755,root,root) %{_libdir}/libatspi.so | |
313 | %{_includedir}/at-spi-2.0 | |
314 | %{_datadir}/gir-1.0/Atspi-2.0.gir | |
d653cc64 | 315 | %{_pkgconfigdir}/atspi-2.pc |
d0cc215a | 316 | |
f4747273 JB |
317 | %if %{with static_libs} |
318 | %files static | |
319 | %defattr(644,root,root,755) | |
b61f08ee | 320 | %{_libdir}/libatspi.a |
f4747273 JB |
321 | %endif |
322 | ||
b61f08ee | 323 | %if %{with apidocs} |
d0cc215a MB |
324 | %files apidocs |
325 | %defattr(644,root,root,755) | |
326 | %{_gtkdocdir}/libatspi | |
b61f08ee | 327 | %endif |
9e0a849c JB |
328 | |
329 | %files -n at-spi2-atk | |
330 | %defattr(644,root,root,755) | |
331 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libatk-bridge.so | |
332 | %{_libdir}/gnome-settings-daemon-3.0/gtk-modules/at-spi2-atk.desktop | |
333 | ||
334 | %files -n at-spi2-atk-libs | |
335 | %defattr(644,root,root,755) | |
336 | %attr(755,root,root) %{_libdir}/libatk-bridge-2.0.so.*.*.* | |
337 | %attr(755,root,root) %ghost %{_libdir}/libatk-bridge-2.0.so.0 | |
338 | ||
339 | %files -n at-spi2-atk-devel | |
340 | %defattr(644,root,root,755) | |
341 | %attr(755,root,root) %{_libdir}/libatk-bridge-2.0.so | |
342 | %{_includedir}/at-spi2-atk | |
343 | %{_pkgconfigdir}/atk-bridge-2.0.pc | |
344 | ||
345 | %if %{with static_libs} | |
346 | %files -n at-spi2-atk-static | |
347 | %defattr(644,root,root,755) | |
348 | %{_libdir}/libatk-bridge-2.0.a | |
349 | %endif | |
350 | ||
351 | %files -n atk | |
352 | %defattr(644,root,root,755) | |
353 | %attr(755,root,root) %{_libdir}/libatk-1.0.so.*.*.* | |
354 | %attr(755,root,root) %ghost %{_libdir}/libatk-1.0.so.0 | |
355 | %{_libdir}/girepository-1.0/Atk-1.0.typelib | |
356 | ||
357 | %files -n atk-devel | |
358 | %attr(755,root,root) %{_libdir}/libatk-1.0.so | |
359 | %{_includedir}/atk-1.0 | |
360 | %{_pkgconfigdir}/atk.pc | |
361 | %{_datadir}/gir-1.0/Atk-1.0.gir | |
362 | ||
363 | %if %{with static_libs} | |
364 | %files -n atk-static | |
365 | %defattr(644,root,root,755) | |
366 | %{_libdir}/libatk-1.0.a | |
367 | %endif | |
368 | ||
369 | %if %{with apidocs} | |
370 | %files -n atk-apidocs | |
371 | %defattr(644,root,root,755) | |
372 | %{_gtkdocdir}/atk | |
373 | %endif |