1 |
# enable_gtkdoc: Toggle if gtkdoc stuff should be rebuilt |
2 |
# 0 = no |
3 |
# 1 = yes |
4 |
%define enable_gtkdoc 0 |
5 |
|
6 |
%define api_version 1.0 |
7 |
%define lib_major 0 |
8 |
%define pkgname atk |
9 |
|
10 |
# Version of glib needed |
11 |
%define req_glib2_version 2.6.0 |
12 |
%define gobject_introspection_version 0.9.6 |
13 |
|
14 |
%define lib_name %mklibname %{pkgname} %{api_version} %{lib_major} |
15 |
%define gir_name %mklibname %{pkgname}-gir %{api_version} |
16 |
%define develname %mklibname -d %{pkgname} %{api_version} |
17 |
|
18 |
Name: %{pkgname}%{api_version} |
19 |
Version: 2.1.5 |
20 |
Release: %mkrel 1 |
21 |
Summary: Accessibility features for Gtk+ |
22 |
License: LGPLv2+ |
23 |
Group: Accessibility |
24 |
Url: http://developer.gnome.org/projects/gap/ |
25 |
Source0: http://ftp.gnome.org/pub/GNOME/sources/%pkgname/%pkgname-%version.tar.xz |
26 |
BuildRequires: pkgconfig(glib-2.0) >= %{req_glib2_version} |
27 |
|
28 |
%if %{enable_gtkdoc} |
29 |
BuildRequires: gtk-doc |
30 |
%endif |
31 |
|
32 |
BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version} |
33 |
# Bootstrap requirements |
34 |
BuildRequires: gnome-common |
35 |
BuildRequires: gtk-doc |
36 |
|
37 |
%description |
38 |
Accessibility means providing system infrastructure that allows add-on |
39 |
assistive software to transparently provide specalized input and ouput |
40 |
capabilities. For example, screen readers allow blind users to navigate |
41 |
through applications, determine the state of controls, and read text via |
42 |
text to speech conversion. On-screen keyboards replace physical |
43 |
keyboards, and head-mounted pointers replace mice. |
44 |
|
45 |
ATK, the Accessibility Tookit, is used to obtain accessibily information |
46 |
from GTK+ and GNOME widgets. |
47 |
|
48 |
%package common |
49 |
Summary: Data files used by atk |
50 |
Group: System/Libraries |
51 |
|
52 |
%description common |
53 |
ATK, the Accessibility Tookit, is used to obtain accessibily information |
54 |
from GTK+ and GNOME widgets. |
55 |
|
56 |
This package contains data used by atk library. |
57 |
|
58 |
%package -n %{lib_name} |
59 |
Summary: Accessibility features for Gtk+ |
60 |
Group: System/Libraries |
61 |
Requires: common-licenses |
62 |
Obsoletes: %{pkgname} |
63 |
Obsoletes: lib%{pkgname} |
64 |
Provides: %{pkgname} = %{version}-%{release} |
65 |
Provides: lib%{pkgname} = %{version}-%{release} |
66 |
Provides: lib%{name} = %{version}-%{release} |
67 |
Requires: %{name}-common >= %{version}-%{release} |
68 |
|
69 |
%description -n %{lib_name} |
70 |
Accessibility means providing system infrastructure that allows add-on |
71 |
assistive software to transparently provide specalized input and ouput |
72 |
capabilities. For example, screen readers allow blind users to navigate |
73 |
through applications, determine the state of controls, and read text via |
74 |
text to speech conversion. On-screen keyboards replace physical |
75 |
keyboards, and head-mounted pointers replace mice. |
76 |
|
77 |
%package -n %{gir_name} |
78 |
Summary: GObject introspection interface library for %{pkgname} |
79 |
Group: System/Libraries |
80 |
Requires: %{lib_name} = %{version}-%{release} |
81 |
|
82 |
%description -n %{gir_name} |
83 |
GObject introspection interface library for %{pkgname}. |
84 |
|
85 |
%package -n %{develname} |
86 |
Summary: Stuff for developing with atk |
87 |
Group: Development/C |
88 |
Obsoletes: %{pkgname}-devel lib%{pkgname}-devel |
89 |
Provides: %{pkgname}-devel = %{version}-%{release} |
90 |
Provides: lib%{pkgname}-devel = %{version}-%{release} |
91 |
Provides: lib%{name}-devel = %{version}-%{release} |
92 |
Requires: %{lib_name} = %{version} |
93 |
|
94 |
%description -n %develname |
95 |
ATK, the Accessibility Tookit, is used to obtain accessibily information |
96 |
from GTK+ and GNOME widgets. |
97 |
|
98 |
%prep |
99 |
%setup -q -n %{pkgname}-%{version} |
100 |
|
101 |
%build |
102 |
%configure2_5x \ |
103 |
%if %{enable_gtkdoc} |
104 |
--enable-gtk-doc |
105 |
%endif |
106 |
|
107 |
%make |
108 |
|
109 |
%install |
110 |
rm -rf %{buildroot} |
111 |
%makeinstall_std |
112 |
|
113 |
#rm -f %{buildroot}%{_libdir}/*.la |
114 |
|
115 |
%{find_lang} %{pkgname}10 |
116 |
|
117 |
%files common -f %{pkgname}10.lang |
118 |
%defattr(-,root,root) |
119 |
%doc README |
120 |
|
121 |
%files -n %{lib_name} |
122 |
%defattr(-,root,root) |
123 |
%{_libdir}/libatk-%{api_version}.so.%{lib_major} |
124 |
%{_libdir}/libatk-%{api_version}.so.%{lib_major}.* |
125 |
|
126 |
%files -n %{gir_name} |
127 |
%{_libdir}/girepository-1.0/Atk-%{api_version}.typelib |
128 |
|
129 |
%files -n %{develname} |
130 |
%defattr(-,root,root) |
131 |
%doc AUTHORS ChangeLog NEWS |
132 |
%doc %{_datadir}/gtk-doc/html/* |
133 |
%{_includedir}/* |
134 |
%{_libdir}/*.so |
135 |
%{_libdir}/*.la |
136 |
%{_libdir}/pkgconfig/* |
137 |
%{_datadir}/gir-1.0/Atk-%{api_version}.gir |