83 lines
2.6 KiB
RPMSpec
83 lines
2.6 KiB
RPMSpec
|
|
%define qt6_version 6.8.0
|
|
|
|
%define rname qqc2-desktop-style
|
|
# Full KF6 version (e.g. 6.22.0)
|
|
%{!?_kf6_version: %global _kf6_version %{version}}
|
|
|
|
Name: kf6-qqc2-desktop-style
|
|
Version: 6.22.0
|
|
Release: 0
|
|
Summary: A Qt Quick Controls 2 Style for Desktop UIs
|
|
License: GPL-2.0-or-later
|
|
URL: https://www.kde.org
|
|
Source: https://download.kde.org/stable/frameworks/6.22/%{rname}-%{version}.tar.xz
|
|
BuildRequires: kf6-extra-cmake-modules
|
|
BuildRequires: cmake(KF6ColorScheme) >= %{_kf6_version}
|
|
BuildRequires: cmake(KF6Config) >= %{_kf6_version}
|
|
BuildRequires: cmake(KF6IconThemes) >= %{_kf6_version}
|
|
BuildRequires: cmake(KF6KirigamiPlatform) >= %{_kf6_version}
|
|
BuildRequires: cmake(Qt6Core) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6DBus) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6Gui) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6LinguistTools) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6Quick) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6QuickControls2) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6Widgets) >= %{qt6_version}
|
|
BuildRequires: qt6-qttools
|
|
BuildRequires: qt6-doctools
|
|
BuildRequires: qt6-linguist
|
|
Requires: kf6-sonnet-imports >= %{_kf6_version}
|
|
# Qt QML runtime imports are provided by qt6-qtdeclarative itself
|
|
Requires: qt6-qtdeclarative >= %{qt6_version}
|
|
# plasma6-workspace sets up the env variables so that this theme
|
|
# is picked by default. It still works fine without it (no requires),
|
|
# but looks better with it. By itself plasma6-workspace does not use
|
|
# it (yet), so only install it with qt6-qtdeclarative-imports.
|
|
Supplements: (plasma6-workspace and qt6-qtdeclarative)
|
|
Obsoletes: qqc2-desktop-style-lang < %{version}
|
|
|
|
%description
|
|
A Qt Quick Controls 2 style engine that uses the desktop style
|
|
to draw controls with QStyle.
|
|
|
|
%package devel
|
|
Summary: Development Files for Qt Quick Controls 2 Desktop Style
|
|
Requires: kf6-qqc2-desktop-style >= %{version}
|
|
|
|
%description devel
|
|
This file contains cmake files to be used by projects that depend on
|
|
qqc2-desktop-style.
|
|
Usually not needed as it is only a runtime dependency.
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{rname}-%{version}
|
|
|
|
%build
|
|
%cmake_kf6
|
|
|
|
%kf6_build
|
|
|
|
%install
|
|
%kf6_install
|
|
|
|
%find_lang %{name} --all-name --with-qt
|
|
|
|
%files
|
|
%license LICENSES/*
|
|
%doc README.md
|
|
%dir %{_kf6_plugindir}/kf6/kirigami
|
|
%dir %{_kf6_plugindir}/kf6/kirigami/platform
|
|
%{_kf6_plugindir}/kf6/kirigami/platform/org.kde.desktop.so
|
|
%{_kf6_qmldir}/org/kde/desktop/
|
|
%{_kf6_qmldir}/org/kde/qqc2desktopstyle/
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%files devel
|
|
%{_kf6_cmakedir}/KF6QQC2DesktopStyle/
|
|
|
|
%changelog
|