File at-spi2-atk.spec of Package at-spi2-atk
#
# spec file for package at-spi2-atk (Version 0.1.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: at-spi2-atk
Version: 0.1.1
Release: 1
Summary: Assistive Technology Service Provider Interface - GTK+ module
License: GPL v2 or later
Group: System/Libraries
Url: http://www.gnome.org/
Source0: %{name}-%{version}.tar.bz2
BuildRequires: at-spi2-core-devel
BuildRequires: atk-devel
BuildRequires: dbus-1-glib-devel
BuildRequires: fdupes
BuildRequires: gtk-devel
BuildRequires: libxml2-devel
# The GTK+ module is useful only if the at-spi registry is running. But it's
# not a strict runtime dependency.
Recommends: at-spi2-core
# We want to have this package installed if the user has gtk2 and the at-spi
# stack already installed
Supplements: packageand(at-spi2-core:gtk2)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%endif
%description
This library is a general interface for applications to make use of the
accessibility toolkit. This version is based on dbus.
This package contains a GTK+ module for at-spi, based on ATK.
%package -n libcspi0
License: GPL v2 or later
Summary: Assistive Technology Service Provider Interface - C bindings
Group: System/Libraries
Requires: %{name} = %{version}
# The 1.x version of at-spi also provides such a library.
Conflicts: at-spi
%description -n libcspi0
This library is a general interface for applications to make use of the
accessibility toolkit. This version is based on dbus.
This package contains the C bindings for at-spi.
%package -n libcspi-devel
License: GPL v2 or later
Summary: Assistive Technology Service Provider Interface - C bindings - Development Files
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
# The 1.x version of at-spi also provides such a library.
Conflicts: at-spi
%description -n libcspi-devel
This library is a general interface for applications to make use of the
accessibility toolkit. This version is based on dbus.
This package contains the C bindings for at-spi.
%package -n python-atspi
License: GPL v2 or later
Summary: Assistive Technology Service Provider Interface - Python bindings
Group: Development/Libraries/Python
Requires: %{name} = %{version}
# The 1.x version of at-spi also provides such a library.
Conflicts: at-spi
%py_requires
%description -n python-atspi
This library is a general interface for applications to make use of the
accessibility toolkit. This version is based on dbus.
This package contains the python bindings for at-spi.
%prep
%setup -q
%build
%configure
%__make %{?jobs:-j%jobs}
%install
%makeinstall
# Install missing pkg-config file
install -d %{buildroot}%{_libdir}/pkgconfig
cp pkgconfig/cspi-1.0.pc %{buildroot}%{_libdir}/pkgconfig
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes %{buildroot}%{python_sitelib}
%clean
rm -rf %{buildroot}
%post -n libcspi0 -p /sbin/ldconfig
%postun -n libcspi0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS COPYING README
%{_libdir}/gtk-2.0/modules/libspiatk.so
%files -n libcspi0
%defattr(-,root,root)
%{_libdir}/libcspi.so.*
%files -n libcspi-devel
%defattr(-,root,root)
%{_includedir}/at-spi-1.0/
%{_libdir}/libcspi.so
%{_libdir}/pkgconfig/cspi-1.0.pc
%files -n python-atspi
%defattr(-,root,root)
%{python_sitelib}/pyatspi/
%changelog