File lightly.spec of Package lightly

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


%global kf6_version 6.0.0
%define qt6_version 6.6.0

Name:           lightly
Version:        0.5.2
Release:        0
Summary:        A modern style for qt applications
License:        GPL-3.0-or-later
URL:            https://github.com/xuzhao9/Lightly
Source0:        https://github.com/xuzhao9/Lightly/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  kf6-extra-cmake-modules >= %{kf6_version}
BuildRequires:  pkgconfig
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(KF6WindowSystem) >= %{kf6_version}
BuildRequires:  cmake(KWayland) >= 6.0
BuildRequires:  cmake(Plasma) >= 6.0
BuildRequires:  cmake(Qt6DBus) >= %{qt6_version}
BuildRequires:  cmake(Qt6Quick) >= %{qt6_version}
BuildRequires:  cmake(Qt6Widgets) >= %{qt6_version}
BuildRequires:  pkgconfig(xcb)
Requires:       kf6-kirigami-imports >= %{kf6_version}
Requires:       kf6-ksvg-imports >= %{kf6_version}
Requires:       kwin6
Requires:       libplasma6-components
Requires:       lightly-decoration
Requires:       lightly-style
Requires:       qt6-declarative-imports >= %{qt6_version}
Recommends:     lightly-addons
Recommends:     lightly-gtk

%description
Lightly is a fork of breeze theme style that aims to be visually modern and minimalistic.

%package        decoration
Summary:        Lightly kdecoration theme
# The desktop file runs kcmshell6
Requires:       kf6-kcmutils

%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
# The desktop file runs kcmshell6
Requires:       kf6-kcmutils

%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
%autosetup -p1 -n Lightly-%{version}

%build
%cmake_kf6

%kf6_build

%install
%kf6_install

%fdupes %{buildroot}

%ldconfig_scriptlets -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

%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
%{_kf6_appstreamdir}/org.kde.lightly.desktop.appdata.xml

%files devel
%{_kf6_cmakedir}/Lightly/

%changelog
openSUSE Build Service is sponsored by