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:        3.2.1
Release:        1
License:        LGPLv2.1+
Summary:        Screen reader for GNOME
Url:            http://www.gnome.org/
Group:          System/GUI/GNOME
Source:         http://download.gnome.org/sources/orca/3.2/%{name}-%{version}.tar.bz2
BuildRequires:  dbus-1-python
BuildRequires:  fdupes
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  intltool
BuildRequires:  liblouis-devel
BuildRequires:  python
BuildRequires:  python-brlapi
BuildRequires:  python-louis
BuildRequires:  python-speechd
BuildRequires:  python-xdg
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(atspi-2) >= 2.1.92
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.1.91
BuildRequires:  pkgconfig(pygobject-3.0) >= 2.90.3
Requires:       dbus-1-python
# 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-gstreamer-0_10
Requires:       python-gobject
Requires:       python-louis
Requires:       python-xdg
Recommends:     %{name}-lang
Recommends:     python-speechd
Recommends:     typelib(Wnck)
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
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
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%{_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.gz
%{python_sitearch}/orca

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by