File orca.spec of Package orca

#
# spec file for package orca
#
# 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:           orca
Version:        3.6.3
Release:        0
Summary:        Screen reader for GNOME
License:        LGPL-2.1+
Group:          System/GUI/GNOME
Url:            http://www.gnome.org/
Source:         http://download.gnome.org/sources/orca/3.6/%{name}-%{version}.tar.xz
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  liblouis-devel
BuildRequires:  python
BuildRequires:  python-brlapi
BuildRequires:  python-cairo
BuildRequires:  python-louis
BuildRequires:  python-speechd
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(atk) >= 2.5.91
BuildRequires:  pkgconfig(atk-bridge-2.0) >= 2.5.91
BuildRequires:  pkgconfig(atspi-2) >= 2.5.91
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.5.16
BuildRequires:  pkgconfig(pygobject-3.0) >= 3.2.2
# the gsettings tool is used to know if a11y is enabled
Requires:       glib2-tools
# pyatspi is a virtual name that is provided by the default at-spi stack
Requires:       pyatspi
Requires:       python-brlapi
Requires:       python-cairo
Requires:       python-gobject
Requires:       python-gstreamer-0_10
Requires:       python-louis
Recommends:     %{name}-lang
Recommends:     python-speechd
Recommends:     typelib(Wnck)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%py_requires

%description
Orca is a free, open source, flexible, and extensible screen reader
that provides access to the graphical desktop via user-customizable
combinations of speech, braille, and/or magnification.

%lang_package
%prep
%setup -q
translation-update-upstream

%build
%configure
make %{?_smp_mflags}

%install
%makeinstall
%suse_update_desktop_file orca
%suse_update_desktop_file orca-autostart
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%doc %{_datadir}/help/C/%{name}/
%{_bindir}/orca
%{_sysconfdir}/xdg/autostart/orca-autostart.desktop
%{_datadir}/applications/orca.desktop
%{_datadir}/icons/hicolor/*/apps/orca.png
%{_datadir}/icons/hicolor/scalable/apps/*.svg
%{_datadir}/orca/
%{_mandir}/man1/orca.1%{?ext_man}
%{python_sitearch}/orca/

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by