File accerciser.spec of Package accerciser
#
# spec file for package accerciser
#
# Copyright (c) 2013 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: accerciser
Version: 3.8.2
Release: 0
Summary: Accessibility debugging tool
License: BSD-3-Clause
Group: Development/Tools/Other
Url: http://live.gnome.org/Accerciser
Source0: http://download.gnome.org/sources/accerciser/3.8/%{name}-%{version}.tar.xz
BuildRequires: fdupes
# pyatspi is a virtual name that is provided by the default at-spi stack
BuildRequires: gobject-introspection
BuildRequires: intltool
BuildRequires: pyatspi
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: yelp-tools
BuildRequires: pkgconfig(atspi-2) >= 2.5.2
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: python3-gobject
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires
%glib2_gsettings_schema_requires
%description
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.
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure
make %{?_smp_mflags}
%install
%make_install
%suse_update_desktop_file -r -N "Accerciser" -G "Accesibility Debugger" accerciser Utility GNOME Accessibility
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}
%post
%glib2_gsettings_schema_post
%desktop_database_post
%icon_theme_cache_post
%icon_theme_cache_post HighContrast
%postun
%glib2_gsettings_schema_postun
%desktop_database_postun
%icon_theme_cache_postun
%icon_theme_cache_post HighContrast
%files
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README
%doc %{_datadir}/help/C/%{name}/
%{_bindir}/%{name}
%{python3_sitelib}/%{name}/
%{_datadir}/%{name}/
%{_datadir}/glib-2.0/schemas/org.a11y.Accerciser.gschema.xml
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/icons/HighContrast/
%{_mandir}/man1/%{name}.1.gz
%{_datadir}/applications/%{name}.desktop
%files lang -f %{name}.lang
%changelog