File hello.spec of Package hello

#
# spec file for package hello
#
# 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/
#


Name:           hello
Version:        @SERVICE@
Release:        0
Summary:        Complete KDE theme
License:        GPL-3.0-or-later
Group:          System/GUI/KDE
URL:            https://github.com/tim-hilt/hello
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  cmake(KDecoration2) <= 5.27.12
BuildRequires:  cmake(KF5ConfigWidgets)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5GuiAddons)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5Package)
BuildRequires:  cmake(KF5WindowSystem)
BuildRequires:  extra-cmake-modules
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(xcb)

%description
hello is a kwin window decoration, which aims to mimic macOS' appearance,
but with power ups.

%package -n %{name}5-decoration
Summary:        Plasma Desktop artwork, styles and assets
Group:          System/GUI/KDE

%description -n %{name}5-decoration
Artwork, styles and assets for the Hello visual style for the Plasma Desktop.
This package provides Hello KWin decoration.

%prep
%autosetup

%build
%cmake_kf5 -d build
%cmake_build

%install
%kf5_makeinstall -C build
rm -rfv %{buildroot}%{_libdir}/cmake

%ldconfig_scriptlets -n %{name}5-decoration

%files -n %{name}5-decoration
%doc README.md
%{_kf5_servicesdir}/%{name}decorationconfig.desktop
%dir %{_kf5_plugindir}/org.kde.kdecoration2
%{_kf5_plugindir}/org.kde.kdecoration2/%{name}decoration.so
%{_libdir}/lib%{name}common5.so.*
#{_libdir}/cmake/%%{name}/*.cmake
#license LICENSE

%changelog
openSUSE Build Service is sponsored by