# enable_gtkdoc: Toggle if gtkdoc stuff should be rebuilt # 0 = no # 1 = yes %define enable_gtkdoc 0 %define api_version 1.0 %define lib_major 0 %define pkgname atk # Version of glib needed %define req_glib2_version 2.6.0 %define gobject_introspection_version 0.9.6 %define lib_name %mklibname %{pkgname} %{api_version} %{lib_major} %define gir_name %mklibname %{pkgname}-gir %{api_version} %define develname %mklibname -d %{pkgname} %{api_version} Name: %{pkgname}%{api_version} Version: 2.1.0 Release: %mkrel 1 Summary: Accessibility features for Gtk+ License: LGPLv2+ Group: Accessibility Url: http://developer.gnome.org/projects/gap/ Source0: http://ftp.gnome.org/pub/GNOME/sources/%pkgname/%pkgname-%version.tar.xz BuildRequires: pkgconfig(glib-2.0) >= %{req_glib2_version} %if %enable_gtkdoc BuildRequires: gtk-doc %endif BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version} # Bootstrap requirements BuildRequires: gnome-common gtk-doc %description Accessibility means providing system infrastructure that allows add-on assistive software to transparently provide specalized input and ouput capabilities. For example, screen readers allow blind users to navigate through applications, determine the state of controls, and read text via text to speech conversion. On-screen keyboards replace physical keyboards, and head-mounted pointers replace mice. ATK, the Accessibility Tookit, is used to obtain accessibily information from GTK+ and GNOME widgets. %package common Summary: Data files used by atk Group: System/Libraries %description common ATK, the Accessibility Tookit, is used to obtain accessibily information from GTK+ and GNOME widgets. This package contains data used by atk library. %package -n %{lib_name} Summary: Accessibility features for Gtk+ Group: System/Libraries Requires: common-licenses Obsoletes: %{pkgname} lib%{pkgname} Provides: %{pkgname} = %{version}-%{release} Provides: lib%{pkgname} = %{version}-%{release} Provides: lib%{name} = %{version}-%{release} Requires: %{name}-common >= %{version}-%{release} %description -n %{lib_name} Accessibility means providing system infrastructure that allows add-on assistive software to transparently provide specalized input and ouput capabilities. For example, screen readers allow blind users to navigate through applications, determine the state of controls, and read text via text to speech conversion. On-screen keyboards replace physical keyboards, and head-mounted pointers replace mice. %package -n %{gir_name} Summary: GObject introspection interface library for %{pkgname} Group: System/Libraries Requires: %{lib_name} = %{version}-%{release} %description -n %{gir_name} GObject introspection interface library for %{pkgname}. %package -n %{develname} Summary: Stuff for developing with atk Group: Development/C Obsoletes: %{pkgname}-devel lib%{pkgname}-devel Provides: %{pkgname}-devel = %{version}-%{release} Provides: lib%{pkgname}-devel = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} Requires: %{lib_name} = %{version} Requires: libglib2.0-devel >= %{req_glib2_version} %description -n %develname ATK, the Accessibility Tookit, is used to obtain accessibily information from GTK+ and GNOME widgets. %prep %setup -q -n %{pkgname}-%{version} %build %configure2_5x \ %if %enable_gtkdoc --enable-gtk-doc %endif %make %install rm -rf $RPM_BUILD_ROOT %makeinstall_std #rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %{find_lang} %{pkgname}10 %files common -f %{pkgname}10.lang %defattr(-,root,root) %doc README %files -n %{lib_name} %defattr(-,root,root) %{_libdir}/libatk-%{api_version}.so.%{lib_major} %{_libdir}/libatk-%{api_version}.so.%{lib_major}.* %files -n %{gir_name} %{_libdir}/girepository-1.0/Atk-%{api_version}.typelib %files -n %{develname} %defattr(-,root,root) %doc AUTHORS ChangeLog NEWS %doc %{_datadir}/gtk-doc/html/* %{_includedir}/* %{_libdir}/*.so %{_libdir}/*.la %{_libdir}/pkgconfig/* %{_datadir}/gir-1.0/Atk-%{api_version}.gir