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