File klavaro.spec of Package klavaro

# spec file for package klavaro
# 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

Name:           klavaro
Version:        1.9.3
Release:        1
License:        GPLv3+
Summary:        Typing tutor
Group:          Amusements/Teaching/Other
Source0:        %{name}-%{version}.tar.bz2
Source1:        klavaro.desktop
Requires:       espeak
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
BuildRequires:  bison
BuildRequires:  espeak-devel
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gettext
BuildRequires:  intltool
BuildRequires:  libcurl-devel
BuildRequires:  libgtkdatabox-devel
BuildRequires:  libpng-devel
BuildRequires:  pkgconfig(gtk+-2.0) >= 2.16
BuildRequires:  pkgconfig(libxml-2.0)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Klavaro  is a touch typing tutor that is very
flexible and supports customizable keyboard
layouts. Users can edit and save new or unknown
keyboard layouts, as the basic course provided by
the program was designed to not depend on specific

%setup -q

# otherwise it doesn't work
%{expand: %%define optflags -O2}
make %{?_smp_mflags}


mkdir -p %{buildroot}%{_datadir}/applications/
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop

%fdupes -s %{buildroot}

%if 0%{?suse_version}
%suse_update_desktop_file %{name}

%find_lang %{name}

rm -rf %{buildroot}

%if 0%{?suse_version} > 1130

%if 0%{?suse_version} > 1130

%files -f %{name}.lang
%defattr(0755, root, root, 0755)
%defattr(-, root, root, 0755)

openSUSE Build Service is sponsored by