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