File kcm_tablet.spec of Package kcm_tablet4

#
# spec file for package kcm_tablet
#
# Copyright (c) 2010 Raymond Wooninck <tittiatcoke@gmail.com>
#
# 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:           kcm_tablet
Version:        2.1.0
Release:        0
Summary:        KDE Config Module for Wacom Tablets
License:        GPL-2.0+
Group:          System/GUI/KDE
Url:            https://projects.kde.org/projects/extragear/base/wacomtablet
%define rname wacomtablet
Source:         114856-%rname-%{version}.tar.xz
BuildRequires:  libkde4-devel
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(xorg-wacom)
Requires:       xf86-input-wacom >= 0.10.11
Recommends:     %{name}-lang = %{version}
Recommends:     xrandr >= 1.2
Supplements:    packageand(kdebase4-workspace:xf86-input-wacom)

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%kde4_runtime_requires

%description
This module implements a GUI for the Wacom Linux Drivers and extends it
with profile support to handle different button / pen layouts per profile.

For hardware support have a look at http://www.linuxwacom.sourceforge.net

All tablets can be set up as long as they are found via xorg.conf or HAL configuration.

%lang_package
%prep
%setup -n %rname-%{version} -q

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  %kde4_makeinstall -C build
  %kde_post_install
  %find_lang %rname %rname.lang
  %find_lang plasma_applet_tabletsettings %rname.lang

  %suse_update_desktop_file kde_wacom_tabletfinder Qt KDE Utility System Configuration

%post
%desktop_database_post

%postun
%desktop_database_postun

%files lang -f %rname.lang
%defattr(-,root,root)
%dir %{_kde4_htmldir}/en/kcontrol

%files
%defattr(-,root,root)
%doc AUTHORS COPYING README
%{_kde4_applicationsdir}/kde_wacom_tabletfinder.desktop
%{_kde4_appsdir}/wacomtablet
%{_kde4_bindir}/kde_wacom_tabletfinder
%{_kde4_datadir}/dbus-1/interfaces/org.kde.Wacom*xml
%{_kde4_modulesdir}/kcm_wacomtablet.so
%{_kde4_modulesdir}/kded_wacomtablet.so
%{_kde4_modulesdir}/plasma_applet_wacomtabletsettings.so
%{_kde4_servicesdir}/kcm_wacomtablet.desktop
%{_kde4_servicesdir}/kded/wacomtablet.desktop
%{_kde4_servicesdir}/plasma-applet-wacomtabletsettings.desktop

%changelog
openSUSE Build Service is sponsored by