%global __requires_exclude qt6qmlimport\\(org\\.kde\\.plasma\\.private\\.nanoshell.* %define kf6_version 6.18.0 %define qt6_version 6.9.0 %define rname plasma-nano Name: plasma6-nano Version: 6.5.5 Release: 0 # Full Plasma 6 version (e.g. 5.9.3) %{!?_plasma6_bugfix: %define _plasma6_bugfix %{version}} # Latest ABI-stable Plasma (e.g. 6.0 in KF6, but 6.0.80 in KUF) %{!?_plasma6_version: %define _plasma6_version %(echo %{_plasma6_bugfix} | awk -F. '{print $1"."$2}')} Summary: Minimal Plasma shell for embedded devices License: GPL-2.0-or-later URL: https://www.kde.org/ Source: https://download.kde.org/stable/plasma/%{version}/%{rname}-%{version}.tar.xz BuildRequires: kf6-extra-cmake-modules >= %{kf6_version} BuildRequires: cmake(KF6I18n) >= %{kf6_version} BuildRequires: cmake(KF6ItemModels) >= %{kf6_version} BuildRequires: cmake(KF6Service) >= %{kf6_version} BuildRequires: cmake(KF6WindowSystem) >= %{kf6_version} BuildRequires: cmake(KWayland) >= %{_plasma6_bugfix} BuildRequires: cmake(Plasma) >= %{_plasma6_bugfix} BuildRequires: cmake(Qt6Core) >= %{qt6_version} BuildRequires: cmake(Qt6Gui) >= %{qt6_version} BuildRequires: cmake(Qt6Qml) >= %{qt6_version} BuildRequires: cmake(Qt6Quick) >= %{qt6_version} BuildRequires: cmake(Qt6Svg) >= %{qt6_version} BuildRequires: qt6-qtbase-private-devel >= %{qt6_version} Requires: plasma6-workspace >= %{_plasma6_bugfix} # Hardcode versions of libplasma6-components, as upstream doesn't keep backwards compability there %requires_ge libplasma6-components # Part of the default applet selection # TODO remove? there's no such package # Recommends: plasma-mycroft Recommends: plasma6-nm Provides: plasma5-nano = %{version} Obsoletes: plasma5-nano < %{version} Obsoletes: plasma5-nano-lang < %{version} %description A minimal plasma shell package intended for embedded devices %lang_package %prep %autosetup -p1 -n %{rname}-%{version} %build %cmake_kf6 %kf6_build %install %kf6_install %find_lang %{name} --all-name %files %license LICENSES/* %dir %{_kf6_plasmadir}/shells %{_kf6_plasmadir}/shells/org.kde.plasma.nano/ %dir %{_kf6_qmldir}/org/kde/plasma/ %dir %{_kf6_qmldir}/org/kde/plasma/private/ %{_kf6_qmldir}/org/kde/plasma/private/nanoshell/ %files lang -f %{name}.lang %changelog