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