File mingw32-qt6-declarative.spec of Package mingw32-qt6-declarative

#
# spec file for package mingw32-qt6-declarative
#
# Copyright (c) 2021 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 autoreqprov 0
%define examples 0
%define qmlls 0
%define quickwidgets 1
%define tools 1
%define wrapper6 0

%define real_version 6.6.2
%define short_version 6.6
%define _soversion 6
%define tar_name qtdeclarative-everywhere-src
%define tar_suffix %{nil}
#
%global qt6_flavor @BUILD_FLAVOR@%{nil}
%if "%{qt6_flavor}" == "docs"
%define pkg_suffix -docs
%endif
#
%define _name   qt6-declarative%{?pkg_suffix}
Name:           mingw32-%{_name}
Version:        6.6.2
Release:        0
Summary:        Qt 6 Declarative Libraries and tools
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Group:          System/Libraries
URL:            https://www.qt.io
Source:         https://download.qt.io/official_releases/qt/%{short_version}/%{real_version}%{tar_suffix}/submodules/%{tar_name}-%{real_version}%{tar_suffix}.tar.xz
Source99:       mingw32-qt6-declarative-rpmlintrc
# PATCH-FIX-DOWNSTREAM
Patch0:         0001-qmlimportscanner-Include-module-versions-again.patch
BuildRequires:  python3-base
BuildRequires:  mingw32-qt6-core-private-devel
BuildRequires:  mingw32-qt6-gui-private-devel
BuildRequires:  mingw32-qt6-opengl-private-devel
BuildRequires:  mingw32-qt6-test-private-devel
BuildRequires:  mingw32-qt6-widgets-private-devel
BuildRequires:  mingw32(cmake:Qt6Concurrent) = %{real_version}
BuildRequires:  mingw32(cmake:Qt6Core) = %{real_version}
BuildRequires:  mingw32(cmake:Qt6Gui) = %{real_version}
#BuildRequires:  mingw32(cmake:Qt6LanguageServerPrivate)
BuildRequires:  mingw32(cmake:Qt6Network) = %{real_version}
BuildRequires:  mingw32(cmake:Qt6OpenGL) = %{real_version}
BuildRequires:  mingw32(cmake:Qt6OpenGLWidgets) = %{real_version}
BuildRequires:  mingw32(cmake:Qt6ShaderTools) = %{real_version}
BuildRequires:  mingw32(cmake:Qt6Sql) = %{real_version}
BuildRequires:  mingw32(cmake:Qt6Svg) = %{real_version}
BuildRequires:  mingw32(cmake:Qt6Test) = %{real_version}
BuildRequires:  mingw32(cmake:Qt6Widgets) = %{real_version}
# native
BuildRequires:  cmake(Qt6Qml) = %{version}
BuildRequires:  cmake(Qt6ShaderToolsTools) = %{version}
%_mingw32_package_header_debug
BuildArch:      noarch
%if "%{qt6_flavor}" == "docs"
BuildRequires:  mingw32-qt6-tools
BuildRequires:  qt6-tools
%endif

%description
Qt 6 Declarative Libraries and tools

%if %{qt6_docs_flavor}
# qtdeclarative and qtquickcontrols2 were merged before the 6.2 release.
# Provides/Obsoletes are needed, we can't use the %%qt6_doc_packages and
# %%qt6_examples_package macros.
%package -n mingw32-qt6-declarative-docs-html
Summary:     Documentation for qt6-declarative in HTML format
License:     GFDL-1.3-or-later
Provides:    mingw32-qt6-quickcontrols2-docs-html = 6.2.0
Obsoletes:   mingw32-qt6-quickcontrols2-docs-html < 6.2.0

%description -n mingw32-qt6-declarative-docs-html
This package contains documentation for qt6-declarative in HTML format.

%package -n mingw32-qt6-declarative-docs-qch
Summary:     Documentation for qt6-declarative in QCH format
License:     GFDL-1.3-or-later
Provides:    mingw32-qt6-quickcontrols2-docs-qch = 6.2.0
Obsoletes:   mingw32-qt6-quickcontrols2-docs-qch < 6.2.0

%description -n mingw32-qt6-declarative-docs-qch
This package contains documentation for qt6-declarative in QCH format.

%else

# Note: The qt 'labs' libraries are not part of the meta packages
%package devel
Summary:        Qt 6 Declarative meta package
Group:          Development/Libraries
Requires:       mingw32(cmake:Qt6Qml) = %{real_version}
Requires:       mingw32(cmake:Qt6QmlCore) = %{real_version}
Requires:       mingw32(cmake:Qt6QmlLocalStorage) = %{real_version}
Requires:       mingw32(cmake:Qt6QmlModels) = %{real_version}
Requires:       mingw32(cmake:Qt6QmlWorkerScript) = %{real_version}
Requires:       mingw32(cmake:Qt6Quick) = %{real_version}
Requires:       mingw32(cmake:Qt6QuickControls2) = %{real_version}
Requires:       mingw32(cmake:Qt6QuickControls2Impl) = %{real_version}
Requires:       mingw32(cmake:Qt6QuickDialogs2) = %{real_version}
Requires:       mingw32(cmake:Qt6QuickDialogs2QuickImpl) = %{real_version}
Requires:       mingw32(cmake:Qt6QuickDialogs2Utils) = %{real_version}
Requires:       mingw32(cmake:Qt6QuickLayouts) = %{real_version}
Requires:       mingw32(cmake:Qt6QuickTemplates2) = %{real_version}
Requires:       mingw32(cmake:Qt6QuickTest) = %{real_version}
%if %quickwidgets
Requires:       mingw32(cmake:Qt6QuickWidgets) = %{real_version}
%endif
BuildArch:      noarch

%description devel
This meta-package requires all the qt6-declarative development packages.

%package private-devel
Summary:        Qt 6 Declarative unstable ABI meta package
Requires:       mingw32-qt6-qml-private-devel = %{version}
Requires:       mingw32-qt6-qmlcompiler-private-devel = %{version}
Requires:       mingw32-qt6-qmlcore-private-devel = %{version}
Requires:       mingw32-qt6-qmllocalstorage-private-devel = %{version}
Requires:       mingw32-qt6-qmlmodels-private-devel = %{version}
Requires:       mingw32-qt6-qmlworkerscript-private-devel = %{version}
Requires:       mingw32-qt6-quick-private-devel = %{version}
Requires:       mingw32-qt6-quickcontrols2-private-devel = %{version}
Requires:       mingw32-qt6-quickcontrols2impl-private-devel = %{version}
Requires:       mingw32-qt6-quickdialogs2-private-devel = %{version}
Requires:       mingw32-qt6-quickdialogs2quickimpl-private-devel = %{version}
Requires:       mingw32-qt6-quickdialogs2utils-private-devel = %{version}
Requires:       mingw32-qt6-quicklayouts-private-devel = %{version}
Requires:       mingw32-qt6-quickparticles-private-devel = %{version}
Requires:       mingw32-qt6-quickshapes-private-devel = %{version}
Requires:       mingw32-qt6-quicktemplates2-private-devel = %{version}
Requires:       mingw32-qt6-quicktest-private-devel = %{version}
%if %quickwidgets
Requires:       mingw32-qt6-quickwidgets-private-devel = %{version}
%endif
BuildArch:      noarch

%description private-devel
This meta-package requires all the qt6-declarative development packages that do
not have any ABI or API guarantees.

%if %examples
%package examples
Summary:        Examples for the qt6-declarative module
Provides:       mingw32-qt6-quickcontrols2-examples = 6.2.0
Obsoletes:      mingw32-qt6-quickcontrols2-examples < 6.2.0

%description examples
Examples for the qt6-declarative module.
%endif

%package imports
Summary:        Qt 6 Declarative QML files and plugins
Provides:       mingw32-qt6-quickcontrols2-imports = 6.2.0
Obsoletes:      mingw32-qt6-quickcontrols2-imports < 6.2.0

%description imports
QML files and plugins from the Qt 6 Declarative module.

%package tools
Summary:        Qt 6 Declarative Tools
License:        GPL-3.0-only
Requires:       mingw32-qt6-declarative-imports
Requires:       (qml-autoreqprov if rpm-build)

%description tools
Additional tools for inspecting, testing, viewing QML imports and files.

%package -n mingw32-libQt6LabsAnimation%{_soversion}
Summary:        Qt 6 LabsAnimation library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only

%description -n mingw32-libQt6LabsAnimation%{_soversion}
The Qt 6 LabsAnimation library.

%package -n mingw32-qt6-labsanimation-devel
Summary:        Qt 6 LabsAnimation library - Development files
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-libQt6LabsAnimation%{_soversion} = %{version}
Requires:       mingw32-qt6-qml-private-devel = %{version}
Requires:       mingw32-qt6-quick-private-devel = %{version}

%description -n mingw32-qt6-labsanimation-devel
Development files for the Qt 6 LabsAnimation library.

%package -n mingw32-qt6-labsanimation-private-devel
Summary:        Non-ABI stable API for the Qt 6 LabsAnimation library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32(cmake:Qt6LabsAnimation) = %{real_version}

%description -n mingw32-qt6-labsanimation-private-devel
This package provides private headers of libQt6LabsAnimation that do not have any
ABI or API guarantees.

%package -n mingw32-libQt6LabsFolderListModel%{_soversion}
Summary:        Qt 6 LabsFolderListModel library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only

%description -n mingw32-libQt6LabsFolderListModel%{_soversion}
The Qt 6 LabsFolderListModel library.

%package -n mingw32-qt6-labsfolderlistmodel-devel
Summary:        Qt 6 LabsFolderListModel library - Development files
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-libQt6LabsFolderListModel%{_soversion} = %{version}
Requires:       mingw32-qt6-qml-private-devel = %{version}
Requires:       mingw32-qt6-qmlmodels-private-devel = %{version}
%requires_eq    mingw32-qt6-core-private-devel

%description -n mingw32-qt6-labsfolderlistmodel-devel
Development files for the Qt 6 LabsFolderListModel library.

%package -n mingw32-qt6-labsfolderlistmodel-private-devel
Summary:        Non-ABI stable API for the Qt 6 LabsFolderListModel library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32(cmake:Qt6LabsFolderListModel) = %{real_version}

%description -n mingw32-qt6-labsfolderlistmodel-private-devel
This package provides private headers of libQt6LabsFolderListModel that do not have any
ABI or API guarantees.

%package -n mingw32-libQt6LabsQmlModels%{_soversion}
Summary:        Qt 6 LabsQmlModels library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only

%description -n mingw32-libQt6LabsQmlModels%{_soversion}
The Qt 6 LabsQmlModels library.

%package -n mingw32-qt6-labsqmlmodels-devel
Summary:        Qt 6 LabsQmlModels library - Development files
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-libQt6LabsQmlModels%{_soversion} = %{version}
Requires:       mingw32-qt6-qml-private-devel = %{version}
Requires:       mingw32-qt6-qmlmodels-private-devel = %{version}

%description -n mingw32-qt6-labsqmlmodels-devel
Development files for the Qt 6 LabsQmlModels library.

%package -n mingw32-qt6-labsqmlmodels-private-devel
Summary:        Non-ABI stable API for the Qt 6 LabsQmlModels library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32(cmake:Qt6LabsQmlModels) = %{real_version}

%description -n mingw32-qt6-labsqmlmodels-private-devel
This package provides private headers of libQt6LabsQmlModels that do not have any
ABI or API guarantees.

%package -n mingw32-libQt6LabsSettings%{_soversion}
Summary:        Qt 6 LabsSettings library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only

%description -n mingw32-libQt6LabsSettings%{_soversion}
The Qt 6 LabsSettings library.

%package -n mingw32-qt6-labssettings-devel
Summary:        Qt 6 LabsSettings library - Development files
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-libQt6LabsSettings%{_soversion} = %{version}
Requires:       mingw32(cmake:Qt6Core) = %{real_version}
Requires:       mingw32(cmake:Qt6Qml) = %{real_version}

%description -n mingw32-qt6-labssettings-devel
Development files for the Qt 6 LabsSettings library.

%package -n mingw32-qt6-labssettings-private-devel
Summary:        Non-ABI stable API for the Qt 6 LabsSettings library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32(cmake:Qt6LabsSettings) = %{real_version}

%description -n mingw32-qt6-labssettings-private-devel
This package provides private headers of libQt6LabsSettings that do not have any
ABI or API guarantees.

%package -n mingw32-libQt6LabsSharedImage%{_soversion}
Summary:        Qt 6 LabsSharedImage library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only

%description -n mingw32-libQt6LabsSharedImage%{_soversion}
The Qt 6 LabsSharedImage library.

%package -n mingw32-qt6-labssharedimage-devel
Summary:        Qt 6 LabsSharedImage library - Development files
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-libQt6LabsSharedImage%{_soversion} = %{version}
Requires:       mingw32-qt6-quick-private-devel = %{version}
%requires_eq    mingw32-qt6-core-private-devel
%requires_eq    mingw32-qt6-gui-private-devel

%description -n mingw32-qt6-labssharedimage-devel
Development files for the Qt 6 LabsSharedImage library.

%package -n mingw32-qt6-labssharedimage-private-devel
Summary:        Non-ABI stable API for the Qt 6 LabsSharedImage library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32(cmake:Qt6LabsSharedImage) = %{real_version}

%description -n mingw32-qt6-labssharedimage-private-devel
This package provides private headers of libQt6LabsSharedImage that do not have any
ABI or API guarantees.

%package -n mingw32-libQt6LabsWavefrontMesh%{_soversion}
Summary:        Qt 6 LabsWavefrontMesh library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only

%description -n mingw32-libQt6LabsWavefrontMesh%{_soversion}
The Qt 6 LabsWavefrontMesh library.

%package -n mingw32-qt6-labswavefrontmesh-devel
Summary:        Qt 6 LabsWavefrontMesh library - Development files
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-libQt6LabsWavefrontMesh%{_soversion} = %{version}
Requires:       mingw32-qt6-quick-private-devel = %{version}
%requires_eq    mingw32-qt6-core-private-devel
%requires_eq    mingw32-qt6-gui-private-devel

%description -n mingw32-qt6-labswavefrontmesh-devel
Development files for the Qt 6 LabsWavefrontMesh library.

%package -n mingw32-qt6-labswavefrontmesh-private-devel
Summary:        Non-ABI stable API for the Qt 6 LabsWavefrontMesh library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32(cmake:Qt6LabsWavefrontMesh) = %{real_version}

%description -n mingw32-qt6-labswavefrontmesh-private-devel
This package provides private headers of libQt6LabsWavefrontMesh that do not have any
ABI or API guarantees.

%package -n mingw32-libQt6Qml%{_soversion}
Summary:        Qt 6 Qml library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-qt6-declarative-imports
%if %autoreqprov
Requires:       (qml-autoreqprov if rpm-build)
%endif

%description -n mingw32-libQt6Qml%{_soversion}
The Qt 6 Qml library.

%package -n mingw32-qt6-qml-devel
Summary:        Qt 6 Qml library - Development files
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-libQt6Qml%{_soversion} = %{version}
# Executables are required
Requires:       mingw32-qt6-declarative-tools
Requires:       mingw32(cmake:Qt6Network) = %{real_version}
# qmldevtools is gone in 6.3
Provides:       mingw32-qt6-qmldevtools-devel-static = 6.3
Obsoletes:      mingw32-qt6-qmldevtools-devel-static < 6.3

%description -n mingw32-qt6-qml-devel
Development files for the Qt 6 Qml library.

%package -n mingw32-qt6-qml-private-devel
Summary:        Non-ABI stable API for the Qt 6 Qml library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32(cmake:Qt6Qml) = %{real_version}
%requires_eq    mingw32-qt6-core-private-devel

%description -n mingw32-qt6-qml-private-devel
This package provides private headers of libQt6Qml that do not have any
ABI or API guarantees.

%package -n mingw32-libQt6QmlCompiler%{_soversion}
Summary:        Qt6 QmlCompiler library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only

%description -n mingw32-libQt6QmlCompiler%{_soversion}
The Qt 6 QmlCompiler library.
This library does not have any ABI or API guarantees.

%package -n mingw32-qt6-qmlcompiler-devel
Summary:        Qt 6 QmlCompiler library - Development files
Requires:       mingw32-libQt6QmlCompiler6 = %{version}
Requires:       mingw32-qt6-qml-private-devel = %{version}
%requires_eq    mingw32-qt6-core-private-devel
# The qmlcompiler library became a shared library (again) in 6.4.0
Provides:       mingw32-qt6-qmlcompiler-devel-static = 6.4.0
Obsoletes:      mingw32-qt6-qmlcompiler-devel-static < 6.4.0

%description -n mingw32-qt6-qmlcompiler-devel
Development files for the Qt 6 QmlCore library.

%package -n mingw32-qt6-qmlcompiler-private-devel
Summary:        Non-ABI stable API for the Qt 6 QmlCompiler library
Requires:       mingw32-qt6-qmlcompiler-devel = %{version}

%description -n mingw32-qt6-qmlcompiler-private-devel
This package provides private headers of libQt6QmlCompiler that do not have any
ABI or API guarantees.

%package -n mingw32-libQt6QmlCore%{_soversion}
Summary:        Qt 6 QmlCore library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-qt6-declarative-imports

%description -n mingw32-libQt6QmlCore%{_soversion}
The Qt 6 QmlCore library.

%package -n mingw32-qt6-qmlcore-devel
Summary:        Qt 6 QmlCore library - Development files
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-libQt6QmlCore%{_soversion} = %{version}
Requires:       mingw32-cmake(Qt6Qml) = %{real_version}

%description -n mingw32-qt6-qmlcore-devel
Development files for the Qt 6 QmlCore library.

%package -n mingw32-qt6-qmlcore-private-devel
Summary:        Non-ABI stable API for the Qt 6 QmlCore library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32(cmake:Qt6QmlCore) = %{real_version}

%description -n mingw32-qt6-qmlcore-private-devel
This package provides private headers of libQt6QmlCore that do not have any
ABI or API guarantees.

%package -n mingw32-libQt6QmlLocalStorage%{_soversion}
Summary:        Qt 6 QmlLocalStorage library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only

%description -n mingw32-libQt6QmlLocalStorage%{_soversion}
The Qt 6 QmlLocalStorage library.

%package -n mingw32-qt6-qmllocalstorage-devel
Summary:        Qt 6 QmlLocalStorage library - Development files
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-libQt6QmlLocalStorage%{_soversion} = %{version}
Requires:       mingw32-qt6-qml-private-devel = %{version}
Requires:       mingw32-cmake(Qt6Sql)
%requires_eq    mingw32-qt6-core-private-devel

%description -n mingw32-qt6-qmllocalstorage-devel
Development files for the Qt 6 QmlLocalStorage library.

%package -n mingw32-qt6-qmllocalstorage-private-devel
Summary:        Non-ABI stable API for the Qt 6 QmlLocalStorage library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-qt6-qml-private-devel = %{version}
Requires:       mingw32(cmake:Qt6QmlLocalStorage) = %{real_version}
%requires_eq    mingw32-qt6-core-private-devel

%description -n mingw32-qt6-qmllocalstorage-private-devel
This package provides private headers of libQt6QmlLocalStorage that do not have any
ABI or API guarantees.

%package -n mingw32-libQt6QmlModels%{_soversion}
Summary:        Qt 6 QmlModels library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only

%description -n mingw32-libQt6QmlModels%{_soversion}
The Qt 6 QmlModels library.

%package -n mingw32-qt6-qmlmodels-devel
Summary:        Qt 6 QmlModels library - Development files
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-libQt6QmlModels%{_soversion} = %{version}
Requires:       mingw32(cmake:Qt6Core) = %{real_version}
Requires:       mingw32(cmake:Qt6Qml) = %{real_version}

%description -n mingw32-qt6-qmlmodels-devel
Development files for the Qt 6 QmlModels library.

%package -n mingw32-qt6-qmlmodels-private-devel
Summary:        Non-ABI stable API for the Qt 6 QmlModels library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-qt6-qml-private-devel = %{version}
Requires:       mingw32(cmake:Qt6QmlModels) = %{real_version}
%requires_eq    mingw32-qt6-core-private-devel

%description -n mingw32-qt6-qmlmodels-private-devel
This package provides private headers of libQt6QmlModels that do not have any
ABI or API guarantees.

%package -n mingw32-libQt6QmlWorkerScript%{_soversion}
Summary:        Qt 6 QmlWorkScript library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only

%description -n mingw32-libQt6QmlWorkerScript%{_soversion}
The Qt 6 QmlModels library.

%package -n mingw32-qt6-qmlworkerscript-devel
Summary:        Qt 6 QmlModels library - Development files
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-libQt6QmlWorkerScript%{_soversion} = %{version}
Requires:       mingw32(cmake:Qt6Core) = %{real_version}
Requires:       mingw32(cmake:Qt6Qml) = %{real_version}

%description -n mingw32-qt6-qmlworkerscript-devel
Development files for the Qt 6 QmlModels library.

%package -n mingw32-qt6-qmlworkerscript-private-devel
Summary:        Non-ABI stable API for the Qt 6 QmlWorkerScript library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-qt6-qml-private-devel = %{version}
Requires:       mingw32(cmake:Qt6QmlWorkerScript) = %{real_version}
%requires_eq    mingw32-qt6-core-private-devel

%description -n mingw32-qt6-qmlworkerscript-private-devel
This package provides private headers of libQt6QmlWorkerScript that do not have
any ABI or API guarantees.

%package -n mingw32-libQt6QmlXmlListModel%{_soversion}
Summary:        Qt 6 QmlXmlListModel library

%description -n mingw32-libQt6QmlXmlListModel%{_soversion}
The Qt 6 QmlXmlListModel library.

%package -n mingw32-qt6-qmlxmllistmodel-devel
Summary:        Qt 6 QmlXmlListModel library - Development files
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-libQt6QmlXmlListModel%{_soversion} = %{version}
Requires:       mingw32(cmake:Qt6Qml) = %{real_version}
Requires:       mingw32(cmake:Qt6QmlModels) = %{real_version}

%description -n mingw32-qt6-qmlxmllistmodel-devel
Development files for the Qt 6 QmlXmlListModel library.

%package -n mingw32-qt6-qmlxmllistmodel-private-devel
Summary:        Non-ABI stable API for the Qt 6 QmlXmlListModel library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32(cmake:Qt6QmlXmlListModel) = %{real_version}
%requires_eq    mingw32-qt6-core-private-devel

%description -n mingw32-qt6-qmlxmllistmodel-private-devel
This package provides private headers of libQt6QmlXmlListModel that do not have
any ABI or API guarantees.

%package -n mingw32-libQt6Quick%{_soversion}
Summary:        Qt 6 Quick library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only

%description -n mingw32-libQt6Quick%{_soversion}
The Qt 6 Quick library.

%package -n mingw32-qt6-quick-devel
Summary:        Qt 6 Quick library - Development files
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-libQt6Quick%{_soversion} = %{version}
Requires:       mingw32(cmake:Qt6Core) = %{real_version}
Requires:       mingw32(cmake:Qt6Gui) = %{real_version}
Requires:       mingw32(cmake:Qt6Network) = %{real_version}
Requires:       mingw32(cmake:Qt6OpenGL) = %{real_version}
Requires:       mingw32(cmake:Qt6Qml) = %{real_version}
Requires:       mingw32(cmake:Qt6QmlModels) = %{real_version}

%description -n mingw32-qt6-quick-devel
Development files for the Qt 6 Quick library.

%package -n mingw32-qt6-quick-private-devel
Summary:        Non-ABI stable API for the Qt 6 Quick library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-qt6-qml-private-devel = %{version}
Requires:       mingw32-qt6-qmlmodels-private-devel = %{version}
Requires:       mingw32(cmake:Qt6Quick) = %{real_version}
%requires_eq    mingw32-qt6-core-private-devel
%requires_eq    mingw32-qt6-gui-private-devel

%description -n mingw32-qt6-quick-private-devel
This package provides private headers of libQt6Quick that do not have any
ABI or API guarantees.

%package -n mingw32-libQt6QuickControls2-%{_soversion}
Summary:        Qt 6 QuickControls2 library

%description -n mingw32-libQt6QuickControls2-%{_soversion}
The Qt 6 QuickControls2 library.

%package -n mingw32-qt6-quickcontrols2-devel
Summary:        Qt 6 QuickControls2 library - Development files
Requires:       mingw32-libQt6QuickControls2-%{_soversion} = %{version}
Requires:       mingw32(cmake:Qt6Gui) = %{real_version}
Requires:       mingw32(cmake:Qt6Qml) = %{real_version}
Requires:       mingw32(cmake:Qt6Quick) = %{real_version}
Requires:       mingw32(cmake:Qt6QuickTemplates2) = %{real_version}

%description -n mingw32-qt6-quickcontrols2-devel
Development files for the Qt 6 QuickControls2 library.

%package -n mingw32-qt6-quickcontrols2-private-devel
Summary:        Non-ABI stable API for the Qt 6 QuickControls2 library
Requires:       mingw32(cmake:Qt6QuickControls2) = %{real_version}

%description -n mingw32-qt6-quickcontrols2-private-devel
This package provides private headers of libQt6QuickControls2 that do not have
any ABI or API guarantees.

%package -n mingw32-libQt6QuickControls2Impl%{_soversion}
Summary:        Qt 6 QuickControls2Impl library

%description -n mingw32-libQt6QuickControls2Impl%{_soversion}
The Qt 6 QuickControls2Impl library.

%package -n mingw32-qt6-quickcontrols2impl-devel
Summary:        Qt6 QuickControls2Impl library - Development files
Requires:       mingw32-libQt6QuickControls2Impl%{_soversion} = %{version}
Requires:       mingw32(cmake:Qt6Gui) = %{real_version}
Requires:       mingw32(cmake:Qt6Qml) = %{real_version}
Requires:       mingw32(cmake:Qt6Quick) = %{real_version}
Requires:       mingw32(cmake:Qt6QuickTemplates2) = %{real_version}

%description -n mingw32-qt6-quickcontrols2impl-devel
Development files for the Qt 6 QuickControls2Impl library.

%package -n mingw32-qt6-quickcontrols2impl-private-devel
Summary:        Non-ABI stable API for the Qt 6 QuickControls2Impl library
Requires:       mingw32(cmake:Qt6QuickControls2Impl) = %{real_version}

%description -n mingw32-qt6-quickcontrols2impl-private-devel
This package provides private headers of libQt6QuickControls2Impl that do not
have any ABI or API guarantees.

%package -n mingw32-libQt6QuickDialogs2-%{_soversion}
Summary:        Qt 6 QuickDialogs2 library

%description -n mingw32-libQt6QuickDialogs2-%{_soversion}
The Qt 6 QuickDialogs2 library.

%package -n mingw32-qt6-quickdialogs2-devel
Summary:        Qt6 QuickDialogs2 library - Development files
Requires:       mingw32-libQt6QuickDialogs2-%{_soversion} = %{version}
Requires:       mingw32(cmake:Qt6Gui) = %{real_version}
Requires:       mingw32(cmake:Qt6Qml) = %{real_version}
Requires:       mingw32(cmake:Qt6Quick) = %{real_version}
Requires:       mingw32(cmake:Qt6QuickControls2Impl) = %{real_version}
Requires:       mingw32(cmake:Qt6QuickDialogs2QuickImpl) = %{real_version}
Requires:       mingw32(cmake:Qt6QuickDialogs2Utils) = %{real_version}

%description -n mingw32-qt6-quickdialogs2-devel
Development files for the Qt 6 QuickDialogs2 library.

%package -n mingw32-qt6-quickdialogs2-private-devel
Summary:        Non-ABI stable API for the Qt 6 QuickDialogs2 library
Requires:       qt6-qmlmodels-private-devel = %{version}
Requires:       mingw32(cmake:Qt6QuickDialogs2) 

%description -n mingw32-qt6-quickdialogs2-private-devel
This package provides private headers of libQt6QuickDialogs2 that do not have
any ABI or API guarantees.

%package -n mingw32-libQt6QuickDialogs2QuickImpl%{_soversion}
Summary:        Qt 6 QuickDialogs2Impl library

%description -n mingw32-libQt6QuickDialogs2QuickImpl%{_soversion}
The Qt 6 QuickDialogs2Impl library.

%package -n mingw32-qt6-quickdialogs2quickimpl-devel
Summary:        Qt6 QuickDialogs2Impl library - Development files
Requires:       mingw32-libQt6QuickDialogs2QuickImpl%{_soversion} = %{version}
Requires:       mingw32(cmake:Qt6Gui) = %{real_version}
Requires:       mingw32(cmake:Qt6Qml) = %{real_version}
Requires:       mingw32(cmake:Qt6Quick) = %{real_version}
Requires:       mingw32(cmake:Qt6QuickControls2Impl) = %{real_version}
Requires:       mingw32(cmake:Qt6QuickDialogs2Utils) = %{real_version}
Requires:       mingw32(cmake:Qt6QuickTemplates2) = %{real_version}

%description -n mingw32-qt6-quickdialogs2quickimpl-devel
Development files for the Qt 6 QuickDialogs2Impl library.

%package -n mingw32-qt6-quickdialogs2quickimpl-private-devel
Summary:        Non-ABI stable API for the Qt 6 QuickDialogs2Impl library
Requires:       mingw32(cmake:Qt6QuickDialogs2QuickImpl) = %{real_version}

%description -n mingw32-qt6-quickdialogs2quickimpl-private-devel
This package provides private headers of libQt6QuickDialogs2Impl that do not
have any ABI or API guarantees.

%package -n mingw32-libQt6QuickDialogs2Utils%{_soversion}
Summary:        Qt 6 QuickDialogs2Utils library

%description -n mingw32-libQt6QuickDialogs2Utils%{_soversion}
The Qt 6 QuickDialogs2Utils library.

%package -n mingw32-qt6-quickdialogs2utils-devel
Summary:        Qt6 QuickDialogs2Utils library - Development files
Requires:       mingw32-libQt6QuickDialogs2Utils6 = %{version}
Requires:       mingw32(cmake:Qt6Gui) = %{real_version}

%description -n mingw32-qt6-quickdialogs2utils-devel
Development files for the Qt 6 QuickDialogs2Utils library.

%package -n mingw32-qt6-quickdialogs2utils-private-devel
Summary:        Non-ABI stable API for the Qt 6 QuickDialogs2Utils library
Requires:       mingw32-qt6-qmlmodels-private-devel = %{version}
Requires:       mingw32(cmake:Qt6QuickDialogs2Utils) = %{real_version}

%description -n mingw32-qt6-quickdialogs2utils-private-devel
This package provides private headers of libQt6QuickDialogs2Utils that do not have
any ABI or API guarantees.

%package -n mingw32-libQt6QuickLayouts%{_soversion}
Summary:        Qt 6 QuickLayouts library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only

%description -n mingw32-libQt6QuickLayouts%{_soversion}
The Qt 6 QuickLayouts library.

%package -n mingw32-qt6-quicklayouts-devel
Summary:        Qt 6 QuickLayouts library - Development files
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-libQt6QuickLayouts%{_soversion} = %{version}
Requires:       mingw32-qt6-quick-private-devel = %{version}
Requires:       mingw32(cmake:Qt6Gui) = %{real_version}
Requires:       mingw32(cmake:Qt6Qml) = %{real_version}
%requires_eq    mingw32-qt6-gui-private-devel

%description -n mingw32-qt6-quicklayouts-devel
Development files for the Qt 6 QuickLayouts library.

%package -n mingw32-qt6-quicklayouts-private-devel
Summary:        Non-ABI stable API for the Qt 6 QuickLayouts library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32(cmake:Qt6QuickLayouts) = %{real_version}

%description -n mingw32-qt6-quicklayouts-private-devel
This package provides private headers of libQt6QuickLayouts that do not have
any ABI or API guarantees.

%package -n mingw32-libQt6QuickTemplates2-%{_soversion}
Summary:        Qt 6 QuickTemplates2 library

%description -n mingw32-libQt6QuickTemplates2-%{_soversion}
The Qt 6 QuickTemplates2 library.

%package -n mingw32-qt6-quicktemplates2-devel
Summary:        Qt6 QuickTemplates2 library - Development files
Requires:       mingw32-libQt6QuickTemplates2-%{_soversion} = %{version}
Requires:       mingw32(cmake:Qt6Gui) = %{real_version}
Requires:       mingw32(cmake:Qt6Qml) = %{real_version}
Requires:       mingw32(cmake:Qt6QmlModels) = %{real_version}
Requires:       mingw32(cmake:Qt6Quick) = %{real_version}

%description -n mingw32-qt6-quicktemplates2-devel
Development files for the Qt 6 QuickTemplates2 library.

%package -n mingw32-qt6-quicktemplates2-private-devel
Summary:        Non-ABI stable API for the Qt 6 QuickTemplates2 library
Requires:       mingw32-qt6-qmlmodels-private-devel = %{version}
Requires:       mingw32(cmake:Qt6QuickTemplates2) = %{real_version}

%description -n mingw32-qt6-quicktemplates2-private-devel
This package provides private headers of libQt6QuickTemplates2 that do not have
any ABI or API guarantees.

%package -n mingw32-libQt6QuickTest%{_soversion}
Summary:        Qt 6 QuickTest library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only

%description -n mingw32-libQt6QuickTest%{_soversion}
The Qt 6 QuickTest library.

%package -n mingw32-qt6-quicktest-devel
Summary:        Qt 6 QuickTest library - Development files
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-libQt6QuickTest%{_soversion} = %{version}
Requires:       mingw32(cmake:Qt6Gui) = %{real_version}
Requires:       mingw32(cmake:Qt6Qml) = %{real_version}
Requires:       mingw32(cmake:Qt6Quick) = %{real_version}
Requires:       mingw32(cmake:Qt6Test) = %{real_version}

%description -n mingw32-qt6-quicktest-devel
Development files for the Qt 6 QuickTest library.

%package -n mingw32-qt6-quicktest-private-devel
Summary:        Non-ABI stable API for the Qt 6 QuickTest library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32(cmake:Qt6QuickTest) = %{real_version}
%requires_eq    mingw32-qt6-test-private-devel

%description -n mingw32-qt6-quicktest-private-devel
This package provides private headers of libQt6QuickTest that do not have any
ABI or API guarantees.

%if %quickwidgets  
%package -n mingw32-libQt6QuickWidgets%{_soversion}
Summary:        Qt 6 QuickWidgets library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only

%description -n mingw32-libQt6QuickWidgets%{_soversion}
The Qt 6 QuickWidgets library.

%package -n mingw32-qt6-quickwidgets-devel
Summary:        Qt 6 QuickWidgets library - Development files
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-libQt6QuickWidgets%{_soversion} = %{version}
Requires:       mingw32(cmake:Qt6Gui) = %{real_version}
Requires:       mingw32(cmake:Qt6Qml) = %{real_version}
Requires:       mingw32(cmake:Qt6Quick) = %{real_version}
Requires:       mingw32(cmake:Qt6Widgets) = %{real_version}

%description -n mingw32-qt6-quickwidgets-devel
Development files for the Qt 6 QuickWidgets library.

%package -n mingw32-qt6-quickwidgets-private-devel
Summary:        Non-ABI stable API for the Qt 6 QuickWidgets library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-qt6-qml-private-devel = %{version}
Requires:       mingw32-qt6-quick-private-devel = %{version}
Requires:       mingw32(cmake:Qt6QuickWidgets) = %{real_version}
%requires_eq    mingw32-qt6-core-private-devel
%requires_eq    mingw32-qt6-gui-private-devel
%requires_eq    mingw32-qt6-widgets-private-devel

%description -n mingw32-qt6-quickwidgets-private-devel
This package provides private headers of libQt6QuickWidgets that do not have any
ABI or API guarantees.
%endif

### Private only libraries ###

%package -n mingw32-libQt6QuickEffects%{_soversion}
Summary:        Qt 6 QuickEffects library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only

%description -n mingw32-libQt6QuickEffects%{_soversion}
The Qt 6 QuickEffects library.
This library does not have any ABI or API guarantees.

%package -n mingw32-qt6-quickeffects-private-devel
Summary:        Qt 6 QuickEffects library - Development files
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-libQt6QuickEffects%{_soversion} = %{version}
Requires:       mingw32-qt6-qml-private-devel = %{version}
Requires:       mingw32-qt6-quick-private-devel = %{version}
%requires_eq    mingw32-qt6-gui-private-devel

%description -n mingw32-qt6-quickeffects-private-devel
Development files for the Qt 6 QuickEffects library.
This library does not have any ABI or API guarantees.

%package -n mingw32-libQt6QuickParticles%{_soversion}
Summary:        Qt 6 QuickParticles library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only

%description -n mingw32-libQt6QuickParticles%{_soversion}
The Qt 6 QuickParticles library.
This library does not have any ABI or API guarantees.

%package -n mingw32-qt6-quickparticles-private-devel
Summary:        Qt 6 QuickParticles library - Development files
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-libQt6QuickParticles%{_soversion} = %{version}
Requires:       mingw32-qt6-qml-private-devel = %{version}
Requires:       mingw32-qt6-quick-private-devel = %{version}
%requires_eq    mingw32-qt6-core-private-devel
%requires_eq    mingw32-qt6-gui-private-devel
# Renamed in 6.2.0
Provides:       mingw32-qt6-quickparticles-devel = 6.2.0
Obsoletes:      mingw32-qt6-quickparticles-devel < 6.2.0

%description -n mingw32-qt6-quickparticles-private-devel
Development files for the Qt 6 QuickParticles library.
This library does not have any ABI or API guarantees.

%package -n mingw32-libQt6QuickShapes%{_soversion}
Summary:        Qt 6 QuickShapes library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only

%description -n mingw32-libQt6QuickShapes%{_soversion}
The Qt 6 QuickShapes library.
This library does not have any ABI or API guarantees.

%package -n mingw32-qt6-quickshapes-private-devel
Summary:        Qt 6 QuickShapes library - Development files
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-libQt6QuickShapes%{_soversion} = %{version}
Requires:       mingw32-qt6-quick-private-devel = %{version}
Requires:       mingw32(cmake:Qt6Qml) = %{real_version}
%requires_eq    mingw32-qt6-gui-private-devel
# Renamed in 6.2.0
Provides:       mingw32-qt6-quickshapes-devel = 6.2.0
Obsoletes:      mingw32-qt6-quickshapes-devel < 6.2.0

%description -n mingw32-qt6-quickshapes-private-devel
Development files for the Qt 6 QuickShapes library.
This library does not have any ABI or API guarantees.


### Static libraries ###
%package -n mingw32-qt6-packetprotocol-devel-static
Summary:        Qt6 PacketProtocol static library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
%requires_eq    mingw32-qt6-core-private-devel
# Renamed in 6.2.0
Provides:       mingw32-qt6-packetprotocol-private-devel = 6.2.0
Obsoletes:      mingw32-qt6-packetprotocol-private-devel < 6.2.0

%description -n mingw32-qt6-packetprotocol-devel-static
The Qt6 PacketProtocol static library.
This library does not have any ABI or API guarantees.

%package -n mingw32-qt6-qmldebug-devel-static
Summary:        Qt6 QmlDebug static library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-qt6-packetprotocol-devel-static = %{version}
Requires:       mingw32-qt6-qml-private-devel = %{version}
Requires:       mingw32(cmake:Qt6Network) = %{real_version}
%requires_eq    mingw32-qt6-core-private-devel
# Renamed in 6.2.0
Provides:       mingw32-qt6-qmldebug-private-devel = 6.2.0
Obsoletes:      mingw32-qt6-qmldebug-private-devel < 6.2.0

%description -n mingw32-qt6-qmldebug-devel-static
The Qt6 QmlDebug static library.
This library does not have any ABI or API guarantees.

%package -n mingw32-qt6-qmldom-devel-static
Summary:        Qt6 QmlDom static library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-qt6-qml-private-devel = %{version}
# Renamed in 6.2.0
Provides:       mingw32-qt6-qmldom-private-devel = 6.2.0
Obsoletes:      mingw32-qt6-qmldom-private-devel < 6.2.0

%description -n mingw32-qt6-qmldom-devel-static
The Qt6 QmlDom static library.
The goal of the Dom library is to provide a nicer to use basis for the
Qml Code model, to be used by the various QML tools, the designer and
the new compiler.

%if %qmlls
%package -n mingw32-qt6-qmlls-devel-static
Summary:        Qt6 QmlLS static library
Requires:       mingw32-qt6-qml-private-devel = %{version}
Requires:       mingw32-qt6-languageserver-private-devel = %{version}
Requires:       mingw32(cmake:Qt6QmlDomPrivate) = %{real_version}
Requires:       mingw32(cmake:Qt6QmlToolingSettingsPrivate) = %{real_version}

%description -n mingw32-qt6-qmlls-devel-static
The Qt6 QmlLS static library.
%endif

%package -n mingw32-qt6-qmltoolingsettings-devel-static
Summary:        Qt6 QmlToolingSettings static library
Requires:       mingw32-qt6-core-private-devel = %{version}

%description -n mingw32-qt6-qmltoolingsettings-devel-static
The Qt6 QmlToolingSettings static library.

%package -n mingw32-qt6-qmltyperegistrar-devel-static
Summary:        Qt6 QmlTypeRegistrar static library

%description -n mingw32-qt6-qmltyperegistrar-devel-static
The Qt6 QmlTypeRegistrar static library.
This library does not have any ABI or API guarantees.

%package -n mingw32-qt6-quickcontrolstestutils-devel-static
Summary:        Qt6 QuickControlsTestUtils static library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-qt6-quick-private-devel = %{version}
Requires:       mingw32-qt6-quickdialogs2quickimpl-private-devel = %{version}
Requires:       mingw32-qt6-quicktemplates2-private-devel = %{version}
Requires:       mingw32-qt6-quicktestutils-devel-static = %{version}
Requires:       mingw32(cmake:Qt6QuickControls2) = %{real_version}
Requires:       mingw32(cmake:Qt6QuickDialogs2QuickImpl) = %{real_version}
Requires:       mingw32(cmake:Qt6Test) = %{real_version}

%description -n mingw32-qt6-quickcontrolstestutils-devel-static
The Qt6 QuickControlsTestUtils static library.

%package -n mingw32-qt6-quicktestutils-devel-static
Summary:        Qt6 QuickTestUtils static library
License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
Requires:       mingw32-qt6-qml-private-devel = %{version}
Requires:       mingw32(cmake:Qt6Quick) = %{real_version}
Requires:       mingw32(cmake:Qt6QuickTest) = %{real_version}
Requires:       mingw32(cmake:Qt6Network) = %{real_version}
Requires:       mingw32(cmake:Qt6Test) = %{real_version}

%description -n mingw32-qt6-quicktestutils-devel-static
The Qt6 QuickTestUtils static library.

%_mingw32_debug_package

%endif

%prep
%autosetup -p1 -n %{tar_name}-%{real_version}%{tar_suffix}

# Empty file used for the meta packages
cat >> meta_package << EOF
This is a meta package, it does not contain any file
EOF

%build
# Package provides static libraries
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects

%_mingw32_cmake_qt6 \
    -DCMAKE_DLL_NAME_WITH_SOVERSION=1 \
    -DQt6ShaderToolsTools_DIR=/usr/lib64/cmake/Qt6ShaderToolsTools \
    -DQT_FORCE_BUILD_TOOLS=1
 
%{_mingw32_qt6_build}

%install
%{_mingw32_qt6_install}

%if !%{qt6_docs_flavor}

# Empty folder provided by libQt6Qml6
mkdir -p %{buildroot}%{_mingw32_qt6_importsdir}

#%%{_mingw32_qt6_link_executables}

# CMake files are not needed for plugins
rm -r %{buildroot}%{_mingw32_qt6_cmakedir}/Qt6Qml/QmlPlugins
rm %{buildroot}%{_mingw32_qt6_cmakedir}/*/*Plugin{Config,Targets}*.cmake

# There are no private headers
rm %{buildroot}%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmlintegration_private.pri

%files devel
%doc meta_package

%files private-devel
%doc meta_package

%if %examples
%files examples
%{_mingw32_qt6_examplesdir}/*
%endif

%files imports
%{_mingw32_qt6_qmldir}/QmlTime/
%{_mingw32_qt6_qmldir}/Qt/
%{_mingw32_qt6_qmldir}/QtCore/
%{_mingw32_qt6_qmldir}/QtQml/
%{_mingw32_qt6_qmldir}/QtQuick/
%{_mingw32_qt6_qmldir}/QtTest/
%{_mingw32_qt6_qmldir}/builtins.qmltypes
%{_mingw32_qt6_qmldir}/jsroot.qmltypes
%exclude %{_mingw32_qt6_qmldir}/*/*.debug
%exclude %{_mingw32_qt6_qmldir}/*/*/*.debug
%exclude %{_mingw32_qt6_qmldir}/*/*/*/*.debug
%exclude %{_mingw32_qt6_qmldir}/*/*/*/*/*.debug

%files tools
%if %tools && %wrapper6
%{_mingw32_bindir}/qml6.exe
%{_mingw32_bindir}/qmldom6.exe
%{_mingw32_bindir}/qmleasing6.exe
%{_mingw32_bindir}/qmlformat6.exe
%{_mingw32_bindir}/qmllint6.exe
%{_mingw32_bindir}/qmlplugindump6.exe
%{_mingw32_bindir}/qmlpreview6.exe
%{_mingw32_bindir}/qmlprofiler6.exe
%{_mingw32_bindir}/qmlscene6.exe
%{_mingw32_bindir}/qmltestrunner6.exe
%{_mingw32_bindir}/qmltime6.exe
%endif
%{_mingw32_qt6_bindir}/qml.exe
%{_mingw32_qt6_bindir}/qmleasing.exe
%if %tools
%{_mingw32_qt6_bindir}/qmldom.exe
%{_mingw32_qt6_bindir}/qmlformat.exe
%{_mingw32_qt6_bindir}/qmllint.exe
%{_mingw32_qt6_bindir}/qmlplugindump.exe
%endif
%{_mingw32_qt6_bindir}/qmlpreview.exe
%if %tools
%{_mingw32_qt6_bindir}/qmlprofiler.exe
%endif
%{_mingw32_qt6_bindir}/qmlscene.exe
%if %tools
%{_mingw32_qt6_bindir}/qmltestrunner.exe
%{_mingw32_qt6_bindir}/qmltc.exe
%{_mingw32_qt6_bindir}/qmltime.exe
%{_mingw32_qt6_libexecdir}/qmlcachegen.exe
%{_mingw32_qt6_libexecdir}/qmlimportscanner.exe
%{_mingw32_qt6_libexecdir}/qmltyperegistrar.exe
%endif
%{_mingw32_qt6_pluginsdir}/qmllint/
%{_mingw32_qt6_pluginsdir}/qmltooling/
%exclude %{_mingw32_qt6_pluginsdir}/*/*.debug

%files -n mingw32-libQt6LabsAnimation%{_soversion}
%{_mingw32_qt6_bindir}/libQt6LabsAnimation-%{_soversion}.dll

%files -n mingw32-qt6-labsanimation-devel
%{_mingw32_qt6_cmakedir}/Qt6LabsAnimation/
%{_mingw32_qt6_descriptionsdir}/LabsAnimation.json
%{_mingw32_qt6_includedir}/QtLabsAnimation/
%{_mingw32_qt6_libdir}/Qt6LabsAnimation.prl
%{_mingw32_qt6_libdir}/libQt6LabsAnimation.dll.a
%{_mingw32_qt6_metatypesdir}/qt6labsanimation_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_labsanimation.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6LabsAnimation.pc
%exclude %{_mingw32_qt6_includedir}/QtLabsAnimation/%{real_version}

%files -n mingw32-qt6-labsanimation-private-devel
%{_mingw32_qt6_includedir}/QtLabsAnimation/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_labsanimation_private.pri

%files -n mingw32-libQt6LabsFolderListModel%{_soversion}
%{_mingw32_qt6_bindir}/libQt6LabsFolderListModel-%{_soversion}.dll

%files -n mingw32-qt6-labsfolderlistmodel-devel
%{_mingw32_qt6_cmakedir}/Qt6LabsFolderListModel/
%{_mingw32_qt6_descriptionsdir}/LabsFolderListModel.json
%{_mingw32_qt6_includedir}/QtLabsFolderListModel/
%{_mingw32_qt6_libdir}/Qt6LabsFolderListModel.prl
%{_mingw32_qt6_libdir}/libQt6LabsFolderListModel.dll.a
%{_mingw32_qt6_metatypesdir}/qt6labsfolderlistmodel_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_labsfolderlistmodel.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6LabsFolderListModel.pc
%exclude %{_mingw32_qt6_includedir}/QtLabsFolderListModel/%{real_version}

%files -n mingw32-qt6-labsfolderlistmodel-private-devel
%{_mingw32_qt6_includedir}/QtLabsFolderListModel/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_labsfolderlistmodel_private.pri

%files -n mingw32-libQt6LabsQmlModels%{_soversion}
%{_mingw32_qt6_bindir}/libQt6LabsQmlModels-%{_soversion}.dll

%files -n mingw32-qt6-labsqmlmodels-devel
%{_mingw32_qt6_cmakedir}/Qt6LabsQmlModels/
%{_mingw32_qt6_descriptionsdir}/LabsQmlModels.json
%{_mingw32_qt6_includedir}/QtLabsQmlModels/
%{_mingw32_qt6_libdir}/Qt6LabsQmlModels.prl
%{_mingw32_qt6_libdir}/libQt6LabsQmlModels.dll.a
%{_mingw32_qt6_metatypesdir}/qt6labsqmlmodels_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_labsqmlmodels.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6LabsQmlModels.pc
%exclude %{_mingw32_qt6_includedir}/QtLabsQmlModels/%{real_version}

%files -n mingw32-qt6-labsqmlmodels-private-devel
%{_mingw32_qt6_includedir}/QtLabsQmlModels/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_labsqmlmodels_private.pri

%files -n mingw32-libQt6LabsSettings%{_soversion}
%{_mingw32_qt6_bindir}/libQt6LabsSettings-%{_soversion}.dll

%files -n mingw32-qt6-labssettings-devel
%{_mingw32_qt6_cmakedir}/Qt6LabsSettings/
%{_mingw32_qt6_descriptionsdir}/LabsSettings.json
%{_mingw32_qt6_includedir}/QtLabsSettings/
%{_mingw32_qt6_libdir}/Qt6LabsSettings.prl
%{_mingw32_qt6_libdir}/libQt6LabsSettings.dll.a
%{_mingw32_qt6_metatypesdir}/qt6labssettings_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_labssettings.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6LabsSettings.pc
%exclude %{_mingw32_qt6_includedir}/QtLabsSettings/%{real_version}

%files -n mingw32-qt6-labssettings-private-devel
%{_mingw32_qt6_includedir}/QtLabsSettings/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_labssettings_private.pri

%files -n mingw32-libQt6LabsSharedImage%{_soversion}
%{_mingw32_qt6_bindir}/libQt6LabsSharedImage-%{_soversion}.dll

%files -n mingw32-qt6-labssharedimage-devel
%{_mingw32_qt6_cmakedir}/Qt6LabsSharedImage/
%{_mingw32_qt6_descriptionsdir}/LabsSharedImage.json
%{_mingw32_qt6_includedir}/QtLabsSharedImage/
%{_mingw32_qt6_libdir}/Qt6LabsSharedImage.prl
%{_mingw32_qt6_libdir}/libQt6LabsSharedImage.dll.a
%{_mingw32_qt6_metatypesdir}/qt6labssharedimage_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_labssharedimage.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6LabsSharedImage.pc
%exclude %{_mingw32_qt6_includedir}/QtLabsSharedImage/%{real_version}

%files -n mingw32-qt6-labssharedimage-private-devel
%{_mingw32_qt6_includedir}/QtLabsSharedImage/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_labssharedimage_private.pri

%files -n mingw32-libQt6LabsWavefrontMesh%{_soversion}
%{_mingw32_qt6_bindir}/libQt6LabsWavefrontMesh-%{_soversion}.dll

%files -n mingw32-qt6-labswavefrontmesh-devel
%{_mingw32_qt6_cmakedir}/Qt6LabsWavefrontMesh/
%{_mingw32_qt6_descriptionsdir}/LabsWavefrontMesh.json
%{_mingw32_qt6_includedir}/QtLabsWavefrontMesh/
%{_mingw32_qt6_libdir}/Qt6LabsWavefrontMesh.prl
%{_mingw32_qt6_libdir}/libQt6LabsWavefrontMesh.dll.a
%{_mingw32_qt6_metatypesdir}/qt6labswavefrontmesh_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_labswavefrontmesh.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6LabsWavefrontMesh.pc
%exclude %{_mingw32_qt6_includedir}/QtLabsWavefrontMesh/%{real_version}

%files -n mingw32-qt6-labswavefrontmesh-private-devel
%{_mingw32_qt6_includedir}/QtLabsWavefrontMesh/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_labswavefrontmesh_private.pri

%files -n mingw32-libQt6Qml%{_soversion}
%license LICENSES/*
# libQt6Qml6 'provides' %%_qt6_importsdir and %%_qt6_qmldir
%dir %{_mingw32_qt6_importsdir}
%dir %{_mingw32_qt6_qmldir}
%{_mingw32_qt6_bindir}/libQt6Qml-%{_soversion}.dll

%files -n mingw32-qt6-qml-devel
%dir %{_mingw32_qt6_mkspecsdir}/features
%{_mingw32_qt6_cmakedir}/Qt6Qml/
%{_mingw32_qt6_cmakedir}/Qt6QmlIntegration/
# Files from the two directories above are only used by Qt6QmlMacros.cmake
%{_mingw32_qt6_cmakedir}/Qt6QmlImportScanner/
%{_mingw32_qt6_cmakedir}/Qt6QmlTools/
%{_mingw32_qt6_descriptionsdir}/QmlIntegration.json
%{_mingw32_qt6_descriptionsdir}/Qml.json
%{_mingw32_qt6_includedir}/QtQml/
%{_mingw32_qt6_includedir}/QtQmlIntegration/
%{_mingw32_qt6_libdir}/Qt6Qml.prl
%{_mingw32_qt6_libdir}/libQt6Qml.dll.a
%{_mingw32_qt6_metatypesdir}/qt6qml_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/features/qmlcache.prf
%{_mingw32_qt6_mkspecsdir}/features/qmltypes.prf
%{_mingw32_qt6_mkspecsdir}/features/qtquickcompiler.prf
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qml.pri
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmlintegration.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6Qml.pc
%{_mingw32_qt6_pkgconfigdir}/Qt6QmlIntegration.pc
%exclude %{_mingw32_qt6_includedir}/QtQml/%{real_version}

%files -n mingw32-qt6-qml-private-devel
%{_mingw32_qt6_includedir}/QtQml/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qml_private.pri

%files -n mingw32-libQt6QmlCompiler%{_soversion}
%{_mingw32_qt6_bindir}/libQt6QmlCompiler-%{_soversion}.dll

%files -n mingw32-qt6-qmlcompiler-devel
%{_mingw32_qt6_cmakedir}/Qt6QmlCompiler/
%{_mingw32_qt6_descriptionsdir}/QmlCompiler.json
%{_mingw32_qt6_includedir}/QtQmlCompiler/
%{_mingw32_qt6_libdir}/libQt6QmlCompiler.dll.a
%{_mingw32_qt6_libdir}/Qt6QmlCompiler.prl
%{_mingw32_qt6_metatypesdir}/qt6qmlcompiler_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmlcompiler.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6QmlCompiler.pc
%exclude %{_mingw32_qt6_includedir}/QtQmlCompiler/%{real_version}

%files -n mingw32-qt6-qmlcompiler-private-devel
%{_mingw32_qt6_includedir}/QtQmlCompiler/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmlcompiler_private.pri

%files -n mingw32-libQt6QmlCore%{_soversion}
%{_mingw32_qt6_bindir}/libQt6QmlCore-%{_soversion}.dll

%files -n mingw32-qt6-qmlcore-devel
%{_mingw32_qt6_cmakedir}/Qt6QmlCore/
%{_mingw32_qt6_descriptionsdir}/QmlCore.json
%{_mingw32_qt6_includedir}/QtQmlCore/
%{_mingw32_qt6_libdir}/Qt6QmlCore.prl
%{_mingw32_qt6_libdir}/libQt6QmlCore.dll.a
%{_mingw32_qt6_metatypesdir}/qt6qmlcore_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmlcore.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6QmlCore.pc
%exclude %{_mingw32_qt6_includedir}/QtQmlCore/%{real_version}

%files -n mingw32-qt6-qmlcore-private-devel
%{_mingw32_qt6_includedir}/QtQmlCore/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmlcore_private.pri

%files -n mingw32-libQt6QmlLocalStorage%{_soversion}
%{_mingw32_qt6_bindir}/libQt6QmlLocalStorage-%{_soversion}.dll

%files -n mingw32-qt6-qmllocalstorage-devel
%{_mingw32_qt6_cmakedir}/Qt6QmlLocalStorage/
%{_mingw32_qt6_descriptionsdir}/QmlLocalStorage.json
%{_mingw32_qt6_includedir}/QtQmlLocalStorage/
%{_mingw32_qt6_libdir}/Qt6QmlLocalStorage.prl
%{_mingw32_qt6_libdir}/libQt6QmlLocalStorage.dll.a
%{_mingw32_qt6_metatypesdir}/qt6qmllocalstorage_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmllocalstorage.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6QmlLocalStorage.pc
%exclude %{_mingw32_qt6_includedir}/QtQmlLocalStorage/%{real_version}

%files -n mingw32-qt6-qmllocalstorage-private-devel
%{_mingw32_qt6_includedir}/QtQmlLocalStorage/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmllocalstorage_private.pri

%files -n mingw32-libQt6QmlModels%{_soversion}
%{_mingw32_qt6_bindir}/libQt6QmlModels-%{_soversion}.dll

%files -n mingw32-qt6-qmlmodels-devel
%{_mingw32_qt6_cmakedir}/Qt6QmlModels/
%{_mingw32_qt6_descriptionsdir}/QmlModels.json
%{_mingw32_qt6_includedir}/QtQmlModels/
%{_mingw32_qt6_libdir}/Qt6QmlModels.prl
%{_mingw32_qt6_libdir}/libQt6QmlModels.dll.a
%{_mingw32_qt6_metatypesdir}/qt6qmlmodels_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmlmodels.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6QmlModels.pc
%exclude %{_mingw32_qt6_includedir}/QtQmlModels/%{real_version}

%files -n mingw32-qt6-qmlmodels-private-devel
%{_mingw32_qt6_includedir}/QtQmlModels/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmlmodels_private.pri

%files -n mingw32-libQt6QmlWorkerScript%{_soversion}
%{_mingw32_qt6_bindir}/libQt6QmlWorkerScript-%{_soversion}.dll

%files -n mingw32-qt6-qmlworkerscript-devel
%{_mingw32_qt6_cmakedir}/Qt6QmlWorkerScript/
%{_mingw32_qt6_descriptionsdir}/QmlWorkerScript.json
%{_mingw32_qt6_includedir}/QtQmlWorkerScript/
%{_mingw32_qt6_libdir}/Qt6QmlWorkerScript.prl
%{_mingw32_qt6_libdir}/libQt6QmlWorkerScript.dll.a
%{_mingw32_qt6_metatypesdir}/qt6qmlworkerscript_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmlworkerscript.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6QmlWorkerScript.pc
%exclude %{_mingw32_qt6_includedir}/QtQmlWorkerScript/%{real_version}

%files -n mingw32-qt6-qmlworkerscript-private-devel
%{_mingw32_qt6_includedir}/QtQmlWorkerScript/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmlworkerscript_private.pri

%files -n mingw32-libQt6QmlXmlListModel%{_soversion}
%{_mingw32_qt6_bindir}/libQt6QmlXmlListModel-%{_soversion}.dll

%files -n mingw32-qt6-qmlxmllistmodel-devel
%{_mingw32_qt6_cmakedir}/Qt6QmlXmlListModel/
%{_mingw32_qt6_descriptionsdir}/QmlXmlListModel.json
%{_mingw32_qt6_includedir}/QtQmlXmlListModel/
%{_mingw32_qt6_libdir}/Qt6QmlXmlListModel.prl
%{_mingw32_qt6_libdir}/libQt6QmlXmlListModel.dll.a
%{_mingw32_qt6_metatypesdir}/qt6qmlxmllistmodel_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmlxmllistmodel.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6QmlXmlListModel.pc
%exclude %{_mingw32_qt6_includedir}/QtQmlXmlListModel/%{real_version}

%files -n mingw32-qt6-qmlxmllistmodel-private-devel
%{_mingw32_qt6_includedir}/QtQmlXmlListModel/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmlxmllistmodel_private.pri

%files -n mingw32-libQt6Quick%{_soversion}
%{_mingw32_qt6_bindir}/libQt6Quick-%{_soversion}.dll

%files -n mingw32-qt6-quick-devel
%{_mingw32_qt6_cmakedir}/Qt6BuildInternals/StandaloneTests/QtDeclarativeTestsConfig.cmake
%{_mingw32_qt6_cmakedir}/Qt6Quick/
%{_mingw32_qt6_descriptionsdir}/Quick.json
%{_mingw32_qt6_includedir}/QtQuick/
%{_mingw32_qt6_libdir}/Qt6Quick.prl
%{_mingw32_qt6_libdir}/libQt6Quick.dll.a
%{_mingw32_qt6_metatypesdir}/qt6quick_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quick.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6Quick.pc
%exclude %{_mingw32_qt6_includedir}/QtQuick/%{real_version}

%files -n mingw32-qt6-quick-private-devel
%{_mingw32_qt6_includedir}/QtQuick/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quick_private.pri

%files -n mingw32-libQt6QuickControls2-%{_soversion}
%{_mingw32_qt6_bindir}/libQt6QuickControls2-%{_soversion}.dll
%if 0
%{_mingw32_qt6_libdir}/libQt6QuickControls2Basic-%{_soversion}.dll
%{_mingw32_qt6_libdir}/libQt6QuickControls2Fusion-%{_soversion}.dll
%{_mingw32_qt6_libdir}/libQt6QuickControls2Imagine-%{_soversion}.dll
%{_mingw32_qt6_libdir}/libQt6QuickControls2Material-%{_soversion}.dll
%{_mingw32_qt6_libdir}/libQt6QuickControls2Universal-%{_soversion}.dll
%endif

%files -n mingw32-qt6-quickcontrols2-devel
%{_mingw32_qt6_cmakedir}/Qt6QuickControls2/
%{_mingw32_qt6_descriptionsdir}/QuickControls2.json
%{_mingw32_qt6_includedir}/QtQuickControls2/
%{_mingw32_qt6_libdir}/Qt6QuickControls2.prl
%{_mingw32_qt6_libdir}/libQt6QuickControls2.dll.a
%{_mingw32_qt6_metatypesdir}/qt6quickcontrols2_*.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quickcontrols2.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6QuickControls2.pc
%exclude %{_mingw32_qt6_includedir}/QtQuickControls2/%{real_version}

%files -n mingw32-qt6-quickcontrols2-private-devel
%{_mingw32_qt6_includedir}/QtQuickControls2/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quickcontrols2_private.pri

%files -n mingw32-libQt6QuickControls2Impl%{_soversion}
%{_mingw32_qt6_bindir}/libQt6QuickControls2Impl-%{_soversion}.dll

%files -n mingw32-qt6-quickcontrols2impl-devel
%{_mingw32_qt6_cmakedir}/Qt6QuickControls2Impl/
%{_mingw32_qt6_descriptionsdir}/QuickControls2Impl.json
%{_mingw32_qt6_includedir}/QtQuickControls2Impl/
%{_mingw32_qt6_libdir}/Qt6QuickControls2Impl.prl
%{_mingw32_qt6_libdir}/libQt6QuickControls2Impl.dll.a
%{_mingw32_qt6_metatypesdir}/qt6quickcontrols2impl_*.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quickcontrols2impl.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6QuickControls2Impl.pc
%exclude %{_mingw32_qt6_includedir}/QtQuickControls2Impl/%{real_version}

%files -n mingw32-qt6-quickcontrols2impl-private-devel
%{_mingw32_qt6_includedir}/QtQuickControls2Impl/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quickcontrols2impl_private.pri

%files -n mingw32-libQt6QuickDialogs2-%{_soversion}
%{_mingw32_qt6_bindir}/libQt6QuickDialogs2-%{_soversion}.dll

%files -n mingw32-qt6-quickdialogs2-devel
%{_mingw32_qt6_cmakedir}/Qt6QuickDialogs2/
%{_mingw32_qt6_descriptionsdir}/QuickDialogs2.json
%{_mingw32_qt6_includedir}/QtQuickDialogs2/
%{_mingw32_qt6_libdir}/Qt6QuickDialogs2.prl
%{_mingw32_qt6_libdir}/libQt6QuickDialogs2.dll.a
%{_mingw32_qt6_metatypesdir}/qt6quickdialogs2_*.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quickdialogs2.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6QuickDialogs2.pc
%exclude %{_mingw32_qt6_includedir}/QtQuickDialogs2/%{real_version}

%files -n mingw32-qt6-quickdialogs2-private-devel
%{_mingw32_qt6_includedir}/QtQuickDialogs2/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quickdialogs2_private.pri

%files -n mingw32-libQt6QuickDialogs2QuickImpl%{_soversion}
%{_mingw32_qt6_bindir}/libQt6QuickDialogs2QuickImpl-%{_soversion}.dll

%files -n mingw32-qt6-quickdialogs2quickimpl-devel
%{_mingw32_qt6_cmakedir}/Qt6QuickDialogs2QuickImpl/
%{_mingw32_qt6_descriptionsdir}/QuickDialogs2QuickImpl.json
%{_mingw32_qt6_includedir}/QtQuickDialogs2QuickImpl/
%{_mingw32_qt6_libdir}/Qt6QuickDialogs2QuickImpl.prl
%{_mingw32_qt6_libdir}/libQt6QuickDialogs2QuickImpl.dll.a
%{_mingw32_qt6_metatypesdir}/qt6quickdialogs2quickimpl_*.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quickdialogs2quickimpl.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6QuickDialogs2QuickImpl.pc
%exclude %{_mingw32_qt6_includedir}/QtQuickDialogs2QuickImpl/%{real_version}

%files -n mingw32-qt6-quickdialogs2quickimpl-private-devel
%{_mingw32_qt6_includedir}/QtQuickDialogs2QuickImpl/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quickdialogs2quickimpl_private.pri

%files -n mingw32-libQt6QuickDialogs2Utils%{_soversion}
%{_mingw32_qt6_bindir}/libQt6QuickDialogs2Utils-%{_soversion}.dll

%files -n mingw32-qt6-quickdialogs2utils-devel
%{_mingw32_qt6_cmakedir}/Qt6QuickDialogs2Utils/
%{_mingw32_qt6_descriptionsdir}/QuickDialogs2Utils.json
%{_mingw32_qt6_includedir}/QtQuickDialogs2Utils/
%{_mingw32_qt6_libdir}/Qt6QuickDialogs2Utils.prl
%{_mingw32_qt6_libdir}/libQt6QuickDialogs2Utils.dll.a
%{_mingw32_qt6_metatypesdir}/qt6quickdialogs2utils_*.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quickdialogs2utils.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6QuickDialogs2Utils.pc
%exclude %{_mingw32_qt6_includedir}/QtQuickDialogs2Utils/%{real_version}

%files -n mingw32-qt6-quickdialogs2utils-private-devel
%{_mingw32_qt6_includedir}/QtQuickDialogs2Utils/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quickdialogs2utils_private.pri

%files -n mingw32-libQt6QuickLayouts%{_soversion}
%{_mingw32_qt6_bindir}/libQt6QuickLayouts-%{_soversion}.dll

%files -n mingw32-qt6-quicklayouts-devel
%{_mingw32_qt6_cmakedir}/Qt6QuickLayouts/
%{_mingw32_qt6_descriptionsdir}/QuickLayouts.json
%{_mingw32_qt6_includedir}/QtQuickLayouts/
%{_mingw32_qt6_libdir}/Qt6QuickLayouts.prl
%{_mingw32_qt6_libdir}/libQt6QuickLayouts.dll.a
%{_mingw32_qt6_metatypesdir}/qt6quicklayouts_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quicklayouts.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6QuickLayouts.pc
%exclude %{_mingw32_qt6_includedir}/QtQuickLayouts/%{real_version}

%files -n mingw32-qt6-quicklayouts-private-devel
%{_mingw32_qt6_includedir}/QtQuickLayouts/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quicklayouts_private.pri

%files -n mingw32-libQt6QuickTemplates2-%{_soversion}
%{_mingw32_qt6_bindir}/libQt6QuickTemplates2-%{_soversion}.dll

%files -n mingw32-qt6-quicktemplates2-devel
%{_mingw32_qt6_cmakedir}/Qt6QuickTemplates2/
%{_mingw32_qt6_descriptionsdir}/QuickTemplates2.json
%{_mingw32_qt6_includedir}/QtQuickTemplates2/
%{_mingw32_qt6_libdir}/Qt6QuickTemplates2.prl
%{_mingw32_qt6_libdir}/libQt6QuickTemplates2.dll.a
%{_mingw32_qt6_metatypesdir}/qt6quicktemplates2_*.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quicktemplates2.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6QuickTemplates2.pc
%exclude %{_mingw32_qt6_includedir}/QtQuickTemplates2/%{real_version}

%files -n mingw32-qt6-quicktemplates2-private-devel
%{_mingw32_qt6_includedir}/QtQuickTemplates2/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quicktemplates2_private.pri

%files -n mingw32-libQt6QuickTest%{_soversion}
%{_mingw32_qt6_bindir}/libQt6QuickTest-%{_soversion}.dll

%files -n mingw32-qt6-quicktest-devel
%{_mingw32_qt6_cmakedir}/Qt6QuickTest/
%{_mingw32_qt6_descriptionsdir}/QuickTest.json
%{_mingw32_qt6_includedir}/QtQuickTest/
%{_mingw32_qt6_libdir}/Qt6QuickTest.prl
%{_mingw32_qt6_libdir}/libQt6QuickTest.dll.a
%{_mingw32_qt6_metatypesdir}/qt6quicktest_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmltest.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6QuickTest.pc
%exclude %{_mingw32_qt6_includedir}/QtQuickTest/%{real_version}

%files -n mingw32-qt6-quicktest-private-devel
%{_mingw32_qt6_includedir}/QtQuickTest/%{real_version}/
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmltest_private.pri

%if %quickwidgets
%files -n mingw32-libQt6QuickWidgets%{_soversion}
%{_mingw32_qt6_bindir}/libQt6QuickWidgets-%{_soversion}.dll

%files -n mingw32-qt6-quickwidgets-devel
%{_mingw32_qt6_cmakedir}/Qt6QuickWidgets/
%{_mingw32_qt6_descriptionsdir}/QuickWidgets.json
%{_mingw32_qt6_includedir}/QtQuickWidgets/
%{_mingw32_qt6_libdir}/Qt6QuickWidgets.prl
%{_mingw32_qt6_libdir}/libQt6QuickWidgets.dll.a
%{_mingw32_qt6_metatypesdir}/qt6quickwidgets_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quickwidgets.pri
%{_mingw32_qt6_pkgconfigdir}/Qt6QuickWidgets.pc
%exclude %{_mingw32_qt6_includedir}/QtQuickWidgets/%{real_version}

%files -n mingw32-qt6-quickwidgets-private-devel
%{_mingw32_qt6_includedir}/QtQuickWidgets/%{real_version}
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quickwidgets_private.pri
%endif

### Private only libraries ###

%files -n mingw32-libQt6QuickEffects%{_soversion}
%{_mingw32_qt6_bindir}/libQt6QuickEffects-%{_soversion}.dll

%files -n mingw32-qt6-quickeffects-private-devel
%{_mingw32_qt6_cmakedir}/Qt6QuickEffectsPrivate/
%{_mingw32_qt6_descriptionsdir}/QuickEffectsPrivate.json
%{_mingw32_qt6_includedir}/QtQuickEffects/
%{_mingw32_qt6_libdir}/Qt6QuickEffects.prl
%{_mingw32_qt6_libdir}/libQt6QuickEffects.dll.a
%{_mingw32_qt6_metatypesdir}/qt6quickeffectsprivate_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quickeffects_private.pri

%files -n mingw32-libQt6QuickParticles%{_soversion}
%{_mingw32_qt6_bindir}/libQt6QuickParticles-%{_soversion}.dll

%files -n mingw32-qt6-quickparticles-private-devel
%{_mingw32_qt6_cmakedir}/Qt6QuickParticlesPrivate/
%{_mingw32_qt6_descriptionsdir}/QuickParticlesPrivate.json
%{_mingw32_qt6_includedir}/QtQuickParticles/
%{_mingw32_qt6_libdir}/Qt6QuickParticles.prl
%{_mingw32_qt6_libdir}/libQt6QuickParticles.dll.a
%{_mingw32_qt6_metatypesdir}/qt6quickparticlesprivate_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quickparticles_private.pri

%files -n mingw32-libQt6QuickShapes%{_soversion}
%{_mingw32_qt6_bindir}/libQt6QuickShapes-%{_soversion}.dll

%files -n mingw32-qt6-quickshapes-private-devel
%{_mingw32_qt6_cmakedir}/Qt6QuickShapesPrivate/
%{_mingw32_qt6_descriptionsdir}/QuickShapesPrivate.json
%{_mingw32_qt6_includedir}/QtQuickShapes/
%{_mingw32_qt6_libdir}/Qt6QuickShapes.prl
%{_mingw32_qt6_libdir}/libQt6QuickShapes.dll.a
%{_mingw32_qt6_metatypesdir}/qt6quickshapesprivate_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quickshapes_private.pri

### Static libraries ###

%files -n mingw32-qt6-packetprotocol-devel-static
%{_mingw32_qt6_cmakedir}/Qt6PacketProtocolPrivate/
%{_mingw32_qt6_descriptionsdir}/PacketProtocolPrivate.json
%{_mingw32_qt6_includedir}/QtPacketProtocol/
%{_mingw32_qt6_libdir}/libQt6PacketProtocol.a
%{_mingw32_qt6_libdir}/Qt6PacketProtocol.prl
%{_mingw32_qt6_metatypesdir}/qt6packetprotocolprivate_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_packetprotocol_private.pri

%files -n mingw32-qt6-qmldebug-devel-static
%{_mingw32_qt6_cmakedir}/Qt6QmlDebugPrivate/
%{_mingw32_qt6_descriptionsdir}/QmlDebugPrivate.json
%{_mingw32_qt6_includedir}/QtQmlDebug/
%{_mingw32_qt6_libdir}/libQt6QmlDebug.a
%{_mingw32_qt6_libdir}/Qt6QmlDebug.prl
%{_mingw32_qt6_metatypesdir}/qt6qmldebugprivate_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmldebug_private.pri

%files -n mingw32-qt6-qmldom-devel-static
%{_mingw32_qt6_cmakedir}/Qt6QmlDomPrivate/
%{_mingw32_qt6_descriptionsdir}/QmlDomPrivate.json
%{_mingw32_qt6_includedir}/QtQmlDom/
%{_mingw32_qt6_libdir}/libQt6QmlDom.a
%{_mingw32_qt6_libdir}/Qt6QmlDom.prl
%{_mingw32_qt6_metatypesdir}/qt6qmldomprivate_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmldom_private.pri

%if %qmlls
%files -n mingw32-qt6-qmlls-devel-static
%{_mingw32_qt6_cmakedir}/Qt6QmlLSPrivate/
%{_mingw32_qt6_descriptionsdir}/QmlLSPrivate.json
%{_mingw32_qt6_includedir}/QtQmlLS/
%{_mingw32_qt6_libdir}/libQt6QmlLS.a
%{_mingw32_qt6_libdir}/libQt6QmlLS.prl
%{_mingw32_qt6_metatypesdir}/qt6qmllsprivate_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmlls_private.pri
%endif

%files -n mingw32-qt6-qmltoolingsettings-devel-static
%{_mingw32_qt6_cmakedir}/Qt6QmlToolingSettingsPrivate/
%{_mingw32_qt6_descriptionsdir}/QmlToolingSettingsPrivate.json
%{_mingw32_qt6_includedir}/QtQmlToolingSettings/
%{_mingw32_qt6_libdir}/libQt6QmlToolingSettings.a
%{_mingw32_qt6_libdir}/Qt6QmlToolingSettings.prl
%{_mingw32_qt6_metatypesdir}/qt6qmltoolingsettingsprivate_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmltoolingsettings_private.pri

%files -n mingw32-qt6-qmltyperegistrar-devel-static
%{_mingw32_qt6_cmakedir}/Qt6QmlTypeRegistrarPrivate/
%{_mingw32_qt6_descriptionsdir}/QmlTypeRegistrarPrivate.json
%{_mingw32_qt6_includedir}/QtQmlTypeRegistrar/
%{_mingw32_qt6_libdir}/libQt6QmlTypeRegistrar.a
%{_mingw32_qt6_libdir}/Qt6QmlTypeRegistrar.prl
%{_mingw32_qt6_metatypesdir}/qt6qmltyperegistrarprivate_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_qmltyperegistrar_private.pri

%files -n mingw32-qt6-quickcontrolstestutils-devel-static
%{_mingw32_qt6_cmakedir}/Qt6QuickControlsTestUtilsPrivate/
%{_mingw32_qt6_descriptionsdir}/QuickControlsTestUtilsPrivate.json
%{_mingw32_qt6_includedir}/QtQuickControlsTestUtils/
%{_mingw32_qt6_libdir}/libQt6QuickControlsTestUtils.a
%{_mingw32_qt6_libdir}/Qt6QuickControlsTestUtils.prl
%{_mingw32_qt6_metatypesdir}/qt6quickcontrolstestutilsprivate_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quickcontrolstestutilsprivate_private.pri

%files -n mingw32-qt6-quicktestutils-devel-static
%{_mingw32_qt6_cmakedir}/Qt6QuickTestUtilsPrivate/
%{_mingw32_qt6_descriptionsdir}/QuickTestUtilsPrivate.json
%{_mingw32_qt6_includedir}/QtQuickTestUtils/
%{_mingw32_qt6_libdir}/libQt6QuickTestUtils.a
%{_mingw32_qt6_libdir}/Qt6QuickTestUtils.prl
%{_mingw32_qt6_metatypesdir}/qt6quicktestutilsprivate_*_metatypes.json
%{_mingw32_qt6_mkspecsdir}/modules/qt_lib_quicktestutilsprivate_private.pri

%else

%pre -n mingw32-qt6-declarative-docs-qch -f qch.pre

%files -n mingw32-qt6-declarative-docs-html
%dir %{_mingw32_qt6_docdir}
%{_mingw32_qt6_docdir}/*
%exclude %{_mingw32_qt6_docdir}/*.qch

%files -n mingw32-qt6-declarative-docs-qch
%dir %{_mingw32_qt6_docdir}
%{_mingw32_qt6_docdir}/*.qch

%endif

%changelog
openSUSE Build Service is sponsored by