File at-spi2-atk.spec of Package at-spi2-atk
#
# spec file for package at-spi2-atk
#
# Copyright (c) 2012 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: 2.4.0
Release: 0
Summary: Assistive Technology Service Provider Interface - GTK+ module
License: GPL-2.0+
Group: System/Libraries
Url: http://www.gnome.org/
Source0: http://download.gnome.org/sources/at-spi2-atk/2.4/%{name}-%{version}.tar.xz
Source99: %{name}-rpmlintrc
# PATCH-FIX-UPSTREAM at-spi2-atk-bnc770177 bgo#678348 bnc#770017 dimstar@opensuse.org -- Use XDG_RUNTIME_DIR to hold sockets, and do not make a world-writable dir. Patch taken from upstream git, commit e4f3ee.
Patch0: at-spi2-atk-bnc770177
BuildRequires: atk-devel >= 2.1.5
BuildRequires: fdupes
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: translation-update-upstream
BuildRequires: pkgconfig(atspi-2) >= 2.1.4
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
AT-SPI is a general interface for applications to make use of the
accessibility toolkit. This version is based on dbus.
%package common
Summary: Assistive Technology Service Provider Interface -- Common Files for GTK+ Modules
Group: System/Libraries
# 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
Provides: %{name} = %{version}
Obsoletes: %{name} < %{version}
# The library that was shipped with at-spi2-atk was removed.
Obsoletes: libcspi-devel <= 0.1.1
Obsoletes: libcspi0 <= 0.1.1
%description common
AT-SPI is a general interface for applications to make use of the
accessibility toolkit. This version is based on dbus.
This package contains files common to the GTK+ 2 and GTK+ 3 modules
for at-spi.
%package gtk2
Summary: Assistive Technology Service Provider Interface - GTK+ 2 Module
Group: System/Libraries
Requires: %{name}-common = %{version}
# 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)
%description gtk2
AT-SPI is a general interface for applications to make use of the
accessibility toolkit. This version is based on dbus.
This package contains the GTK+ 2 module for at-spi, based on ATK.
%package gtk3
Summary: Assistive Technology Service Provider Interface - GTK+ 3 Module
Group: System/Libraries
Requires: %{name}-common = %{version}
# We want to have this package installed if the user has gtk3 and the at-spi
# stack already installed
Supplements: packageand(at-spi2-core:gtk3)
%glib2_gsettings_schema_requires
%description gtk3
AT-SPI is a general interface for applications to make use of the
accessibility toolkit. This version is based on dbus.
This package contains the GTK+ 3 module for at-spi, based on ATK.
%lang_package
%prep
%setup -q
%patch0 -p1
translation-update-upstream
%if 0%{?BUILD_FROM_VCS}
[ -x ./autogen.sh ] && NOCONFIGURE=1 ./autogen.sh
%endif
%build
%configure
make %{?_smp_mflags}
%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name}
%post gtk3
%glib2_gsettings_schema_post
%postun gtk3
%glib2_gsettings_schema_postun
%files common
%defattr(-,root,root)
%dir %{_libdir}/gnome-settings-daemon-3.0
%dir %{_libdir}/gnome-settings-daemon-3.0/gtk-modules
%{_libdir}/gnome-settings-daemon-3.0/gtk-modules/at-spi2-atk.desktop
%files gtk2
%defattr(-,root,root)
%doc AUTHORS COPYING README
%{_libdir}/gtk-2.0/modules/libatk-bridge.so
%files gtk3
%defattr(-,root,root)
%doc AUTHORS COPYING README
%dir %{_libdir}/gtk-3.0
%dir %{_libdir}/gtk-3.0/modules
%{_libdir}/gtk-3.0/modules/libatk-bridge.so
# The schema only contains information relevant to the gtk3 module
%{_datadir}/glib-2.0/schemas/org.a11y.atspi.gschema.xml
%files lang -f %{name}.lang
%changelog