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/
#
%define kf6_ver 6.0.0
Name: lightly
Version: 0.6.0
Release: 0
Summary: A modern style for qt applications
License: GPL-2.0-or-later
URL: https://github.com/boehs/Lightly
Source0: Lightly-%{version}.tar.gz
Patch0: add-missing-files.patch
BuildRequires: cmake >= 3.0
BuildRequires: extra-cmake-modules >= %{kf6_ver}
BuildRequires: frameworkintegration-devel
BuildRequires: gcc-c++
BuildRequires: cmake(KDecoration2)
BuildRequires: cmake(KF6ConfigWidgets) >= %{kf6_ver}
BuildRequires: cmake(KF6CoreAddons) >= %{kf6_ver}
BuildRequires: cmake(KF6GuiAddons) >= %{kf6_ver}
BuildRequires: cmake(KF6I18n) >= %{kf6_ver}
BuildRequires: cmake(KF6IconThemes) >= %{kf6_ver}
BuildRequires: cmake(KF6WindowSystem) >= %{kf6_ver}
BuildRequires: cmake(Qt5DBus)
BuildRequires: cmake(Qt5Quick)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: cmake(Qt5X11Extras)
Requires: %{name}-decoration
Requires: %{name}-style
Requires: breeze6-cursors
Requires: breeze6-icons
%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
Requires: kconf_update6
%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.
%prep
%autosetup -n Lightly-%{version}
%build
%cmake_kf6
%cmake_build
%install
%kf6_makeinstall -C build
%post -p /sbin/ldconfig -n liblightlycommon6
%postun -p /sbin/ldconfig -n liblightlycommon6
%files
%license COPYING
%doc README.md
%files decoration
%license COPYING
%dir %{_kf6_plugindir}
%dir %{_kf6_plugindir}/org.kde.kdecoration2/
%{_kf6_plugindir}/org.kde.kdecoration2/lightlydecoration.so
%dir %{_kf6_servicesdir}
%{_kf6_servicesdir}/lightlydecorationconfig.desktop
%files style
%license COPYING
%dir %{_kf6_sharedir}/color-schemes/
%{_kf6_sharedir}/color-schemes/Lightly.colors
%{_kf6_libdir}/kconf_update_bin/
%{_kf6_sharedir}/kconf_update/
%dir %{_kf6_plugindir}
%{_kf6_plugindir}/kstyle_lightly_config.so
%dir %{_kf6_plugindir}/styles/
%{_kf6_plugindir}/styles/lightly.so
%dir %{_kf6_sharedir}/kstyle/
%dir %{_kf6_sharedir}/kstyle/themes
%{_kf6_sharedir}/kstyle/themes/lightly.themerc
%dir %{_kf6_servicesdir}
%{_kf6_servicesdir}/lightlystyleconfig.desktop
%{_kf6_cmakedir}/Lightly/
%files -n liblightlycommon6
%license COPYING
%{_libdir}/liblightlycommon6.so.*
%changelog