]>
Commit | Line | Data |
---|---|---|
96df6e6c | 1 | # NOTE: for versions >= 2.46 see at-spi2-core.spec |
34a89ef1 JB |
2 | # |
3 | # Conditional build: | |
de7a452e | 4 | %bcond_without static_libs # static library |
34a89ef1 | 5 | # |
4fca4d63 | 6 | Summary: A GTK+ module that bridges ATK to D-Bus at-spi |
960d998b | 7 | Summary(pl.UTF-8): Moduł GTK+ łączący ATK z at-spi jako usługą D-Bus |
4fca4d63 | 8 | Name: at-spi2-atk |
9aaaedd7 | 9 | Version: 2.38.0 |
96df6e6c | 10 | Release: 1.1 |
41b00c97 | 11 | License: LGPL v2.1+ |
4fca4d63 | 12 | Group: Libraries |
bcc5bfc9 | 13 | Source0: https://download.gnome.org/sources/at-spi2-atk/2.38/%{name}-%{version}.tar.xz |
9aaaedd7 | 14 | # Source0-md5: aed95be54ef213d210331dda88298b92 |
b3f33b0d | 15 | URL: https://wiki.linuxfoundation.org/accessibility/d-bus |
41b00c97 | 16 | BuildRequires: at-spi2-core-devel >= 2.34.0 |
9aaaedd7 | 17 | BuildRequires: atk-devel >= 1:2.36.0 |
62c73b81 | 18 | BuildRequires: dbus-devel >= 1.5 |
78686f76 | 19 | BuildRequires: glib2-devel >= 1:2.32.0 |
b3f33b0d JB |
20 | # for tests only |
21 | #BuildRequires: libxml2-devel >= 1:2.9.1 | |
22 | BuildRequires: meson >= 0.40.1 | |
41b00c97 | 23 | BuildRequires: ninja >= 1.5 |
4fca4d63 | 24 | BuildRequires: pkgconfig |
41b00c97 | 25 | BuildRequires: rpmbuild(macros) >= 1.736 |
b3f33b0d | 26 | BuildRequires: sed >= 4.0 |
851aed7a MB |
27 | BuildRequires: tar >= 1:1.22 |
28 | BuildRequires: xz | |
34a89ef1 | 29 | Requires: %{name}-libs = %{version}-%{release} |
9aaaedd7 | 30 | Requires: atk >= 1:2.36.0 |
41b00c97 | 31 | Requires: at-spi2-core >= 2.34.0 |
62c73b81 | 32 | Requires: dbus >= 1.5 |
4fca4d63 MB |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
36 | This package provides a GTK+ module that bridges ATK to the new D-Bus | |
37 | based at-spi. | |
38 | ||
960d998b JB |
39 | %description -l pl.UTF-8 |
40 | Ten pakiet dostarcza moduł GTK+ łączący ATK z nowym at-spi, opartym o | |
41 | usługę D-Bus. | |
42 | ||
34a89ef1 JB |
43 | %package libs |
44 | Summary: Shared atk-bridge library | |
45 | Summary(pl.UTF-8): Biblioteka współdzielona atk-bridge | |
46 | Group: Libraries | |
41b00c97 | 47 | Requires: at-spi2-core-libs >= 2.34.0 |
9aaaedd7 | 48 | Requires: atk >= 1:2.36.0 |
62c73b81 | 49 | Requires: dbus-libs >= 1.5 |
78686f76 | 50 | Requires: glib2 >= 1:2.32.0 |
34a89ef1 JB |
51 | Conflicts: at-spi2-atk < 2.6.0-2 |
52 | ||
53 | %description libs | |
54 | Shared atk-bridge library, providing ATK/D-Bus bridge. | |
55 | ||
56 | %description libs -l pl.UTF-8 | |
57 | Biblioteka współdzielona atk-bridge, zapewniająca pomost między ATK a | |
58 | D-Bus. | |
59 | ||
f57b3d5b | 60 | %package devel |
34a89ef1 JB |
61 | Summary: Header files for atk-bridge library |
62 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki atk-bridge | |
f57b3d5b | 63 | Group: Development/Libraries |
34a89ef1 | 64 | Requires: %{name}-libs = %{version}-%{release} |
41b00c97 | 65 | Requires: at-spi2-core-devel >= 2.34.0 |
78686f76 | 66 | Requires: glib2-devel >= 1:2.32.0 |
f57b3d5b ŁK |
67 | |
68 | %description devel | |
34a89ef1 | 69 | Header files for atk-bridge library. |
f57b3d5b ŁK |
70 | |
71 | %description devel -l pl.UTF-8 | |
34a89ef1 JB |
72 | Pliki nagłówkowe biblioteki atk-bridge. |
73 | ||
74 | %package static | |
75 | Summary: Static atk-bridge library | |
76 | Summary(pl.UTF-8): Biblioteka statyczna atk-bridge | |
77 | Group: Development/Libraries | |
78 | Requires: %{name}-devel = %{version}-%{release} | |
79 | ||
80 | %description static | |
81 | Static atk-bridge library. | |
82 | ||
83 | %description static -l pl.UTF-8 | |
84 | Biblioteka statyczna atk-bridge. | |
f57b3d5b | 85 | |
4fca4d63 MB |
86 | %prep |
87 | %setup -q | |
88 | ||
89 | %build | |
de7a452e | 90 | %meson build \ |
161af130 JP |
91 | %{!?with_static_libs:--default-library=shared} \ |
92 | -Dtests=false | |
b3f33b0d | 93 | |
41b00c97 | 94 | %ninja_build -C build |
4fca4d63 MB |
95 | |
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
41b00c97 | 99 | %ninja_install -C build |
4fca4d63 | 100 | |
4fca4d63 MB |
101 | %clean |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
34a89ef1 JB |
104 | %post libs -p /sbin/ldconfig |
105 | %postun libs -p /sbin/ldconfig | |
106 | ||
7cf546c1 | 107 | %files |
4fca4d63 | 108 | %defattr(644,root,root,755) |
4fca4d63 | 109 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libatk-bridge.so |
4fca4d63 | 110 | %{_libdir}/gnome-settings-daemon-3.0/gtk-modules/at-spi2-atk.desktop |
f57b3d5b | 111 | |
34a89ef1 JB |
112 | %files libs |
113 | %defattr(644,root,root,755) | |
b3f33b0d | 114 | %doc AUTHORS MAINTAINERS NEWS README |
34a89ef1 JB |
115 | %attr(755,root,root) %{_libdir}/libatk-bridge-2.0.so.*.*.* |
116 | %attr(755,root,root) %ghost %{_libdir}/libatk-bridge-2.0.so.0 | |
117 | ||
f57b3d5b ŁK |
118 | %files devel |
119 | %defattr(644,root,root,755) | |
120 | %attr(755,root,root) %{_libdir}/libatk-bridge-2.0.so | |
121 | %{_includedir}/at-spi2-atk | |
122 | %{_pkgconfigdir}/atk-bridge-2.0.pc | |
34a89ef1 JB |
123 | |
124 | %if %{with static_libs} | |
125 | %files static | |
126 | %defattr(644,root,root,755) | |
127 | %{_libdir}/libatk-bridge-2.0.a | |
128 | %endif |