File at-spi2-atk.spec of Package at-spi2-atk

# spec file for package at-spi2-atk
# Copyright (c) 2011 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


Name:           at-spi2-atk
Version:        0.4.1
Release:        3
Summary:        Assistive Technology Service Provider Interface - GTK+ module
License:        GPLv2+
Group:          System/Libraries
Source0:        %{name}-%{version}.tar.bz2
Source99:       %{name}-rpmlintrc
# PATCH-FIX-OPENSUSE at-spi2-atk-gtk-64-fix.patch bnc611766 -- at-spi2 should set GTK_PATH64 rather than GTK_PATH
Patch0:         at-spi2-atk-gtk-64-fix.patch
BuildRequires:  atk-devel
BuildRequires:  dbus-1-glib-devel
BuildRequires:  fdupes
BuildRequires:  gconf2-devel
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
# 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
# The library that was shipped with at-spi2-atk was removed.
Obsoletes:      libcspi0 <= 0.1.1
Obsoletes:      libcspi-devel <= 0.1.1
# Old versions of at-spi 1.x provided the same files
Conflicts:      at-spi < 1.29.3
# 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

AT-SPI 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.

%setup -q
%ifarch x86_64
%patch0 -p1

# We pass --enable-relocate when we want another at-spi stack (like at-spi) by default.
%configure \
%__make %{?jobs:-j%jobs}

%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name}
%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/xdg/autostart
%{__mv} %{buildroot}%{_datadir}/gnome/autostart/atk-bridge.desktop %{buildroot}%{_sysconfdir}/xdg/autostart/
%suse_update_desktop_file atk-bridge

rm -rf %{buildroot}

%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun

%posttrans -f %{name}.schemas_posttrans

%files -f %{name}.schemas_list
%dir %{_libdir}/gtk-3.0/
%dir %{_libdir}/gtk-3.0/modules/

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by