| |
@@ -1,9 +1,10 @@
|
| |
%global _vpath_srcdir Kvantum
|
| |
+ %bcond_without qt6
|
| |
|
| |
Name: kvantum
|
| |
Version: 1.0.10
|
| |
Release: %autorelease
|
| |
- Summary: SVG-based theme engine for Qt5, KDE and LXQt
|
| |
+ Summary: SVG-based theme engine for Qt, KDE and LXQt
|
| |
|
| |
License: GPL-3.0-only
|
| |
URL: https://github.com/tsujan/Kvantum
|
| |
@@ -19,14 +20,24 @@
|
| |
BuildRequires: pkgconfig(Qt5Svg)
|
| |
BuildRequires: pkgconfig(Qt5X11Extras)
|
| |
BuildRequires: cmake(KF5WindowSystem)
|
| |
+ %if %{with qt6}
|
| |
+ BuildRequires: pkgconfig(Qt6Core)
|
| |
+ BuildRequires: pkgconfig(Qt6Gui)
|
| |
+ BuildRequires: pkgconfig(Qt6Svg)
|
| |
+ BuildRequires: pkgconfig(Qt6Widgets)
|
| |
+ %endif
|
| |
BuildRequires: desktop-file-utils
|
| |
BuildRequires: kde-filesystem
|
| |
Requires: %{name}-data
|
| |
Requires: hicolor-icon-theme
|
| |
|
| |
+ %if %{with qt6}
|
| |
+ Recommends: (%{name}-qt6 if qt6-qtbase-gui)
|
| |
+ %endif
|
| |
+
|
| |
%description
|
| |
- Kvantum is an SVG-based theme engine for Qt5, KDE and LXQt, with an emphasis
|
| |
- on elegance, usability and practicality.
|
| |
+ Kvantum is an SVG-based theme engine for Qt, tuned to KDE and LXQt, with an
|
| |
+ emphasis on elegance, usability and practicality.
|
| |
|
| |
Kvantum has a default dark theme, which is inspired by the default theme of
|
| |
Enlightenment. Creation of realistic themes like that for KDE was the first
|
| |
@@ -36,8 +47,20 @@
|
| |
something in between, and Kvantum will let you control almost every aspect of
|
| |
Qt widgets.
|
| |
|
| |
- Kvantum also comes with extra themes that are installed as root with Qt5
|
| |
- installation and can be selected and activated by using Kvantum Manager.
|
| |
+ Kvantum also comes with many other themes that are installed as root and can
|
| |
+ be selected and activated by using Kvantum Manager.
|
| |
+
|
| |
+ %if %{with qt6}
|
| |
+ %package qt6
|
| |
+ Summary: SVG-based theme engine for Qt6
|
| |
+ Requires: %{name}-data
|
| |
+
|
| |
+ %description qt6
|
| |
+ Kvantum is an SVG-based theme engine for Qt, tuned to KDE and LXQt, with an
|
| |
+ emphasis on elegance, usability and practicality.
|
| |
+
|
| |
+ This package contains the Qt6 integration plugin.
|
| |
+ %endif
|
| |
|
| |
%package data
|
| |
Summary: SVG-based theme engine for Qt5, KDE and LXQt
|
| |
@@ -45,8 +68,8 @@
|
| |
Requires: kvantum
|
| |
|
| |
%description data
|
| |
- Kvantum is an SVG-based theme engine for Qt5, KDE and LXQt, with an emphasis
|
| |
- on elegance, usability and practicality.
|
| |
+ Kvantum is an SVG-based theme engine for Qt, tuned to KDE and LXQt, with an
|
| |
+ emphasis on elegance, usability and practicality.
|
| |
|
| |
This package contains the data needed Kvantum.
|
| |
|
| |
@@ -54,10 +77,21 @@
|
| |
%autosetup -n Kvantum-%{version}
|
| |
|
| |
%build
|
| |
- %cmake
|
| |
+ %if %{with qt6}
|
| |
+ %global _vpath_builddir %{_target_platform}-qt6
|
| |
+ %cmake -DENABLE_QT5:BOOL=OFF
|
| |
+ %cmake_build
|
| |
+ %endif
|
| |
+ %global _vpath_builddir %{_target_platform}-qt5
|
| |
+ %cmake -DENABLE_QT5:BOOL=ON
|
| |
%cmake_build
|
| |
|
| |
%install
|
| |
+ %if %{with qt6}
|
| |
+ %global _vpath_builddir %{_target_platform}-qt6
|
| |
+ %cmake_install
|
| |
+ %endif
|
| |
+ %global _vpath_builddir %{_target_platform}-qt5
|
| |
%cmake_install
|
| |
|
| |
# desktop-file-validate doesn't recognize LXQt
|
| |
@@ -73,6 +107,12 @@
|
| |
%{_bindir}/kvantumpreview
|
| |
%{_qt5_plugindir}/styles/libkvantum.so
|
| |
|
| |
+ %if %{with qt6}
|
| |
+ %files qt6
|
| |
+ %license Kvantum/COPYING
|
| |
+ %{_qt6_plugindir}/styles/libkvantum.so
|
| |
+ %endif
|
| |
+
|
| |
%files data
|
| |
%{_datadir}/Kvantum/
|
| |
%{_datadir}/applications/kvantummanager.desktop
|
| |