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