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