File eekboard.spec of Package eekboard

# spec file for package eekboard
# Copyright (c) 2013 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

%define build_xtest (0%{suse_version} > 1210)

Name:           eekboard
Version:        1.0.8
Release:        0
Summary:        An easy to use virtual keyboard toolkit
License:        GPL-3.0+
Group:          System/GUI/Other
Source0:        %{name}-%{version}.tar.gz
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gmodule-2.0)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(gthread-2.0)
%if 0%{?suse_version} >= 1220
BuildRequires:  pkgconfig(vapigen) >= 0.16.0
BuildRequires:  libvala-0_14-devel
BuildRequires:  vala
BuildRequires:  at-spi2-core-devel
BuildRequires:  cairo-devel
BuildRequires:  gtk3-devel
BuildRequires:  libcanberra-devel
BuildRequires:  libcroco-devel
BuildRequires:  libxklavier-devel
BuildRequires:  pango-devel
%if %{build_xtest}
BuildRequires:  libXtst-devel
BuildRequires:  gcc-c++
BuildRequires:  intltool
BuildRequires:  python
BuildRequires:  python-devel
BuildRequires:  update-desktop-files


eekboard is a virtual keyboard software package, including a set of
tools to implement desktop virtual keyboards.

%package -n typelib-1_0-Eek-0_90
Summary:        Eekboard libraries -- Introspection bindings
Group:          System/Libraries
Requires:       %{name} = %{version}

%description -n typelib-1_0-Eek-0_90
This package contains the libraries for eekboard

%package devel
Summary:        Development Files for libskk
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}

%description devel
The eekboard-devel package contains the header files.

%setup -q

# ./
%configure --enable-introspection \
           --enable-vala \
           --enable-atspi \
%if %{build_xtest}
           --enable-xtest \
           --disable-schemas-compile \

make %{?_smp_mflags}

rm -rf %{buildroot}%{_libdir}/*.la

%suse_update_desktop_file -i %{name} System Utility DesktopUtility settings
%suse_update_desktop_file -i %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}-autostart.desktop
%find_lang %{name}



%files -f %{name}.lang
%config %{_sysconfdir}/xdg/autostart/eekboard-autostart.desktop

%files -n typelib-1_0-Eek-0_90

%files devel
%dir %{_datadir}/vala/
%dir %{_datadir}/vala/vapi

openSUSE Build Service is sponsored by