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