File crystal-dock.spec of Package crystal-dock

#
# spec file for package crystal-dock
#
# Copyright (c) 2024 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/
#


%define kf6_version 6.2
%define qt6_version 6.6
%define plasma_version 6.0
Name:           crystal-dock
Version:        2.14
Release:        0
Summary:        A cool dock (desktop panel) for KDE Plasma 6
License:        GPL-3.0-only
URL:            https://github.com/dangvd/crystal-dock
Source:         %{name}-%{version}.tar
BuildRequires:  c++_compiler
BuildRequires:  cmake >= 3.20
BuildRequires:  extra-cmake-modules >= %{kf6_version}
BuildRequires:  fdupes
BuildRequires:  pkgconfig
BuildRequires:  qt6-gui-private-devel >= %{qt6_version}
BuildRequires:  cmake(LayerShellQt) >= %{plasma_version}
BuildRequires:  cmake(Qt6Core) >= %{qt6_version}
BuildRequires:  cmake(Qt6DBus) >= %{qt6_version}
BuildRequires:  cmake(Qt6Gui) >= %{qt6_version}
BuildRequires:  cmake(Qt6Test) >= %{qt6_version}
BuildRequires:  cmake(Qt6Widgets) >= %{qt6_version}
BuildRequires:  pkgconfig(wayland-client) >= 1.22
Requires:       qt6-tools-qdbus

%description
Crystal Dock is a cool dock (desktop panel) for Linux desktop,
with the focus on attractive user interface, simplicity
and cross-desktop support.
Currently supports Hyprland, KDE Plasma 6, Labwc, LXQt, Niri
and Wayfire on Wayland.

%prep
%autosetup -p1

%build
%define __sourcedir ./src
%cmake
%cmake_build

%install
%define __sourcedir ./src
%cmake_install

%fdupes -s %{buildroot}

%files
%license LICENSE
%doc README.md
%{_bindir}/crystal-dock
%{_datadir}/applications/%{name}.desktop

%changelog
openSUSE Build Service is sponsored by