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