File lightly.spec of Package lightly
#
# spec file for package lightly
#
# Copyright (c) 2022 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 kf6_version 6.0.0
%define qt6_version 6.6.0
Name:           lightly
Version:        0.5.3
Release:        0
Summary:        A modern style for qt applications
License:        GPL-3.0-or-later
URL:            https://github.com/xuzhao9/Lightly
Source0:        Lightly-%{version}.tar.gz 
BuildRequires:  cmake >= 3.20
BuildRequires:  extra-cmake-modules
BuildRequires:  fdupes
BuildRequires:  frameworkintegration-devel
BuildRequires:  gcc-c++
BuildRequires:  kf6-extra-cmake-modules >= %{kf6_version}
BuildRequires:  kf6-kcmutils >= %{kf6_version}
BuildRequires:  plasma6-framework
BuildRequires:  cmake(KDecoration3)
BuildRequires:  cmake(KF6Config) >= %{kf6_version}
BuildRequires:  cmake(KF6ConfigWidgets) >= %{kf6_version}
BuildRequires:  cmake(KF6CoreAddons) >= %{kf6_version}
BuildRequires:  cmake(KF6FrameworkIntegration) >= %{kf6_version}
BuildRequires:  cmake(KF6GuiAddons) >= %{kf6_version}
BuildRequires:  cmake(KF6I18n) >= %{kf6_version}
BuildRequires:  cmake(KF6IconThemes) >= %{kf6_version}
BuildRequires:  cmake(KF6KCMUtils) >= %{kf6_version}
BuildRequires:  cmake(KF6KirigamiPlatform) >= %{kf6_version}
BuildRequires:  cmake(KF6WindowSystem) >= %{kf6_version}
BuildRequires:  cmake(Plasma)
BuildRequires:  cmake(Qt6DBus) >= %{qt6_version}
BuildRequires:  cmake(Qt6Quick) >= %{qt6_version}
BuildRequires:  cmake(Qt6Widgets) >= %{qt6_version}
Requires:       %{name}-decoration
Requires:       %{name}-style
Recommends:     %{name}-gtk
Recommends:     %{name}-addons
%description
Lightly is a fork of breeze theme style that aims to be visually modern and minimalistic.
%package        decoration
Summary:        Lightly kdecoration theme
%description    decoration
Lightly is a fork of breeze theme style that aims to be visually modern and minimalistic.
This package contains the kdecoration theme of Lightly.
%package        style
Summary:        Lightly kstyle theme and color schemes
%description    style
Lightly is a fork of breeze theme style that aims to be visually modern and minimalistic.
This package contains the kstyle theme and color schemes of Lightly.
%package -n     liblightlycommon6
Summary:        Lightly support code
%description -n liblightlycommon6
Lightly is a fork of breeze theme style that aims to be visually modern and minimalistic.
This package contains the support code of Lightly.
%package        gtk
Summary:        Lightly GTK theme
%description    gtk
Lightly is a fork of breeze theme style that aims to be visually modern and minimalistic.
This package contains the GTK code of Lightly.
%package       addons
Summary:       Lightly theme plasma and GTK addons
%description   addons
Lightly is a fork of breeze theme style that aims to be visually modern and minimalistic.
This package contains the addon theme of Lightly, including Plasma theme and tabbox.
%package       devel
Summary:       Lightly theme plasma and GTK addons
%description   devel
Lightly is a fork of breeze theme style that aims to be visually modern and minimalistic.
This package ships a CMake config file used to get information about Lightly.
%prep
%setup -n Lightly-%{version}
%build
%cmake_kf6
%kf6_build
%install
%kf6_install
%fdupes %{buildroot}
%post   -p /sbin/ldconfig -n liblightlycommon6
%postun -p /sbin/ldconfig -n liblightlycommon6
%files
%license COPYING
%doc README.md
%files style
%license COPYING
%{_kf6_applicationsdir}/lightlystyleconfig.desktop
%{_kf6_iconsdir}/hicolor/scalable/apps/lightly-settings.svgz
%{_kf6_bindir}/lightly-settings6
%dir %{_kf6_plugindir}/kstyle_config
%{_kf6_plugindir}/kstyle_config/lightlystyleconfig.so
%dir %{_kf6_plugindir}/styles
%{_kf6_plugindir}/styles/lightly.so
%dir %{_kf6_sharedir}/color-schemes
%{_kf6_sharedir}/color-schemes/Lightly.colors
%dir %{_kf6_sharedir}/kstyle
%dir %{_kf6_sharedir}/kstyle/themes
%{_kf6_sharedir}/kstyle/themes/lightly.themerc
# Package org.kde.lightly.desktop.appdata.xml on 16.0
%if 0%{?suse_version} == 1600 && 0%{?is_opensuse}
%{_datadir}/metainfo/org.kde.lightly.desktop.appdata.xml
%endif
%files decoration
%license COPYING
%{_kf6_applicationsdir}/kcm_lightlydecoration.desktop
%dir %{_kf6_plugindir}/org.kde.kdecoration3.kcm
%{_kf6_plugindir}/org.kde.kdecoration3.kcm/kcm_lightlydecoration.so
%dir %{_kf6_plugindir}/org.kde.kdecoration3
%{_kf6_plugindir}/org.kde.kdecoration3/org.kde.lightly.so
%files -n liblightlycommon6
%license COPYING
%{_libdir}/liblightlycommon6.so.*
%files gtk
%{_datadir}/themes/Lightly*
%files addons
%dir %{_kf6_plasmadir}
%{_kf6_plasmadir}/desktoptheme/Lightly*
%dir %{_kf6_sharedir}/kwin
%dir %{_kf6_sharedir}/kwin/tabbox
%{_kf6_sharedir}/kwin/tabbox/lightly
%dir %{_kf6_plasmadir}/look-and-feel
%{_kf6_plasmadir}/look-and-feel/org.kde.lightly.desktop
%files devel
%{_kf6_cmakedir}/Lightly
%changelog