]>
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 | |
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 |
5dc7a9b0 MB |
10 | Version: 1.22.0 |
11 | Release: 1 | |
adc5ecf7 | 12 | Epoch: 1 |
f68bcfa8 | 13 | License: LGPL v2+ |
2c0f206f | 14 | Group: X11/Libraries |
5dc7a9b0 MB |
15 | Source0: http://ftp.gnome.org/pub/GNOME/sources/atk/1.22/%{name}-%{version}.tar.bz2 |
16 | # Source0-md5: 06a2b39a22d5ca35c47435da6b9643ac | |
94314051 | 17 | URL: http://developer.gnome.org/projects/gap/ |
e44f91cc | 18 | BuildRequires: autoconf >= 2.54 |
3aca543c | 19 | BuildRequires: automake |
ab0b4c04 | 20 | BuildRequires: gettext-devel |
5dc7a9b0 | 21 | BuildRequires: glib2-devel >= 1:2.15.6 |
df23c961 MB |
22 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.8} |
23 | BuildRequires: gtk-doc-automake >= 1.8 | |
0ab8154b | 24 | BuildRequires: libtool >= 2:1.5.16 |
957a2a07 | 25 | BuildRequires: perl-base |
975626ac | 26 | BuildRequires: pkgconfig |
8bd26b76 | 27 | BuildRequires: rpmbuild(macros) >= 1.197 |
5dc7a9b0 | 28 | Requires: glib2 >= 1:2.15.6 |
74225e33 | 29 | Obsoletes: libatk1.0_0 |
0ad5858b | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
314e70df | 31 | |
314e70df | 32 | %description |
48edf961 | 33 | The ATK library provides a set of interfaces for adding accessibility |
34 | support to applications and graphical user interface toolkits. By | |
35 | supporting the ATK interfaces, an application or toolkit can be used | |
36 | as tools such as screen readers and magnifiers, and alternative input | |
37 | devices. | |
94314051 | 38 | |
75887df6 JR |
39 | %description -l pl.UTF-8 |
40 | Biblioteka ATK udostępnia zestaw interfejsów ułatwiających | |
41 | niepełnosprawnym korzystanie z aplikacji i poszczególnych elementów | |
42 | graficznego interfejsu użytkownika. Poprzez wykorzystanie interfejsów | |
43 | ATK, aplikacja lub element interfejsu może być używany z takimi | |
44 | narzędziami jak czytniki ekranu i narzędzia powiększające oraz | |
45 | alternatywnymi urządzeniami wejściowymi. | |
46 | ||
47 | %description -l pt_BR.UTF-8 | |
48 | A biblioteca ATK provê um conjunto de interfaces para adicionar | |
49 | suporte a acessibilidade para aplicações e interfaces gráficas. | |
50 | Suportando a interface ATK, uma aplicação ou interface gráfica pode | |
48edf961 | 51 | ser utilizada como ferramentas de leitura e aumento de tela, |
52 | dispositivos de entrada alternativos, etc. | |
314e70df | 53 | |
54 | %package devel | |
15da6a79 | 55 | Summary: ATK - header files |
36168609 ER |
56 | Summary(pl.UTF-8): ATK - pliki nagłówkowe |
57 | Summary(pt_BR.UTF-8): Interfaces para suporte a acessibilidade | |
2c0f206f | 58 | Group: X11/Development/Libraries |
adc5ecf7 | 59 | Requires: %{name} = %{epoch}:%{version}-%{release} |
5dc7a9b0 | 60 | Requires: glib2-devel >= 1:2.15.6 |
74225e33 | 61 | Obsoletes: libatk1.0_0-devel |
7744996b | 62 | |
314e70df | 63 | %description devel |
15da6a79 | 64 | ATK - header files. |
314e70df | 65 | |
75887df6 JR |
66 | %description devel -l pl.UTF-8 |
67 | ATK - pliki nagłówkowe. | |
94314051 | 68 | |
75887df6 | 69 | %description devel -l pt_BR.UTF-8 |
48edf961 | 70 | Interfaces para suporte a acessibilidade. |
71 | ||
314e70df | 72 | %package static |
10850004 | 73 | Summary: ATK static library |
36168609 ER |
74 | Summary(pl.UTF-8): Biblioteka statyczna ATK |
75 | Summary(pt_BR.UTF-8): Interfaces para suporte a acessibilidade | |
2c0f206f | 76 | Group: X11/Development/Libraries |
adc5ecf7 | 77 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
7744996b | 78 | |
314e70df | 79 | %description static |
10850004 | 80 | ATK static library. |
7744996b | 81 | |
75887df6 | 82 | %description static -l pl.UTF-8 |
94314051 | 83 | Biblioteka statyczna ATK. |
314e70df | 84 | |
75887df6 | 85 | %description static -l pt_BR.UTF-8 |
48edf961 | 86 | Interfaces para suporte a acessibilidade. |
87 | ||
00ed319a | 88 | %package apidocs |
89 | Summary: ATK API documentation | |
36168609 | 90 | Summary(pl.UTF-8): Dokumentacja API ATK |
00ed319a | 91 | Group: Documentation |
92 | Requires: gtk-doc-common | |
93 | ||
94 | %description apidocs | |
95 | ATK API documentation. | |
96 | ||
75887df6 | 97 | %description apidocs -l pl.UTF-8 |
00ed319a | 98 | Dokumentacja API ATK. |
99 | ||
314e70df | 100 | %prep |
0316715c | 101 | %setup -q |
314e70df | 102 | |
314e70df | 103 | %build |
c8a20703 | 104 | %{?with_apidocs:%{__gtkdocize}} |
29ba22b0 JB |
105 | %{__libtoolize} |
106 | %{__aclocal} | |
107 | %{__autoconf} | |
108 | %{__autoheader} | |
109 | %{__automake} | |
65904f3a | 110 | %configure \ |
ef42d581 | 111 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
11dbc856 | 112 | --with-html-dir=%{_gtkdocdir} \ |
ef42d581 | 113 | --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \ |
114 | --enable-shared | |
115 | ||
7744996b | 116 | %{__make} |
314e70df | 117 | |
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
314e70df | 120 | |
10850004 | 121 | %{__make} install \ |
7b09545d | 122 | DESTDIR=$RPM_BUILD_ROOT |
10850004 | 123 | |
ab0b4c04 JB |
124 | %find_lang atk10 |
125 | ||
11dbc856 ER |
126 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/atk} |
127 | ||
314e70df | 128 | %clean |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | ||
8e131f75 | 131 | %post -p /sbin/ldconfig |
132 | %postun -p /sbin/ldconfig | |
94314051 | 133 | |
ab0b4c04 | 134 | %files -f atk10.lang |
314e70df | 135 | %defattr(644,root,root,755) |
3aca543c | 136 | %doc AUTHORS NEWS README |
27cb9681 | 137 | %attr(755,root,root) %{_libdir}/libatk-1.0.so.*.*.* |
11dbc856 | 138 | %attr(755,root,root) %ghost %{_libdir}/libatk-1.0.so.0 |
314e70df | 139 | |
140 | %files devel | |
141 | %defattr(644,root,root,755) | |
3aca543c | 142 | %doc ChangeLog |
27cb9681 JB |
143 | %attr(755,root,root) %{_libdir}/libatk-1.0.so |
144 | %{_libdir}/libatk-1.0.la | |
145 | %{_includedir}/atk-1.0 | |
146 | %{_pkgconfigdir}/atk.pc | |
314e70df | 147 | |
ef42d581 | 148 | %if %{with static_libs} |
314e70df | 149 | %files static |
150 | %defattr(644,root,root,755) | |
27cb9681 | 151 | %{_libdir}/libatk-1.0.a |
ef42d581 | 152 | %endif |
00ed319a | 153 | |
154 | %if %{with apidocs} | |
155 | %files apidocs | |
156 | %defattr(644,root,root,755) | |
157 | %{_gtkdocdir}/atk | |
158 | %endif |