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