File accerciser.spec of Package accerciser

# spec file for package accerciser
# 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

Name:           accerciser
Summary:        Accessibility debugging tool
License:        BSD-3-Clause
Group:          Development/Tools/Other
Version:        3.4.1
Release:        0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  fdupes
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  intltool
# pyatspi is a virtual name that is provided by the default at-spi stack
BuildRequires:  pyatspi
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(atspi-2) >= 2.1.5
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.1.13
BuildRequires:  pkgconfig(pygobject-3.0) >= 2.90.3
Requires:       IPython >= 0.11
# pyatspi is a virtual name that is provided by the default at-spi stack
Requires:       pyatspi
Requires:       python-gobject
Recommends:     %{name}-lang
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}

Accerciser is an interactive Python accessibility explorer for the
GNOME desktop. It uses AT-SPI to inspect and control widgets, allowing
you to check if an application is providing correct information to
assistive technologies and automated test frameworks. Accerciser has a
simple plugin framework which you can use to create custom views of
accessibility information.

In essence, Accerciser is a next generation at-poke tool.

%setup -q

%configure \
make %{?_smp_mflags}

%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%suse_update_desktop_file -r -N "Accerciser" -G "Accesibility Debugger" accerciser Utility GNOME Accessibility
%find_lang %{name} %{?no_lang_C}



%defattr(-, root, root)
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/

%files lang -f %{name}.lang