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