]>
Commit | Line | Data |
---|---|---|
c91086d6 JB |
1 | # |
2 | # Conditional build: | |
b61f08ee | 3 | %bcond_without apidocs # API documentation |
24050eba | 4 | %bcond_without static_libs # static library |
2d754e37 | 5 | %bcond_without systemd # systemd |
c91086d6 | 6 | |
d0cc215a | 7 | Summary: Protocol definitions and daemon for D-Bus at-spi |
5585ec04 | 8 | Summary(pl-UTF-8): Definicje protokołu oraz demon at-spi dla usługi D-Bus |
d0cc215a | 9 | Name: at-spi2-core |
a067c339 JB |
10 | Version: 2.52.0 |
11 | Release: 1 | |
0fb65a50 | 12 | License: LGPL v2.1+ |
5585ec04 | 13 | Group: Daemons |
a067c339 JB |
14 | Source0: https://download.gnome.org/sources/at-spi2-core/2.52/%{name}-%{version}.tar.xz |
15 | # Source0-md5: e6591545b2bf204fe9a58f777bd0b78a | |
f4747273 JB |
16 | URL: https://wiki.linuxfoundation.org/accessibility/d-bus |
17 | BuildRequires: dbus-devel >= 1.5 | |
46c3d207 | 18 | BuildRequires: gettext-tools >= 0.19.8 |
9e0a849c | 19 | BuildRequires: glib2-devel >= 1:2.67.4 |
46c3d207 | 20 | BuildRequires: gobject-introspection-devel >= 1.32.0 |
4e14d4d2 | 21 | %{?with_apidocs:BuildRequires: gi-docgen >= 2021.1} |
9e0a849c | 22 | BuildRequires: libxml2-devel >= 1:2.9.1 |
4e14d4d2 | 23 | BuildRequires: meson >= 0.63.0 |
1a6bb5c3 | 24 | BuildRequires: ninja >= 1.5 |
d0cc215a | 25 | BuildRequires: pkgconfig |
ab906245 | 26 | BuildRequires: rpm-build >= 4.6 |
5124e2fb | 27 | BuildRequires: rpmbuild(macros) >= 2.029 |
a1ca39e9 | 28 | BuildRequires: tar >= 1:1.22 |
d0cc215a | 29 | BuildRequires: xorg-lib-libX11-devel |
d0cc215a MB |
30 | BuildRequires: xorg-lib-libXi-devel |
31 | BuildRequires: xorg-lib-libXtst-devel | |
a1ca39e9 | 32 | BuildRequires: xz |
2322de40 | 33 | Requires(post,preun): systemd-units >= 1:250.1 |
5585ec04 | 34 | Requires: %{name}-libs = %{version}-%{release} |
f4747273 | 35 | Requires: dbus >= 1.5 |
2322de40 | 36 | Requires: systemd-units >= 1:250.1 |
d0cc215a MB |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
40 | at-spi allows assistive technologies to access GTK-based applications. | |
41 | Essentially it exposes the internals of applications for automation, | |
42 | so tools such as screen readers, magnifiers, or even scripting | |
43 | interfaces can query and interact with GUI controls. | |
44 | ||
45 | This version of at-spi is a major break from previous versions. It has | |
46 | been completely rewritten to use D-Bus rather than ORBIT / CORBA for | |
47 | its transport protocol. | |
48 | ||
5585ec04 JB |
49 | %description -l pl.UTF-8 |
50 | at-spi pozwala na dostęp technik wspomagających do aplikacji partych | |
51 | na bibliotece GTK+. W szczególności udostępnia wnętrzności aplikacji | |
52 | na potrzeby automatyzacji, dzięki czemu narzędzia takie jak czytniki | |
53 | ekranowe, lupy czy nawet interfejsy skryptowe mogą odpytywać i | |
54 | współpracować interaktywnie z kontrolkami GUI. | |
55 | ||
56 | Ta wersja at-spi to duża zmiana w stosunku do poprzednich wersji. | |
57 | Została całkowicie przepisana z użyciem protokołu transportowego D-Bus | |
58 | zamiast wcześniejszego ORBIT/CORBA. | |
59 | ||
60 | %package libs | |
61 | Summary: at-spi2 core library | |
62 | Summary(pl.UTF-8): Główna biblioteka at-spi2 | |
63 | Group: Libraries | |
f4747273 | 64 | Requires: dbus-libs >= 1.5 |
9e0a849c | 65 | Requires: glib2 >= 1:2.67.4 |
5585ec04 JB |
66 | Conflicts: at-spi2-core < 2.2.1-2 |
67 | ||
68 | %description libs | |
69 | at-spi2 core library. | |
70 | ||
71 | %description libs -l pl.UTF-8 | |
72 | Główna biblioteka at-spi2. | |
73 | ||
d0cc215a MB |
74 | %package devel |
75 | Summary: Header files for at-spi2 library | |
76 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki at-spi2 | |
77 | Group: Development/Libraries | |
5585ec04 | 78 | Requires: %{name}-libs = %{version}-%{release} |
f4747273 | 79 | Requires: dbus-devel >= 1.5 |
9e0a849c | 80 | Requires: glib2-devel >= 1:2.67.4 |
5585ec04 | 81 | Requires: xorg-lib-libX11-devel |
d0cc215a MB |
82 | |
83 | %description devel | |
84 | Header files for at-spi2 library. | |
85 | ||
86 | %description devel -l pl.UTF-8 | |
87 | Pliki nagłówkowe biblioteki at-spi2. | |
88 | ||
f4747273 JB |
89 | %package static |
90 | Summary: Static at-spi2 library | |
91 | Summary(pl.UTF-8): Statyczna biblioteka at-spi2 | |
92 | Group: Development/Libraries | |
93 | Requires: %{name}-devel = %{version}-%{release} | |
94 | ||
95 | %description static | |
96 | Static at-spi2 library. | |
97 | ||
98 | %description static -l pl.UTF-8 | |
99 | Statyczna biblioteka at-spi2. | |
100 | ||
d0cc215a MB |
101 | %package apidocs |
102 | Summary: at-spi2 library API documentation | |
103 | Summary(pl.UTF-8): Dokumentacja API biblioteki at-spi2 | |
104 | Group: Documentation | |
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 | |
9e0a849c JB |
245 | BuildArch: noarch |
246 | ||
247 | %description -n atk-apidocs | |
248 | ATK API documentation. | |
249 | ||
250 | %description -n atk-apidocs -l pl.UTF-8 | |
251 | Dokumentacja API ATK. | |
252 | ||
d0cc215a MB |
253 | %prep |
254 | %setup -q | |
255 | ||
256 | %build | |
8c784cdb | 257 | %meson build \ |
f4747273 | 258 | %{!?with_static_libs:--default-library='shared'} \ |
8aae1c0e | 259 | -Ddbus_daemon=/usr/bin/dbus-daemon \ |
2d754e37 | 260 | %if %{with systemd} |
8aae1c0e JP |
261 | -Ddbus_broker=/usr/bin/dbus-broker-launch \ |
262 | -Ddefault_bus=dbus-broker \ | |
2d754e37 MK |
263 | %else |
264 | -Ddefault_bus=dbus-daemon \ | |
265 | -Duse_systemd=false \ | |
266 | %endif | |
b61f08ee | 267 | %{?with_apidocs:-Ddocs=true} \ |
4e14d4d2 | 268 | -Dx11=enabled |
f4747273 | 269 | |
1a6bb5c3 | 270 | %ninja_build -C build |
d0cc215a MB |
271 | |
272 | %install | |
273 | rm -rf $RPM_BUILD_ROOT | |
274 | ||
1a6bb5c3 | 275 | %ninja_install -C build |
d0cc215a | 276 | |
4e14d4d2 | 277 | %if %{with apidocs} |
5124e2fb JB |
278 | install -d $RPM_BUILD_ROOT%{_gidocdir} |
279 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/{atk,libatspi} $RPM_BUILD_ROOT%{_gidocdir} | |
4e14d4d2 JB |
280 | %endif |
281 | ||
d0cc215a MB |
282 | %find_lang %{name} |
283 | ||
284 | %clean | |
285 | rm -rf $RPM_BUILD_ROOT | |
286 | ||
0017442b JR |
287 | %post |
288 | %systemd_user_post at-spi-dbus-bus.service | |
289 | ||
290 | %preun | |
291 | %systemd_user_preun at-spi-dbus-bus.service | |
292 | ||
5585ec04 JB |
293 | %post libs -p /sbin/ldconfig |
294 | %postun libs -p /sbin/ldconfig | |
d0cc215a | 295 | |
9e0a849c JB |
296 | %post -n at-spi2-atk-libs -p /sbin/ldconfig |
297 | %postun -n at-spi2-atk-libs -p /sbin/ldconfig | |
298 | ||
299 | %post -n atk -p /sbin/ldconfig | |
300 | %postun -n atk -p /sbin/ldconfig | |
301 | ||
d0cc215a MB |
302 | %files -f %{name}.lang |
303 | %defattr(644,root,root,755) | |
9e0a849c | 304 | %doc MAINTAINERS NEWS README.md |
d653cc64 | 305 | %attr(755,root,root) %{_libexecdir}/at-spi-bus-launcher |
d0cc215a | 306 | %attr(755,root,root) %{_libexecdir}/at-spi2-registryd |
8821f7ce MB |
307 | %dir %{_datadir}/dbus-1/accessibility-services |
308 | %{_datadir}/dbus-1/accessibility-services/org.a11y.atspi.Registry.service | |
d653cc64 | 309 | %{_datadir}/dbus-1/services/org.a11y.Bus.service |
53eddf50 MB |
310 | %dir %{_datadir}/defaults/at-spi2 |
311 | %{_datadir}/defaults/at-spi2/accessibility.conf | |
a18fbbb0 | 312 | %{_sysconfdir}/xdg/Xwayland-session.d/00-at-spi |
d0cc215a | 313 | %{_sysconfdir}/xdg/autostart/at-spi-dbus-bus.desktop |
53eddf50 | 314 | %{systemduserunitdir}/at-spi-dbus-bus.service |
d0cc215a | 315 | |
5585ec04 JB |
316 | %files libs |
317 | %defattr(644,root,root,755) | |
318 | %attr(755,root,root) %{_libdir}/libatspi.so.*.*.* | |
319 | %attr(755,root,root) %ghost %{_libdir}/libatspi.so.0 | |
320 | %{_libdir}/girepository-1.0/Atspi-2.0.typelib | |
321 | ||
d0cc215a MB |
322 | %files devel |
323 | %defattr(644,root,root,755) | |
324 | %attr(755,root,root) %{_libdir}/libatspi.so | |
325 | %{_includedir}/at-spi-2.0 | |
326 | %{_datadir}/gir-1.0/Atspi-2.0.gir | |
d653cc64 | 327 | %{_pkgconfigdir}/atspi-2.pc |
d0cc215a | 328 | |
f4747273 JB |
329 | %if %{with static_libs} |
330 | %files static | |
331 | %defattr(644,root,root,755) | |
b61f08ee | 332 | %{_libdir}/libatspi.a |
f4747273 JB |
333 | %endif |
334 | ||
b61f08ee | 335 | %if %{with apidocs} |
d0cc215a MB |
336 | %files apidocs |
337 | %defattr(644,root,root,755) | |
5124e2fb | 338 | %{_gidocdir}/libatspi |
b61f08ee | 339 | %endif |
9e0a849c JB |
340 | |
341 | %files -n at-spi2-atk | |
342 | %defattr(644,root,root,755) | |
343 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libatk-bridge.so | |
344 | %{_libdir}/gnome-settings-daemon-3.0/gtk-modules/at-spi2-atk.desktop | |
345 | ||
346 | %files -n at-spi2-atk-libs | |
347 | %defattr(644,root,root,755) | |
348 | %attr(755,root,root) %{_libdir}/libatk-bridge-2.0.so.*.*.* | |
349 | %attr(755,root,root) %ghost %{_libdir}/libatk-bridge-2.0.so.0 | |
350 | ||
351 | %files -n at-spi2-atk-devel | |
352 | %defattr(644,root,root,755) | |
353 | %attr(755,root,root) %{_libdir}/libatk-bridge-2.0.so | |
354 | %{_includedir}/at-spi2-atk | |
355 | %{_pkgconfigdir}/atk-bridge-2.0.pc | |
356 | ||
357 | %if %{with static_libs} | |
358 | %files -n at-spi2-atk-static | |
359 | %defattr(644,root,root,755) | |
360 | %{_libdir}/libatk-bridge-2.0.a | |
361 | %endif | |
362 | ||
363 | %files -n atk | |
364 | %defattr(644,root,root,755) | |
365 | %attr(755,root,root) %{_libdir}/libatk-1.0.so.*.*.* | |
366 | %attr(755,root,root) %ghost %{_libdir}/libatk-1.0.so.0 | |
367 | %{_libdir}/girepository-1.0/Atk-1.0.typelib | |
368 | ||
369 | %files -n atk-devel | |
370 | %attr(755,root,root) %{_libdir}/libatk-1.0.so | |
371 | %{_includedir}/atk-1.0 | |
372 | %{_pkgconfigdir}/atk.pc | |
373 | %{_datadir}/gir-1.0/Atk-1.0.gir | |
374 | ||
375 | %if %{with static_libs} | |
376 | %files -n atk-static | |
377 | %defattr(644,root,root,755) | |
378 | %{_libdir}/libatk-1.0.a | |
379 | %endif | |
380 | ||
381 | %if %{with apidocs} | |
382 | %files -n atk-apidocs | |
383 | %defattr(644,root,root,755) | |
5124e2fb | 384 | %{_gidocdir}/atk |
9e0a849c | 385 | %endif |