# SPDX-FileCopyrightText: 2026 Ruizhi Zhong # SPDX-License-Identifier: GPL-3.0-or-later Name: latte-dock-ng Version: 1.2.54 Release: 1%{?dist} Summary: Wayland-first dock for KDE Plasma 6 License: GPL-3.0-or-later URL: https://github.com/ruizhi-lab/latte-dock-ng Source0: https://github.com/ruizhi-lab/latte-dock-ng/archive/refs/tags/v%{version}.tar.gz %if 0%{?suse_version} BuildRequires: cmake, extra-cmake-modules, gcc-c++, gettext, make, pkg-config BuildRequires: qt6-base-devel, qt6-declarative-devel, qt6-wayland-devel BuildRequires: libplasma6-devel, plasma6-activities-devel BuildRequires: plasma6-activities-stats-devel, plasma6-workspace-devel BuildRequires: kwayland6-devel BuildRequires: kf6-kconfig-devel, kf6-kcoreaddons-devel, kf6-kguiaddons-devel BuildRequires: kf6-kdbusaddons-devel, kf6-kdeclarative-devel, kf6-kitemmodels-devel BuildRequires: kf6-kxmlgui-devel, kf6-kiconthemes-devel, kf6-kio-devel BuildRequires: kf6-ki18n-devel, kf6-knotifications-devel, kf6-knewstuff-devel BuildRequires: kf6-karchive-devel, kf6-kglobalaccel-devel, kf6-kcrash-devel BuildRequires: kf6-kwindowsystem-devel, kf6-kpackage-devel, kf6-ksvg-devel BuildRequires: plasma-wayland-protocols, wayland-devel, layer-shell-qt6-devel Requires: kf6-kirigami, kf6-kcmutils, kf6-knewstuff %else BuildRequires: cmake, extra-cmake-modules, gcc-c++, gettext, make, pkgconf-pkg-config BuildRequires: qt6-qtbase-devel, qt6-qtdeclarative-devel, qt6-qtwayland-devel BuildRequires: kf6-plasma-devel, plasma-activities-devel BuildRequires: plasma-activities-stats-devel, plasma-workspace-devel, kwayland-devel BuildRequires: kf6-kconfig-devel, kf6-kcoreaddons-devel, kf6-kguiaddons-devel BuildRequires: kf6-kdbusaddons-devel, kf6-kdeclarative-devel, kf6-kitemmodels-devel BuildRequires: kf6-kxmlgui-devel, kf6-kiconthemes-devel, kf6-kio-devel BuildRequires: kf6-ki18n-devel, kf6-knotifications-devel, kf6-knewstuff-devel BuildRequires: kf6-karchive-devel, kf6-kglobalaccel-devel, kf6-kcrash-devel BuildRequires: kf6-kwindowsystem-devel, kf6-kpackage-devel, kf6-ksvg-devel BuildRequires: plasma-wayland-protocols-devel, wayland-devel, layer-shell-qt-devel Requires: kf6-kirigami, kf6-kcmutils, kf6-knewstuff %endif %description Latte Dock NG is a Wayland-first dock for KDE Plasma 6.3 and newer. It provides an animated dock for tasks and widgets. %prep %autosetup -n latte-dock-ng-%{version} %build %cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_TESTING=OFF \ -DLATTE_RPM_PACKAGE_REQUIRES="kf6-kirigami, kf6-kcmutils, kf6-knewstuff" %cmake_build %post if command -v gtk-update-icon-cache >/dev/null 2>&1; then gtk-update-icon-cache -q -t /usr/share/icons/hicolor 2>/dev/null || : fi if command -v update-desktop-database >/dev/null 2>&1; then update-desktop-database -q 2>/dev/null || : fi %postun if command -v gtk-update-icon-cache >/dev/null 2>&1; then gtk-update-icon-cache -q -t /usr/share/icons/hicolor 2>/dev/null || : fi if command -v update-desktop-database >/dev/null 2>&1; then update-desktop-database -q 2>/dev/null || : fi # The CMake install manifest follows the selected distro's library/QML paths. %install # Remove DESTDIR if CMake recorded it in the manifest; RPM paths are relative # to the package root. CMake records /usr/... paths when DESTDIR is not present. %cmake_install sed -i 's#^%{buildroot}##' build/install_manifest.txt %files -f build/install_manifest.txt %changelog * Sat Oct 03 2026 Ruizhi Zhong - 1.2.54-1 - Initial COPR and OBS packaging.