]>
Commit | Line | Data |
---|---|---|
57035a12 | 1 | # NOTE: for versions >= 2.46 see at-spi2-core.spec |
2023cd2d JB |
2 | # |
3 | # Conditional build: | |
4 | %bcond_without apidocs # disable gtk-doc | |
5 | %bcond_without static_libs # don't build static library | |
ecb14010 | 6 | |
314e70df | 7 | Summary: ATK - Accessibility Toolkit |
36168609 ER |
8 | Summary(pl.UTF-8): ATK - biblioteka ułatwiająca niepełnosprawnym korzystanie z komputerów |
9 | Summary(pt_BR.UTF-8): Interfaces para suporte a acessibilidade | |
314e70df | 10 | Name: atk |
f75e0d6c | 11 | Version: 2.38.0 |
57035a12 | 12 | Release: 1.1 |
adc5ecf7 | 13 | Epoch: 1 |
f68bcfa8 | 14 | License: LGPL v2+ |
2c0f206f | 15 | Group: X11/Libraries |
f75e0d6c JB |
16 | Source0: https://download.gnome.org/sources/atk/2.38/%{name}-%{version}.tar.xz |
17 | # Source0-md5: 4dcea15cbf166706c166fc4fee05e3f8 | |
3d63263d | 18 | URL: https://developer.gnome.org/atk/ |
63b29394 | 19 | BuildRequires: docbook-dtd412-xml |
03c1fb22 | 20 | BuildRequires: gettext-tools >= 0.19.2 |
26cacc68 | 21 | BuildRequires: glib2-devel >= 1:2.38.0 |
8c52ea81 | 22 | %if %(locale -a | grep -q '^C\.utf8$'; echo $?) |
da12a7cc JB |
23 | BuildRequires: glibc-localedb-all |
24 | %endif | |
c4751c13 | 25 | BuildRequires: gobject-introspection-devel >= 1.32.0 |
a2fc2193 | 26 | %if %{with apidocs} |
c4751c13 | 27 | BuildRequires: gtk-doc >= 1.25 |
a2fc2193 | 28 | %endif |
8c52ea81 | 29 | BuildRequires: meson >= 0.46.0 |
26cacc68 | 30 | BuildRequires: ninja >= 1.5 |
975626ac | 31 | BuildRequires: pkgconfig |
f75e0d6c | 32 | BuildRequires: rpm-build >= 4.6 |
f9cfba09 | 33 | BuildRequires: rpmbuild(macros) >= 1.736 |
70eb579f ŁK |
34 | BuildRequires: tar >= 1:1.22 |
35 | BuildRequires: xz | |
26cacc68 | 36 | Requires: glib2 >= 1:2.38.0 |
f75e0d6c | 37 | Obsoletes: libatk1.0_0 < 1:2 |
0ad5858b | 38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
314e70df | 39 | |
314e70df | 40 | %description |
48edf961 | 41 | The ATK library provides a set of interfaces for adding accessibility |
42 | support to applications and graphical user interface toolkits. By | |
43 | supporting the ATK interfaces, an application or toolkit can be used | |
44 | as tools such as screen readers and magnifiers, and alternative input | |
45 | devices. | |
94314051 | 46 | |
75887df6 JR |
47 | %description -l pl.UTF-8 |
48 | Biblioteka ATK udostępnia zestaw interfejsów ułatwiających | |
49 | niepełnosprawnym korzystanie z aplikacji i poszczególnych elementów | |
50 | graficznego interfejsu użytkownika. Poprzez wykorzystanie interfejsów | |
51 | ATK, aplikacja lub element interfejsu może być używany z takimi | |
52 | narzędziami jak czytniki ekranu i narzędzia powiększające oraz | |
53 | alternatywnymi urządzeniami wejściowymi. | |
54 | ||
55 | %description -l pt_BR.UTF-8 | |
56 | A biblioteca ATK provê um conjunto de interfaces para adicionar | |
57 | suporte a acessibilidade para aplicações e interfaces gráficas. | |
58 | Suportando a interface ATK, uma aplicação ou interface gráfica pode | |
48edf961 | 59 | ser utilizada como ferramentas de leitura e aumento de tela, |
60 | dispositivos de entrada alternativos, etc. | |
314e70df | 61 | |
62 | %package devel | |
15da6a79 | 63 | Summary: ATK - header files |
36168609 ER |
64 | Summary(pl.UTF-8): ATK - pliki nagłówkowe |
65 | Summary(pt_BR.UTF-8): Interfaces para suporte a acessibilidade | |
2c0f206f | 66 | Group: X11/Development/Libraries |
adc5ecf7 | 67 | Requires: %{name} = %{epoch}:%{version}-%{release} |
26cacc68 | 68 | Requires: glib2-devel >= 1:2.38.0 |
f75e0d6c | 69 | Obsoletes: libatk1.0_0-devel < 1:2 |
7744996b | 70 | |
314e70df | 71 | %description devel |
15da6a79 | 72 | ATK - header files. |
314e70df | 73 | |
75887df6 JR |
74 | %description devel -l pl.UTF-8 |
75 | ATK - pliki nagłówkowe. | |
94314051 | 76 | |
75887df6 | 77 | %description devel -l pt_BR.UTF-8 |
48edf961 | 78 | Interfaces para suporte a acessibilidade. |
79 | ||
314e70df | 80 | %package static |
10850004 | 81 | Summary: ATK static library |
36168609 ER |
82 | Summary(pl.UTF-8): Biblioteka statyczna ATK |
83 | Summary(pt_BR.UTF-8): Interfaces para suporte a acessibilidade | |
2c0f206f | 84 | Group: X11/Development/Libraries |
adc5ecf7 | 85 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
7744996b | 86 | |
314e70df | 87 | %description static |
10850004 | 88 | ATK static library. |
7744996b | 89 | |
75887df6 | 90 | %description static -l pl.UTF-8 |
94314051 | 91 | Biblioteka statyczna ATK. |
314e70df | 92 | |
75887df6 | 93 | %description static -l pt_BR.UTF-8 |
48edf961 | 94 | Interfaces para suporte a acessibilidade. |
95 | ||
00ed319a | 96 | %package apidocs |
97 | Summary: ATK API documentation | |
36168609 | 98 | Summary(pl.UTF-8): Dokumentacja API ATK |
00ed319a | 99 | Group: Documentation |
100 | Requires: gtk-doc-common | |
ecb14010 | 101 | BuildArch: noarch |
00ed319a | 102 | |
103 | %description apidocs | |
104 | ATK API documentation. | |
105 | ||
75887df6 | 106 | %description apidocs -l pl.UTF-8 |
00ed319a | 107 | Dokumentacja API ATK. |
108 | ||
314e70df | 109 | %prep |
0316715c | 110 | %setup -q |
314e70df | 111 | |
314e70df | 112 | %build |
8c52ea81 JB |
113 | %meson build \ |
114 | -Ddocs=%{__true_false apidocs} | |
115 | ||
f9cfba09 | 116 | %ninja_build -C build |
314e70df | 117 | |
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
314e70df | 120 | |
f9cfba09 | 121 | %ninja_install -C build |
01af7ce9 | 122 | |
11dbc856 ER |
123 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/atk} |
124 | ||
ecb14010 | 125 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} |
02c1a01d JB |
126 | |
127 | %find_lang atk10 | |
128 | ||
314e70df | 129 | %clean |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
8e131f75 | 132 | %post -p /sbin/ldconfig |
133 | %postun -p /sbin/ldconfig | |
94314051 | 134 | |
ab0b4c04 | 135 | %files -f atk10.lang |
314e70df | 136 | %defattr(644,root,root,755) |
8c52ea81 | 137 | %doc AUTHORS MAINTAINERS NEWS README |
27cb9681 | 138 | %attr(755,root,root) %{_libdir}/libatk-1.0.so.*.*.* |
11dbc856 | 139 | %attr(755,root,root) %ghost %{_libdir}/libatk-1.0.so.0 |
75193da9 | 140 | %{_libdir}/girepository-1.0/Atk-1.0.typelib |
314e70df | 141 | |
142 | %files devel | |
143 | %defattr(644,root,root,755) | |
27cb9681 | 144 | %attr(755,root,root) %{_libdir}/libatk-1.0.so |
27cb9681 JB |
145 | %{_includedir}/atk-1.0 |
146 | %{_pkgconfigdir}/atk.pc | |
889aa899 | 147 | %{_datadir}/gir-1.0/Atk-1.0.gir |
314e70df | 148 | |
ef42d581 | 149 | %if %{with static_libs} |
314e70df | 150 | %files static |
151 | %defattr(644,root,root,755) | |
27cb9681 | 152 | %{_libdir}/libatk-1.0.a |
ef42d581 | 153 | %endif |
00ed319a | 154 | |
155 | %if %{with apidocs} | |
156 | %files apidocs | |
157 | %defattr(644,root,root,755) | |
158 | %{_gtkdocdir}/atk | |
159 | %endif |