]>
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 |
a18fbbb0 | 9 | Version: 2.42.0 |
53eddf50 | 10 | Release: 1 |
0fb65a50 | 11 | License: LGPL v2.1+ |
5585ec04 | 12 | Group: Daemons |
a18fbbb0 JB |
13 | Source0: https://download.gnome.org/sources/at-spi2-core/2.42/%{name}-%{version}.tar.xz |
14 | # Source0-md5: ce5e462a76e7480bd27e55828696eea4 | |
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 |
ab906245 | 18 | BuildRequires: glib2-devel >= 1:2.62.0 |
46c3d207 | 19 | BuildRequires: gobject-introspection-devel >= 1.32.0 |
b61f08ee | 20 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.25} |
1a6bb5c3 JB |
21 | BuildRequires: meson >= 0.50.0 |
22 | BuildRequires: ninja >= 1.5 | |
d0cc215a | 23 | BuildRequires: pkgconfig |
ab906245 | 24 | BuildRequires: rpm-build >= 4.6 |
1a6bb5c3 | 25 | BuildRequires: rpmbuild(macros) >= 1.736 |
a1ca39e9 | 26 | BuildRequires: tar >= 1:1.22 |
d0cc215a | 27 | BuildRequires: xorg-lib-libX11-devel |
d0cc215a MB |
28 | BuildRequires: xorg-lib-libXi-devel |
29 | BuildRequires: xorg-lib-libXtst-devel | |
a1ca39e9 | 30 | BuildRequires: xz |
5585ec04 | 31 | Requires: %{name}-libs = %{version}-%{release} |
f4747273 | 32 | Requires: dbus >= 1.5 |
d0cc215a MB |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
36 | at-spi allows assistive technologies to access GTK-based applications. | |
37 | Essentially it exposes the internals of applications for automation, | |
38 | so tools such as screen readers, magnifiers, or even scripting | |
39 | interfaces can query and interact with GUI controls. | |
40 | ||
41 | This version of at-spi is a major break from previous versions. It has | |
42 | been completely rewritten to use D-Bus rather than ORBIT / CORBA for | |
43 | its transport protocol. | |
44 | ||
5585ec04 JB |
45 | %description -l pl.UTF-8 |
46 | at-spi pozwala na dostęp technik wspomagających do aplikacji partych | |
47 | na bibliotece GTK+. W szczególności udostępnia wnętrzności aplikacji | |
48 | na potrzeby automatyzacji, dzięki czemu narzędzia takie jak czytniki | |
49 | ekranowe, lupy czy nawet interfejsy skryptowe mogą odpytywać i | |
50 | współpracować interaktywnie z kontrolkami GUI. | |
51 | ||
52 | Ta wersja at-spi to duża zmiana w stosunku do poprzednich wersji. | |
53 | Została całkowicie przepisana z użyciem protokołu transportowego D-Bus | |
54 | zamiast wcześniejszego ORBIT/CORBA. | |
55 | ||
56 | %package libs | |
57 | Summary: at-spi2 core library | |
58 | Summary(pl.UTF-8): Główna biblioteka at-spi2 | |
59 | Group: Libraries | |
f4747273 | 60 | Requires: dbus-libs >= 1.5 |
ab906245 | 61 | Requires: glib2 >= 1:2.62.0 |
5585ec04 JB |
62 | Conflicts: at-spi2-core < 2.2.1-2 |
63 | ||
64 | %description libs | |
65 | at-spi2 core library. | |
66 | ||
67 | %description libs -l pl.UTF-8 | |
68 | Główna biblioteka at-spi2. | |
69 | ||
d0cc215a MB |
70 | %package devel |
71 | Summary: Header files for at-spi2 library | |
72 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki at-spi2 | |
73 | Group: Development/Libraries | |
5585ec04 | 74 | Requires: %{name}-libs = %{version}-%{release} |
f4747273 | 75 | Requires: dbus-devel >= 1.5 |
ab906245 | 76 | Requires: glib2-devel >= 1:2.62.0 |
5585ec04 | 77 | Requires: xorg-lib-libX11-devel |
d0cc215a MB |
78 | |
79 | %description devel | |
80 | Header files for at-spi2 library. | |
81 | ||
82 | %description devel -l pl.UTF-8 | |
83 | Pliki nagłówkowe biblioteki at-spi2. | |
84 | ||
f4747273 JB |
85 | %package static |
86 | Summary: Static at-spi2 library | |
87 | Summary(pl.UTF-8): Statyczna biblioteka at-spi2 | |
88 | Group: Development/Libraries | |
89 | Requires: %{name}-devel = %{version}-%{release} | |
90 | ||
91 | %description static | |
92 | Static at-spi2 library. | |
93 | ||
94 | %description static -l pl.UTF-8 | |
95 | Statyczna biblioteka at-spi2. | |
96 | ||
d0cc215a MB |
97 | %package apidocs |
98 | Summary: at-spi2 library API documentation | |
99 | Summary(pl.UTF-8): Dokumentacja API biblioteki at-spi2 | |
100 | Group: Documentation | |
101 | Requires: gtk-doc-common | |
b50f32c0 | 102 | BuildArch: noarch |
d0cc215a MB |
103 | |
104 | %description apidocs | |
105 | at-spi2 library API documentation. | |
106 | ||
107 | %description apidocs -l pl.UTF-8 | |
108 | Dokumentacja API biblioteki at-spi2. | |
109 | ||
110 | %prep | |
111 | %setup -q | |
112 | ||
113 | %build | |
8c784cdb | 114 | %meson build \ |
f4747273 | 115 | %{!?with_static_libs:--default-library='shared'} \ |
b61f08ee | 116 | %{?with_apidocs:-Ddocs=true} \ |
fad88c4c | 117 | -Dx11=yes |
f4747273 | 118 | |
1a6bb5c3 | 119 | %ninja_build -C build |
d0cc215a MB |
120 | |
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
1a6bb5c3 | 124 | %ninja_install -C build |
d0cc215a MB |
125 | |
126 | %find_lang %{name} | |
127 | ||
128 | %clean | |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | ||
5585ec04 JB |
131 | %post libs -p /sbin/ldconfig |
132 | %postun libs -p /sbin/ldconfig | |
d0cc215a MB |
133 | |
134 | %files -f %{name}.lang | |
135 | %defattr(644,root,root,755) | |
4397efc1 | 136 | %doc AUTHORS NEWS README |
d653cc64 | 137 | %attr(755,root,root) %{_libexecdir}/at-spi-bus-launcher |
d0cc215a | 138 | %attr(755,root,root) %{_libexecdir}/at-spi2-registryd |
8821f7ce MB |
139 | %dir %{_datadir}/dbus-1/accessibility-services |
140 | %{_datadir}/dbus-1/accessibility-services/org.a11y.atspi.Registry.service | |
d653cc64 | 141 | %{_datadir}/dbus-1/services/org.a11y.Bus.service |
53eddf50 MB |
142 | %dir %{_datadir}/defaults/at-spi2 |
143 | %{_datadir}/defaults/at-spi2/accessibility.conf | |
a18fbbb0 | 144 | %{_sysconfdir}/xdg/Xwayland-session.d/00-at-spi |
d0cc215a | 145 | %{_sysconfdir}/xdg/autostart/at-spi-dbus-bus.desktop |
53eddf50 | 146 | %{systemduserunitdir}/at-spi-dbus-bus.service |
d0cc215a | 147 | |
5585ec04 JB |
148 | %files libs |
149 | %defattr(644,root,root,755) | |
150 | %attr(755,root,root) %{_libdir}/libatspi.so.*.*.* | |
151 | %attr(755,root,root) %ghost %{_libdir}/libatspi.so.0 | |
152 | %{_libdir}/girepository-1.0/Atspi-2.0.typelib | |
153 | ||
d0cc215a MB |
154 | %files devel |
155 | %defattr(644,root,root,755) | |
156 | %attr(755,root,root) %{_libdir}/libatspi.so | |
157 | %{_includedir}/at-spi-2.0 | |
158 | %{_datadir}/gir-1.0/Atspi-2.0.gir | |
d653cc64 | 159 | %{_pkgconfigdir}/atspi-2.pc |
d0cc215a | 160 | |
f4747273 JB |
161 | %if %{with static_libs} |
162 | %files static | |
163 | %defattr(644,root,root,755) | |
b61f08ee | 164 | %{_libdir}/libatspi.a |
f4747273 JB |
165 | %endif |
166 | ||
b61f08ee | 167 | %if %{with apidocs} |
d0cc215a MB |
168 | %files apidocs |
169 | %defattr(644,root,root,755) | |
170 | %{_gtkdocdir}/libatspi | |
b61f08ee | 171 | %endif |