File dasher.spec.in of Package dasher
#
# spec file for package dasher
#
# Copyright (c) 2010 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: dasher
Version: 4.11
Release: 1
License: GPLv2+
Summary: Zooming Predictive Text Entry System
Url: http://www.inference.phy.cam.ac.uk/dasher/
Group: System/GUI/GNOME
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/4.5/%{name}-%{version}.tar.bz2
Source1: dasher-data-lang.sh
Source2: locale-map.txt
BuildRequires: at-spi-devel
BuildRequires: cairo-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gnome-doc-utils-devel
BuildRequires: gnome-speech-devel
BuildRequires: intltool
BuildRequires: libexpat-devel
BuildRequires: libgnomeui-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
Recommends: %{name}-data-recommended
Recommends: %{name}-lang
Suggests: %{name}-data-extras
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
%description
Dasher is a zooming predictive text entry system, designed for
situations where keyboard input is impractical (for instance:
accessibility or PDAs). It is usable with greatly limited amounts of
physical input while still allowing high rates of text entry.
%package data-recommended
License: GPLv2+
Summary: Zooming Predictive Text Entry System -- Data files for common languages
Group: System/GUI/GNOME
Requires: %{name} = %{version}
Provides: locale(%{name}:RECOMMENDED_LOCALES)
BuildArch: noarch
%description data-recommended
Dasher is a zooming predictive text entry system, designed for
situations where keyboard input is impractical (for instance:
accessibility or PDAs). It is usable with greatly limited amounts of
physical input while still allowing high rates of text entry.
This package contains data files to use dasher with common languages.
%package data-extras
License: GPLv2+
Summary: Zooming Predictive Text Entry System -- Data files for additional languages
Group: System/GUI/GNOME
Requires: %{name} = %{version}
Provides: locale(%{name}:EXTRAS_LOCALES)
BuildArch: noarch
%description data-extras
Dasher is a zooming predictive text entry system, designed for
situations where keyboard input is impractical (for instance:
accessibility or PDAs). It is usable with greatly limited amounts of
physical input while still allowing high rates of text entry.
This package contains data files to use dasher with additional languages.
%lang_package
%prep
%setup -q
translation-update-upstream
cp %{SOURCE2} .
%build
%configure --with-pic \
--with-gnome \
--disable-scrollkeeper
make %{?_smp_mflags}
%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
%suse_update_desktop_file -G "Text Entry Tool" %name GNOME
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
sh %{SOURCE1} "%{buildroot}" "%{_datadir}" %{name}-data-recommended.lst %{name}-data-extras.lst %{name}-excluded.lst
%fdupes %{buildroot}
%pre -f %{name}.schemas_pre
%post
%desktop_database_post
%icon_theme_cache_post
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files -f %{name}.schemas_list -f %{name}-excluded.lst
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog MAINTAINERS NEWS README
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}/
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/dasher
%{_datadir}/icons/hicolor/48x48/apps/dasher.png
%{_datadir}/icons/hicolor/scalable/apps/dasher.svg
%doc %{_mandir}/man?/*.*
%files data-recommended -f %{name}-data-recommended.lst
%files data-extras -f %{name}-data-extras.lst
%files lang -f %name.lang
%changelog