File kcm_tablet.spec of Package kcm_tablet

# spec file for package kcm_tablet
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2010 Raymond Wooninck <>
# 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 rname wacomtablet
Name:           kcm_tablet
Version:        3.2.0
Release:        0
Summary:        KDE Config Module for Wacom Tablets
License:        GPL-2.0-or-later
Group:          System/GUI/KDE
Patch0:         0001-Fix-build-with-Qt-5.15.patch
Patch1:         Check-for-index-validity-when-switching-tablet-type.patch
BuildRequires:  extra-cmake-modules
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5DBusAddons)
BuildRequires:  cmake(KF5DocTools)
BuildRequires:  cmake(KF5GlobalAccel)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5Notifications)
BuildRequires:  cmake(KF5Plasma)
BuildRequires:  cmake(KF5WidgetsAddons)
BuildRequires:  cmake(KF5WindowSystem)
BuildRequires:  cmake(KF5XmlGui)
BuildRequires:  cmake(Qt5Core) >= 5.7.0
BuildRequires:  cmake(Qt5DBus)
BuildRequires:  cmake(Qt5Gui)
BuildRequires:  cmake(Qt5Qml)
BuildRequires:  cmake(Qt5Widgets)
BuildRequires:  cmake(Qt5X11Extras)
BuildRequires:  pkgconfig(libwacom)
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(xi)
BuildRequires:  pkgconfig(xorg-wacom)
BuildRequires:  pkgconfig(xrandr)
Requires:       xf86-input-wacom >= 0.20
Recommends:     %{name}-lang = %{version}
Recommends:     xrandr >= 1.2
Supplements:    (plasma5-workspace and xf86-input-wacom)

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

All tablets can be set up as long as they are found with the wacom kernel module.


%autosetup -p1 -n %{rname}-%{version}

  %cmake_kf5 -d build

  %kf5_makeinstall -C build
  %find_lang %{rname} %{name}.lang
  %find_lang plasma_applet_org.kde.plasma.%{rname} %{name}.lang

  %suse_update_desktop_file kde_wacom_tabletfinder HardwareSettings

%files lang -f %{name}.lang

%license COPYING
%doc %lang(en) %{_kf5_htmldir}/en/kcontrol
%dir %{_kf5_plugindir}/plasma/dataengine
%if %{pkg_vcmp plasma-framework-devel < 5.84} || %{pkg_vcmp plasma-framework-devel > 5.89}

openSUSE Build Service is sponsored by