File plasma-keyboard.spec of Package plasma-keyboard

#
# spec file for package plasma-keyboard
#
# Copyright (c) 2025 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


%global __requires_exclude qt6qmlimport\\(org\\.kde\\.plasma\\.keyboard\\)
%define  _name  org.kde.plasma.keyboard
Name:           plasma-keyboard
Version:        @SERVICE@
Release:        0
Summary:        Virtual Keyboard for Qt based desktops
License:        GPL-2.0-only
Group:          System/GUI/KDE
URL:            https://invent.kde.org/plasma/plasma-keyboard
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  cmake >= 3.16
BuildRequires:  gcc-c++
BuildRequires:  kf6-extra-cmake-modules
BuildRequires:  pkgconfig
BuildRequires:  cmake(KF6Config)
BuildRequires:  cmake(KF6CoreAddons)
BuildRequires:  cmake(KF6I18n)
BuildRequires:  cmake(KF6KCMUtils)
BuildRequires:  cmake(Qt6Core)
BuildRequires:  cmake(Qt6DBus)
BuildRequires:  cmake(Qt6Gui)
BuildRequires:  cmake(Qt6GuiPrivate)
BuildRequires:  cmake(Qt6Qml)
BuildRequires:  cmake(Qt6Quick)
BuildRequires:  cmake(Qt6VirtualKeyboard)
BuildRequires:  cmake(Qt6WaylandClient)
BuildRequires:  cmake(Qt6WaylandClientPrivate)
BuildRequires:  pkgconfig(wayland-client)
BuildRequires:  pkgconfig(wayland-protocols)
BuildRequires:  pkgconfig(wayland-scanner)
Recommends:     %{name}-lang

%description
The plasma-keyboard is a virtual keyboard based on Qt Virtual Keyboard
designed to integrate in Plasma.

%lang_package

%prep
%autosetup -p1

%build
%cmake_kf6
%kf6_build

%install
%kf6_install

%find_lang %{name} --all-name

%files
%doc README.md
%{_kf6_bindir}/%{name}
%{_kf6_plugindir}/plasma/kcms/systemsettings/kcm_plasmakeyboard.so
%dir %{_kf6_qmldir}/QtQuick/VirtualKeyboard
%dir %{_kf6_qmldir}/QtQuick/VirtualKeyboard/Styles
%dir %{_kf6_qmldir}/QtQuick/VirtualKeyboard/Styles/Breeze
%{_kf6_qmldir}/QtQuick/VirtualKeyboard/Styles/Breeze/breezestyle.qmltypes
%{_kf6_qmldir}/QtQuick/VirtualKeyboard/Styles/Breeze/kde-qmlmodule.version
%{_kf6_qmldir}/QtQuick/VirtualKeyboard/Styles/Breeze/libbreezestyle.so
%{_kf6_qmldir}/QtQuick/VirtualKeyboard/Styles/Breeze/qmldir
%{_kf6_qmldir}/QtQuick/VirtualKeyboard/Styles/Breeze/style.qml
%{_kf6_applicationsdir}/kcm_plasmakeyboard.desktop
%{_kf6_applicationsdir}/%{_name}.desktop
%dir %{_kf6_qmldir}/org/kde/plasma
%dir %{_kf6_qmldir}/org/kde/plasma/keyboard
%{_kf6_qmldir}/org/kde/plasma/keyboard/lib
%dir %{_kf6_plasmadir}/keyboard
%{_kf6_plasmadir}/keyboard/layouts
%license LICENSES/*.txt
/usr/share/metainfo/org.kde.plasma.keyboard.metainfo.xml

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by