]>
Commit | Line | Data |
---|---|---|
2023cd2d JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
4 | %bcond_without static_libs # don't build static library | |
ecb14010 | 5 | |
314e70df | 6 | Summary: ATK - Accessibility Toolkit |
36168609 ER |
7 | Summary(pl.UTF-8): ATK - biblioteka ułatwiająca niepełnosprawnym korzystanie z komputerów |
8 | Summary(pt_BR.UTF-8): Interfaces para suporte a acessibilidade | |
314e70df | 9 | Name: atk |
b4517024 | 10 | Version: 2.12.0 |
ecb14010 | 11 | Release: 2 |
adc5ecf7 | 12 | Epoch: 1 |
f68bcfa8 | 13 | License: LGPL v2+ |
2c0f206f | 14 | Group: X11/Libraries |
b4517024 MB |
15 | Source0: http://ftp.gnome.org/pub/GNOME/sources/atk/2.12/%{name}-%{version}.tar.xz |
16 | # Source0-md5: 930238dec55fdbf8eda9975b44f07b76 | |
3d63263d | 17 | URL: https://developer.gnome.org/atk/ |
01af7ce9 MB |
18 | BuildRequires: autoconf >= 2.63 |
19 | BuildRequires: automake >= 1:1.10 | |
63b29394 | 20 | BuildRequires: docbook-dtd412-xml |
ab0b4c04 | 21 | BuildRequires: gettext-devel |
7b0da334 | 22 | BuildRequires: glib2-devel >= 1:2.32.0 |
01af7ce9 | 23 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
a2fc2193 ŁK |
24 | %if %{with apidocs} |
25 | BuildRequires: gtk-doc >= 1.13 | |
01af7ce9 | 26 | BuildRequires: gtk-doc-automake >= 1.13 |
a2fc2193 | 27 | %endif |
01af7ce9 | 28 | BuildRequires: libtool >= 2:2.2 |
957a2a07 | 29 | BuildRequires: perl-base |
975626ac | 30 | BuildRequires: pkgconfig |
8bd26b76 | 31 | BuildRequires: rpmbuild(macros) >= 1.197 |
70eb579f ŁK |
32 | BuildRequires: tar >= 1:1.22 |
33 | BuildRequires: xz | |
7b0da334 | 34 | Requires: glib2 >= 1:2.32.0 |
74225e33 | 35 | Obsoletes: libatk1.0_0 |
2488716f | 36 | # sr@Latn vs. sr@latin |
37 | Conflicts: glibc-misc < 6:2.7 | |
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} |
7b0da334 | 68 | Requires: glib2-devel >= 1:2.32.0 |
74225e33 | 69 | Obsoletes: libatk1.0_0-devel |
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 ER |
101 | %if "%{_rpmversion}" >= "5" |
102 | BuildArch: noarch | |
103 | %endif | |
00ed319a | 104 | |
105 | %description apidocs | |
106 | ATK API documentation. | |
107 | ||
75887df6 | 108 | %description apidocs -l pl.UTF-8 |
00ed319a | 109 | Dokumentacja API ATK. |
110 | ||
314e70df | 111 | %prep |
0316715c | 112 | %setup -q |
314e70df | 113 | |
314e70df | 114 | %build |
c8a20703 | 115 | %{?with_apidocs:%{__gtkdocize}} |
29ba22b0 | 116 | %{__libtoolize} |
75193da9 | 117 | %{__aclocal} -I m4 |
29ba22b0 JB |
118 | %{__autoconf} |
119 | %{__autoheader} | |
120 | %{__automake} | |
65904f3a | 121 | %configure \ |
01af7ce9 MB |
122 | --disable-silent-rules \ |
123 | %{__enable_disable apidocs gtk-doc} \ | |
11dbc856 | 124 | --with-html-dir=%{_gtkdocdir} \ |
01af7ce9 | 125 | %{__enable_disable static_libs static} \ |
ef42d581 | 126 | --enable-shared |
127 | ||
7744996b | 128 | %{__make} |
314e70df | 129 | |
130 | %install | |
131 | rm -rf $RPM_BUILD_ROOT | |
314e70df | 132 | |
10850004 | 133 | %{__make} install \ |
7b09545d | 134 | DESTDIR=$RPM_BUILD_ROOT |
10850004 | 135 | |
01af7ce9 MB |
136 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libatk-1.0.la |
137 | ||
11dbc856 ER |
138 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/atk} |
139 | ||
ecb14010 | 140 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} |
02c1a01d JB |
141 | |
142 | %find_lang atk10 | |
143 | ||
314e70df | 144 | %clean |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
8e131f75 | 147 | %post -p /sbin/ldconfig |
148 | %postun -p /sbin/ldconfig | |
94314051 | 149 | |
ab0b4c04 | 150 | %files -f atk10.lang |
314e70df | 151 | %defattr(644,root,root,755) |
3aca543c | 152 | %doc AUTHORS NEWS README |
27cb9681 | 153 | %attr(755,root,root) %{_libdir}/libatk-1.0.so.*.*.* |
11dbc856 | 154 | %attr(755,root,root) %ghost %{_libdir}/libatk-1.0.so.0 |
75193da9 | 155 | %{_libdir}/girepository-1.0/Atk-1.0.typelib |
314e70df | 156 | |
157 | %files devel | |
158 | %defattr(644,root,root,755) | |
3aca543c | 159 | %doc ChangeLog |
27cb9681 | 160 | %attr(755,root,root) %{_libdir}/libatk-1.0.so |
27cb9681 JB |
161 | %{_includedir}/atk-1.0 |
162 | %{_pkgconfigdir}/atk.pc | |
889aa899 | 163 | %{_datadir}/gir-1.0/Atk-1.0.gir |
314e70df | 164 | |
ef42d581 | 165 | %if %{with static_libs} |
314e70df | 166 | %files static |
167 | %defattr(644,root,root,755) | |
27cb9681 | 168 | %{_libdir}/libatk-1.0.a |
ef42d581 | 169 | %endif |
00ed319a | 170 | |
171 | %if %{with apidocs} | |
172 | %files apidocs | |
173 | %defattr(644,root,root,755) | |
174 | %{_gtkdocdir}/atk | |
175 | %endif |