]> git.pld-linux.org Git - packages/atk.git/blob - atk.spec
a8f097bdb6a67631296c12cab1d4343bf72f9bae
[packages/atk.git] / atk.spec
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:        1.18.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/1.18/%{name}-%{version}.tar.bz2
16 # Source0-md5:  9fc33ec48fd32933f7f630479dfad667
17 URL:            http://developer.gnome.org/projects/gap/
18 BuildRequires:  autoconf >= 2.54
19 BuildRequires:  automake
20 BuildRequires:  gettext-devel
21 BuildRequires:  glib2-devel >= 1:2.12.11
22 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.8}
23 BuildRequires:  gtk-doc-automake >= 1.8
24 BuildRequires:  libtool >= 2:1.5.16
25 BuildRequires:  perl-base
26 BuildRequires:  pkgconfig
27 BuildRequires:  rpmbuild(macros) >= 1.197
28 Requires:       glib2 >= 1:2.12.11
29 Obsoletes:      libatk1.0_0
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 The ATK library provides a set of interfaces for adding accessibility
34 support to applications and graphical user interface toolkits. By
35 supporting the ATK interfaces, an application or toolkit can be used
36 as tools such as screen readers and magnifiers, and alternative input
37 devices.
38
39 %description -l pl.UTF-8
40 Biblioteka ATK udostępnia zestaw interfejsów ułatwiających
41 niepełnosprawnym korzystanie z aplikacji i poszczególnych elementów
42 graficznego interfejsu użytkownika. Poprzez wykorzystanie interfejsów
43 ATK, aplikacja lub element interfejsu może być używany z takimi
44 narzędziami jak czytniki ekranu i narzędzia powiększające oraz
45 alternatywnymi urządzeniami wejściowymi.
46
47 %description -l pt_BR.UTF-8
48 A biblioteca ATK provê um conjunto de interfaces para adicionar
49 suporte a acessibilidade para aplicações e interfaces gráficas.
50 Suportando a interface ATK, uma aplicação ou interface gráfica pode
51 ser utilizada como ferramentas de leitura e aumento de tela,
52 dispositivos de entrada alternativos, etc.
53
54 %package devel
55 Summary:        ATK - header files
56 Summary(pl.UTF-8):      ATK - pliki nagłówkowe
57 Summary(pt_BR.UTF-8):   Interfaces para suporte a acessibilidade
58 Group:          X11/Development/Libraries
59 Requires:       %{name} = %{epoch}:%{version}-%{release}
60 Requires:       glib2-devel >= 1:2.12.11
61 Obsoletes:      libatk1.0_0-devel
62
63 %description devel
64 ATK - header files.
65
66 %description devel -l pl.UTF-8
67 ATK - pliki nagłówkowe.
68
69 %description devel -l pt_BR.UTF-8
70 Interfaces para suporte a acessibilidade.
71
72 %package static
73 Summary:        ATK static library
74 Summary(pl.UTF-8):      Biblioteka statyczna ATK
75 Summary(pt_BR.UTF-8):   Interfaces para suporte a acessibilidade
76 Group:          X11/Development/Libraries
77 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
78
79 %description static
80 ATK static library.
81
82 %description static -l pl.UTF-8
83 Biblioteka statyczna ATK.
84
85 %description static -l pt_BR.UTF-8
86 Interfaces para suporte a acessibilidade.
87
88 %package apidocs
89 Summary:        ATK API documentation
90 Summary(pl.UTF-8):      Dokumentacja API ATK
91 Group:          Documentation
92 Requires:       gtk-doc-common
93
94 %description apidocs
95 ATK API documentation.
96
97 %description apidocs -l pl.UTF-8
98 Dokumentacja API ATK.
99
100 %prep
101 %setup -q
102
103 %build
104 %{?with_apidocs:%{__gtkdocize}}
105 %{__libtoolize}
106 %{__aclocal}
107 %{__autoconf}
108 %{__autoheader}
109 %{__automake}
110 %configure \
111         --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
112         %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \
113         --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \
114         --enable-shared
115
116 %{__make}
117
118 %install
119 rm -rf $RPM_BUILD_ROOT
120
121 %{__make} install \
122         DESTDIR=$RPM_BUILD_ROOT
123
124 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/be\@latin
125
126 %find_lang atk10
127
128 %clean
129 rm -rf $RPM_BUILD_ROOT
130
131 %post   -p /sbin/ldconfig
132 %postun -p /sbin/ldconfig
133
134 %files -f atk10.lang
135 %defattr(644,root,root,755)
136 %doc AUTHORS NEWS README
137 %attr(755,root,root) %{_libdir}/lib*.so.*.*
138
139 %files devel
140 %defattr(644,root,root,755)
141 %doc ChangeLog
142 %attr(755,root,root) %{_libdir}/lib*.so
143 %{_libdir}/lib*.la
144 %{_includedir}/atk*
145 %{_pkgconfigdir}/atk*
146
147 %if %{with static_libs}
148 %files static
149 %defattr(644,root,root,755)
150 %{_libdir}/lib*.a
151 %endif
152
153 %if %{with apidocs}
154 %files apidocs
155 %defattr(644,root,root,755)
156 %{_gtkdocdir}/atk
157 %endif
This page took 0.048415 seconds and 2 git commands to generate.