File kvkbd.spec of Package kvkbd

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

# norootforbuild


Name:           kvkbd
BuildRequires:  libkde4-devel libxslt-devel
BuildRequires:  update-desktop-files
License:        GPLv2+
Url:            http://kde-apps.org/content/show.php/Kvkbd+-+KDE4?content=94374
Group:          System/GUI/KDE
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        A virtual keyboard for KDE
Version:        0.6
Release:        14
Source:         94374-kvkbd-0.6.tar.gz
Patch1:         fix-loginhelper.diff
Patch2:         kvkbd-link-x11.patch
%kde4_runtime_requires

%description
Kvkbd is a virtual keyboard for KDE, it contains many features like system tray and dock support, autodetection and on the fly change of the keyboard layout, scripting with DBus, etc.
 
%prep
%setup -n %{name}-%{version} -q
%patch1
%patch2

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %kde4_makeinstall
  %suse_update_desktop_file kvkbd
  %kde_post_install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_kde4_bindir}/kvkbd
%{_kde4_applicationsdir}/kvkbd.desktop
%{_kde4_appsdir}/kvkbd
%lang(en) %{_kde4_docdir}/HTML/en/kvkbd

%changelog
openSUSE Build Service is sponsored by