]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
4 | %bcond_without static_libs # don't build static library | |
5 | ||
6 | Summary: ATK - Accessibility Toolkit | |
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 | |
9 | Name: atk | |
10 | Version: 2.20.0 | |
11 | Release: 1 | |
12 | Epoch: 1 | |
13 | License: LGPL v2+ | |
14 | Group: X11/Libraries | |
15 | Source0: http://ftp.gnome.org/pub/GNOME/sources/atk/2.20/%{name}-%{version}.tar.xz | |
16 | # Source0-md5: 5187b0972f4d3905f285540b31395e20 | |
17 | URL: https://developer.gnome.org/atk/ | |
18 | BuildRequires: autoconf >= 2.63 | |
19 | BuildRequires: automake >= 1:1.10 | |
20 | BuildRequires: docbook-dtd412-xml | |
21 | BuildRequires: gettext-tools | |
22 | BuildRequires: glib2-devel >= 1:2.32.0 | |
23 | BuildRequires: gobject-introspection-devel >= 0.10.0 | |
24 | %if %{with apidocs} | |
25 | BuildRequires: gtk-doc >= 1.13 | |
26 | BuildRequires: gtk-doc-automake >= 1.13 | |
27 | %endif | |
28 | BuildRequires: libtool >= 2:2.2 | |
29 | BuildRequires: perl-base | |
30 | BuildRequires: pkgconfig | |
31 | BuildRequires: python >= 1:2.5 | |
32 | BuildRequires: rpmbuild(macros) >= 1.197 | |
33 | BuildRequires: tar >= 1:1.22 | |
34 | BuildRequires: xz | |
35 | Requires: glib2 >= 1:2.32.0 | |
36 | Obsoletes: libatk1.0_0 | |
37 | # sr@Latn vs. sr@latin | |
38 | Conflicts: glibc-misc < 6:2.7 | |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
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. | |
47 | ||
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 | |
60 | ser utilizada como ferramentas de leitura e aumento de tela, | |
61 | dispositivos de entrada alternativos, etc. | |
62 | ||
63 | %package devel | |
64 | Summary: ATK - header files | |
65 | Summary(pl.UTF-8): ATK - pliki nagłówkowe | |
66 | Summary(pt_BR.UTF-8): Interfaces para suporte a acessibilidade | |
67 | Group: X11/Development/Libraries | |
68 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
69 | Requires: glib2-devel >= 1:2.32.0 | |
70 | Obsoletes: libatk1.0_0-devel | |
71 | ||
72 | %description devel | |
73 | ATK - header files. | |
74 | ||
75 | %description devel -l pl.UTF-8 | |
76 | ATK - pliki nagłówkowe. | |
77 | ||
78 | %description devel -l pt_BR.UTF-8 | |
79 | Interfaces para suporte a acessibilidade. | |
80 | ||
81 | %package static | |
82 | Summary: ATK static library | |
83 | Summary(pl.UTF-8): Biblioteka statyczna ATK | |
84 | Summary(pt_BR.UTF-8): Interfaces para suporte a acessibilidade | |
85 | Group: X11/Development/Libraries | |
86 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
87 | ||
88 | %description static | |
89 | ATK static library. | |
90 | ||
91 | %description static -l pl.UTF-8 | |
92 | Biblioteka statyczna ATK. | |
93 | ||
94 | %description static -l pt_BR.UTF-8 | |
95 | Interfaces para suporte a acessibilidade. | |
96 | ||
97 | %package apidocs | |
98 | Summary: ATK API documentation | |
99 | Summary(pl.UTF-8): Dokumentacja API ATK | |
100 | Group: Documentation | |
101 | Requires: gtk-doc-common | |
102 | %if "%{_rpmversion}" >= "5" | |
103 | BuildArch: noarch | |
104 | %endif | |
105 | ||
106 | %description apidocs | |
107 | ATK API documentation. | |
108 | ||
109 | %description apidocs -l pl.UTF-8 | |
110 | Dokumentacja API ATK. | |
111 | ||
112 | %prep | |
113 | %setup -q | |
114 | ||
115 | %build | |
116 | %{?with_apidocs:%{__gtkdocize}} | |
117 | %{__libtoolize} | |
118 | %{__aclocal} -I m4 | |
119 | %{__autoconf} | |
120 | %{__autoheader} | |
121 | %{__automake} | |
122 | %configure \ | |
123 | --disable-silent-rules \ | |
124 | %{__enable_disable apidocs gtk-doc} \ | |
125 | --with-html-dir=%{_gtkdocdir} \ | |
126 | %{__enable_disable static_libs static} \ | |
127 | --enable-shared | |
128 | ||
129 | %{__make} | |
130 | ||
131 | %install | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
134 | %{__make} install \ | |
135 | DESTDIR=$RPM_BUILD_ROOT | |
136 | ||
137 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libatk-1.0.la | |
138 | ||
139 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/atk} | |
140 | ||
141 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} | |
142 | ||
143 | %find_lang atk10 | |
144 | ||
145 | %clean | |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | ||
148 | %post -p /sbin/ldconfig | |
149 | %postun -p /sbin/ldconfig | |
150 | ||
151 | %files -f atk10.lang | |
152 | %defattr(644,root,root,755) | |
153 | %doc AUTHORS NEWS README | |
154 | %attr(755,root,root) %{_libdir}/libatk-1.0.so.*.*.* | |
155 | %attr(755,root,root) %ghost %{_libdir}/libatk-1.0.so.0 | |
156 | %{_libdir}/girepository-1.0/Atk-1.0.typelib | |
157 | ||
158 | %files devel | |
159 | %defattr(644,root,root,755) | |
160 | %doc ChangeLog | |
161 | %attr(755,root,root) %{_libdir}/libatk-1.0.so | |
162 | %{_includedir}/atk-1.0 | |
163 | %{_pkgconfigdir}/atk.pc | |
164 | %{_datadir}/gir-1.0/Atk-1.0.gir | |
165 | ||
166 | %if %{with static_libs} | |
167 | %files static | |
168 | %defattr(644,root,root,755) | |
169 | %{_libdir}/libatk-1.0.a | |
170 | %endif | |
171 | ||
172 | %if %{with apidocs} | |
173 | %files apidocs | |
174 | %defattr(644,root,root,755) | |
175 | %{_gtkdocdir}/atk | |
176 | %endif |