File gok.spec of Package gok
#
# spec file for package gok
#
# 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: gok
Version: 2.30.1
Release: 4
License: LGPLv2.1+
Summary: GNOME On-Screen Keyboard
Url: http://www.gok.ca/
Group: System/GUI/GNOME
Source: %{name}-%{version}.tar.bz2
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch0: %{name}-desktop.patch
# PATCH-FIX-UPSTREAM gok-firefox.patch bgo#639294 vuntz@opensuse.org -- Use firefox instead of mozilla for the browser
Patch1: gok-firefox.patch
BuildRequires: at-spi-devel
BuildRequires: atk-devel
BuildRequires: dbus-1-glib-devel
BuildRequires: fdupes
BuildRequires: gconf2-devel
BuildRequires: gnome-speech-devel
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: libbonobo-devel
BuildRequires: libcanberra-devel
BuildRequires: libwnck-devel
BuildRequires: libxml2-devel
BuildRequires: scrollkeeper
BuildRequires: update-desktop-files
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
%description
The GNOME On-screen Keyboard (GOK) is a dynamic on-screen keyboard for
UNIX and UNIX-like operating systems. It features direct selection,
dwell selection, automatic scanning, and inverse scanning access
methods and includes word completion.
%package devel
License: LGPLv2.1+
Summary: GNOME On-Screen Keyboard
Group: System/GUI/GNOME
Requires: %{name} = %{version}
Requires: at-spi-devel
Requires: atk-devel
Requires: gtk2-devel
Requires: libbonobo-devel
Requires: libgnomeui-devel
Requires: libwnck-devel
Provides: gok-doc = %{version}
Obsoletes: gok-doc <= %{version}
%description devel
The GNOME On-screen Keyboard (GOK) is a dynamic on-screen keyboard for
UNIX and UNIX-like operating systems. It features direct selection,
dwell selection, automatic scanning, and inverse scanning access
methods and includes word completion.
%lang_package
%prep
%setup -q
%patch0
%patch1 -p1
%build
%configure\
--disable-schemas-install
make %{?jobs:-j%jobs}
%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
# FIXME: --disable-scrollkeeper is not implemented in gok-1.2.0
rm -r %{buildroot}%{_localstatedir}/scrollkeeper
%suse_update_desktop_file -G "Virtual Keyboard" gok
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
%fdupes %{buildroot}
%clean
rm -rf %{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
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%defattr (-, root, root)
%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}/gok
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/gok.png
%{_datadir}/pixmaps/*.png
%{_datadir}/sounds/freedesktop/stereo/*.wav
%{_libdir}/bonobo/servers/GNOME_Gok.server
%files lang -f %{name}.lang
%files devel
%defattr (-, root, root)
%{_libdir}/pkgconfig/*.pc
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/gok
%changelog