5 |
|
|
6 |
%define api_version 1.0 |
%define api_version 1.0 |
7 |
%define lib_major 0 |
%define lib_major 0 |
8 |
%define pkgname atk |
%define pkgname atk |
9 |
|
|
10 |
# Version of glib needed |
# Version of glib needed |
11 |
%define req_glib2_version 2.6.0 |
%define req_glib2_version 2.6.0 |
12 |
%define gobject_introspection_version 0.9.6 |
%define gobject_introspection_version 0.9.6 |
13 |
|
|
14 |
%define lib_name %mklibname %{pkgname} %{api_version} %{lib_major} |
%define lib_name %mklibname %{pkgname} %{api_version} %{lib_major} |
15 |
%define gir_name %mklibname %{pkgname}-gir %{api_version} |
%define gir_name %mklibname %{pkgname}-gir %{api_version} |
16 |
%define develname %mklibname -d %{pkgname} %{api_version} |
%define develname %mklibname -d %{pkgname} %{api_version} |
17 |
|
|
18 |
Name: %{pkgname}%{api_version} |
Name: %{pkgname}%{api_version} |
19 |
Version: 2.1.0 |
Version: 2.1.5 |
20 |
Release: %mkrel 1 |
Release: %mkrel 1 |
21 |
Summary: Accessibility features for Gtk+ |
Summary: Accessibility features for Gtk+ |
22 |
License: LGPLv2+ |
License: LGPLv2+ |
23 |
Group: Accessibility |
Group: Accessibility |
24 |
Url: http://developer.gnome.org/projects/gap/ |
Url: http://developer.gnome.org/projects/gap/ |
25 |
Source0: http://ftp.gnome.org/pub/GNOME/sources/%pkgname/%pkgname-%version.tar.xz |
Source0: http://ftp.gnome.org/pub/GNOME/sources/%pkgname/%pkgname-%version.tar.xz |
26 |
BuildRequires: pkgconfig(glib-2.0) >= %{req_glib2_version} |
BuildRequires: pkgconfig(glib-2.0) >= %{req_glib2_version} |
27 |
%if %enable_gtkdoc |
|
28 |
|
%if %{enable_gtkdoc} |
29 |
BuildRequires: gtk-doc |
BuildRequires: gtk-doc |
30 |
%endif |
%endif |
31 |
BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version} |
|
32 |
|
BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version} |
33 |
# Bootstrap requirements |
# Bootstrap requirements |
34 |
BuildRequires: gnome-common gtk-doc |
BuildRequires: gnome-common |
35 |
|
BuildRequires: gtk-doc |
36 |
|
|
37 |
%description |
%description |
38 |
Accessibility means providing system infrastructure that allows add-on |
Accessibility means providing system infrastructure that allows add-on |
46 |
from GTK+ and GNOME widgets. |
from GTK+ and GNOME widgets. |
47 |
|
|
48 |
%package common |
%package common |
49 |
Summary: Data files used by atk |
Summary: Data files used by atk |
50 |
Group: System/Libraries |
Group: System/Libraries |
51 |
|
|
52 |
%description common |
%description common |
53 |
ATK, the Accessibility Tookit, is used to obtain accessibily information |
ATK, the Accessibility Tookit, is used to obtain accessibily information |
56 |
This package contains data used by atk library. |
This package contains data used by atk library. |
57 |
|
|
58 |
%package -n %{lib_name} |
%package -n %{lib_name} |
59 |
Summary: Accessibility features for Gtk+ |
Summary: Accessibility features for Gtk+ |
60 |
Group: System/Libraries |
Group: System/Libraries |
61 |
Requires: common-licenses |
Requires: common-licenses |
62 |
Obsoletes: %{pkgname} lib%{pkgname} |
Obsoletes: %{pkgname} |
63 |
|
Obsoletes: lib%{pkgname} |
64 |
Provides: %{pkgname} = %{version}-%{release} |
Provides: %{pkgname} = %{version}-%{release} |
65 |
Provides: lib%{pkgname} = %{version}-%{release} |
Provides: lib%{pkgname} = %{version}-%{release} |
66 |
Provides: lib%{name} = %{version}-%{release} |
Provides: lib%{name} = %{version}-%{release} |
83 |
GObject introspection interface library for %{pkgname}. |
GObject introspection interface library for %{pkgname}. |
84 |
|
|
85 |
%package -n %{develname} |
%package -n %{develname} |
86 |
Summary: Stuff for developing with atk |
Summary: Stuff for developing with atk |
87 |
Group: Development/C |
Group: Development/C |
88 |
Obsoletes: %{pkgname}-devel lib%{pkgname}-devel |
Obsoletes: %{pkgname}-devel lib%{pkgname}-devel |
89 |
Provides: %{pkgname}-devel = %{version}-%{release} |
Provides: %{pkgname}-devel = %{version}-%{release} |
90 |
Provides: lib%{pkgname}-devel = %{version}-%{release} |
Provides: lib%{pkgname}-devel = %{version}-%{release} |
91 |
Provides: lib%{name}-devel = %{version}-%{release} |
Provides: lib%{name}-devel = %{version}-%{release} |
92 |
Requires: %{lib_name} = %{version} |
Requires: %{lib_name} = %{version} |
|
Requires: libglib2.0-devel >= %{req_glib2_version} |
|
93 |
|
|
94 |
%description -n %develname |
%description -n %develname |
95 |
ATK, the Accessibility Tookit, is used to obtain accessibily information |
ATK, the Accessibility Tookit, is used to obtain accessibily information |
100 |
|
|
101 |
%build |
%build |
102 |
%configure2_5x \ |
%configure2_5x \ |
103 |
%if %enable_gtkdoc |
%if %{enable_gtkdoc} |
104 |
--enable-gtk-doc |
--enable-gtk-doc |
105 |
%endif |
%endif |
106 |
|
|
107 |
%make |
%make |
108 |
|
|
109 |
%install |
%install |
110 |
rm -rf $RPM_BUILD_ROOT |
rm -rf %{buildroot} |
111 |
%makeinstall_std |
%makeinstall_std |
112 |
|
|
113 |
#rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
#rm -f %{buildroot}%{_libdir}/*.la |
114 |
|
|
115 |
%{find_lang} %{pkgname}10 |
%{find_lang} %{pkgname}10 |
116 |
|
|
135 |
%{_libdir}/*.la |
%{_libdir}/*.la |
136 |
%{_libdir}/pkgconfig/* |
%{_libdir}/pkgconfig/* |
137 |
%{_datadir}/gir-1.0/Atk-%{api_version}.gir |
%{_datadir}/gir-1.0/Atk-%{api_version}.gir |
|
|
|