File orca.spec of Package orca

#
# spec file for package orca
#
# 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 http://bugs.opensuse.org/
#



Name:           orca
Version:        2.32.1
Release:        5.<RELEASE2>
License:        LGPLv2.1+
Summary:        Screen reader for GNOME
Url:            http://www.gnome.org/
Group:          System/GUI/GNOME
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM orca-2.32.1-console-setup.patch bgo#642212 mgorse@novell.com -- Fix setting of autostart and keyboard prompt in console setup; accepted upstream already
Patch0:         orca-2.32.1-console-setup.patch
BuildRequires:  at-spi-devel
BuildRequires:  dbus-1-python-devel
BuildRequires:  fdupes
BuildRequires:  glib2-devel
BuildRequires:  gnome-common
BuildRequires:  gnome-mag-devel
BuildRequires:  gnome-python-desktop
BuildRequires:  gnome-speech-devel
BuildRequires:  intltool
BuildRequires:  liblouis-devel
# pyatspi is a virtual name that is provided by the default at-spi stack
BuildRequires:  pyatspi
BuildRequires:  python
BuildRequires:  python-brlapi
BuildRequires:  python-gnome-devel
BuildRequires:  python-gtk-devel
BuildRequires:  python-louis
BuildRequires:  python-xdg
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
Requires:       dbus-1-python
# pyatspi is a virtual name that is provided by the default at-spi stack
Requires:       pyatspi
Requires:       python-brlapi
Requires:       python-gnome
Requires:       python-gstreamer-0_10
Requires:       python-gtk
Requires:       python-louis
Requires:       python-xdg
Recommends:     %{name}-lang
Recommends:     gnome-mag
Recommends:     gnome-python-desktop
Recommends:     gnome-speech
Suggests:       python-speechd
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if %suse_version <= 1110
%define python_sitearch %{py_sitedir}
%endif
%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
%patch0
translation-update-upstream

%build
%configure
make %{?_smp_mflags}

%install
%makeinstall
%suse_update_desktop_file orca
%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
%{_bindir}/orca
%{_datadir}/applications/orca.desktop
%{_datadir}/icons/hicolor/*/apps/orca.png
%{_datadir}/icons/hicolor/scalable/apps/*.svg
%{_datadir}/orca
%{_mandir}/man1/orca.1.gz
%{python_sitearch}/orca

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by