Christophe Marin 2024-12-04 08:27:53 +00:00 committed by Git OBS Bridge
commit f525391793
16 changed files with 1024 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

33
_constraints Normal file
View File

@ -0,0 +1,33 @@
<constraints>
<hardware>
<disk>
<size unit="G">5</size>
</disk>
</hardware>
<overwrite>
<conditions>
<arch>x86_64</arch>
<arch>ppc64</arch>
<arch>ppc64le</arch>
</conditions>
<hardware>
<memory>
<size unit="G">5</size>
</memory>
</hardware>
</overwrite>
<!-- relax constraints for qt6-tools:docs -->
<overwrite>
<conditions>
<package>qt6-tools:docs</package>
</conditions>
<hardware>
<disk>
<size unit="G">2</size>
</disk>
<memory>
<size unit="G">3</size>
</memory>
</hardware>
</overwrite>
</constraints>

4
_multibuild Normal file
View File

@ -0,0 +1,4 @@
<multibuild>
<flavor>docs</flavor>
</multibuild>

52
fix-llvm19-build.patch Normal file
View File

@ -0,0 +1,52 @@
Should eventually be replaced by upstream fix, see https://bugreports.qt.io/browse/QTBUG-129146.
diff --git a/src/linguist/lupdate/clangtoolastreader.cpp b/src/linguist/lupdate/clangtoolastreader.cpp
index 6b85c6c..63ddf3d 100644
--- a/src/linguist/lupdate/clangtoolastreader.cpp
+++ b/src/linguist/lupdate/clangtoolastreader.cpp
@@ -782,7 +782,7 @@ bool LupdateVisitor::VisitNamedDecl(clang::NamedDecl *namedDeclaration)
if (!fullLocation.isValid() || !fullLocation.getFileEntry())
return true;
- if (!LupdatePrivate::isFileSignificant(fullLocation.getFileEntry()->getName().str()))
+ if (!LupdatePrivate::isFileSignificant(fullLocation.getFileEntry()->tryGetRealPathName().str()))
return true;
qCDebug(lcClang) << "NamedDecl Name: " << QString::fromStdString(namedDeclaration->getQualifiedNameAsString());
diff --git a/src/qdoc/qdoc/src/qdoc/clangcodeparser.cpp b/src/qdoc/qdoc/src/qdoc/clangcodeparser.cpp
index bd3cc63..c5ec3d4 100644
--- a/src/qdoc/qdoc/src/qdoc/clangcodeparser.cpp
+++ b/src/qdoc/qdoc/src/qdoc/clangcodeparser.cpp
@@ -168,7 +168,11 @@ static std::string get_expression_as_string(const clang::Expr* expression, const
*/
static std::string get_default_value_initializer_as_string(const clang::TemplateTypeParmDecl* parameter) {
return (parameter && parameter->hasDefaultArgument()) ?
+#if LIBCLANG_VERSION_MAJOR >= 19
+ get_fully_qualified_type_name(parameter->getDefaultArgument().getTypeSourceInfo()->getType(), parameter->getASTContext()) :
+#else
get_fully_qualified_type_name(parameter->getDefaultArgument(), parameter->getASTContext()) :
+#endif
"";
}
@@ -184,7 +188,11 @@ static std::string get_default_value_initializer_as_string(const clang::Template
*/
static std::string get_default_value_initializer_as_string(const clang::NonTypeTemplateParmDecl* parameter) {
return (parameter && parameter->hasDefaultArgument()) ?
+#if LIBCLANG_VERSION_MAJOR >= 19
+ get_expression_as_string(parameter->getDefaultArgument().getLocInfo().getAsExpr(), parameter->getASTContext()) : "";
+#else
get_expression_as_string(parameter->getDefaultArgument(), parameter->getASTContext()) : "";
+#endif
}
@@ -204,7 +212,7 @@ static std::string get_default_value_initializer_as_string(const clang::Template
const clang::TemplateName template_name = parameter->getDefaultArgument().getArgument().getAsTemplate();
llvm::raw_string_ostream ss{default_value};
- template_name.print(ss, parameter->getASTContext().getPrintingPolicy(), clang::TemplateName::Qualified::Fully);
+ template_name.print(ss, parameter->getASTContext().getPrintingPolicy(), clang::TemplateName::Qualified::AsWritten);
}
return default_value;

BIN
linguist6.png (Stored with Git LFS) Normal file

Binary file not shown.

10
org.qt.assistant6.desktop Normal file
View File

@ -0,0 +1,10 @@
[Desktop Entry]
Categories=Qt;Development;Documentation;
Exec=assistant6
Name=Qt 6 Assistant
GenericName=Document Browser
X-KDE-StartupNotify=true
MimeType=application/x-assistant;
Terminal=false
Type=Application
Icon=assistant6

10
org.qt.designer6.desktop Normal file
View File

@ -0,0 +1,10 @@
[Desktop Entry]
Categories=Qt;Development;GUIDesigner;
Exec=designer6
Name=Qt 6 Designer
GenericName=Interface Designer
X-KDE-StartupNotify=true
MimeType=application/x-designer;
Icon=designer6
Terminal=false
Type=Application

10
org.qt.linguist6.desktop Normal file
View File

@ -0,0 +1,10 @@
[Desktop Entry]
Categories=Qt;Development;Translation;
Exec=linguist6
Name=Qt 6 Linguist
GenericName=Translation Tool
X-KDE-StartupNotify=true
MimeType=application/x-linguist;
Terminal=false
Type=Application
Icon=linguist6

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Categories=Qt;Development;Debugger;
Exec=qdbusviewer6
Name=Qt 6 D-Bus Viewer
GenericName=D-Bus Debugger
Comment=Introspect D-Bus objects and messages
X-KDE-StartupNotify=true
Terminal=false
Type=Application
Icon=qdbusviewer6

5
qt6-tools-rpmlintrc Normal file
View File

@ -0,0 +1,5 @@
# using fdupes on include directories means looking for troubles
addFilter("files-duplicate .*")
# library and development package names don't match
addFilter("no-dependency-on .*")

366
qt6-tools.changes Normal file
View File

@ -0,0 +1,366 @@
-------------------------------------------------------------------
Mon Dec 2 13:02:14 UTC 2024 - Christophe Marin <christophe@krop.fr>
- Update to 6.8.1:
* https://www.qt.io/blog/qt-6.8.1-released
-------------------------------------------------------------------
Mon Nov 11 14:53:49 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Reintroduce proper %requires_eq on libclang, it's needed to ensure
that qdoc pulls in a libclang suitable for the used libclang-cpp.
-------------------------------------------------------------------
Mon Nov 4 11:58:21 UTC 2024 - Christophe Marin <christophe@krop.fr>
- Fix qdoc runtime dependency
-------------------------------------------------------------------
Tue Oct 8 09:29:54 UTC 2024 - Christophe Marin <christophe@krop.fr>
- Update to 6.8.0:
* https://www.qt.io/blog/qt-6.8-released
- Drop patch, no longer needed:
* fix-llvm19-build.patch
-------------------------------------------------------------------
Sat Sep 28 08:23:10 UTC 2024 - Christophe Marin <christophe@krop.fr>
- Update to 6.7.3
* https://www.qt.io/blog/qt-6.7.3-released
-------------------------------------------------------------------
Tue Sep 24 21:22:32 UTC 2024 - Aaron Puchert <aaronpuchert@alice-dsl.net>
- Add fix-llvm19-build.patch to fix build with LLVM 19. Upstream
report is at https://bugreports.qt.io/browse/QTBUG-129146.
-------------------------------------------------------------------
Wed Jun 19 07:26:03 UTC 2024 - Christophe Marin <christophe@krop.fr>
- Update to 6.7.2:
* https://www.qt.io/blog/qt-6.7.2-released
-------------------------------------------------------------------
Tue May 21 08:31:49 UTC 2024 - Christophe Marin <christophe@krop.fr>
- Update to 6.7.1:
* https://www.qt.io/blog/qt-6.7.1-released
-------------------------------------------------------------------
Tue Apr 2 13:40:00 UTC 2024 - Christophe Marin <christophe@krop.fr>
- Update to 6.7.0:
* https://www.qt.io/blog/qt-6.7-released
-------------------------------------------------------------------
Tue Mar 26 14:26:58 UTC 2024 - Christophe Marin <christophe@krop.fr>
- Update to 6.6.3:
* https://www.qt.io/blog/qt-6.6.3-released
-------------------------------------------------------------------
Wed Feb 14 16:53:34 UTC 2024 - Christophe Marin <christophe@krop.fr>
- Update to 6.6.2
* https://www.qt.io/blog/qt-6.6.2-released
-------------------------------------------------------------------
Wed Jan 10 18:47:55 UTC 2024 - Antonio Larrosa <alarrosa@suse.com>
- Fix build in SLE15 SP6 by using clang17-devel
-------------------------------------------------------------------
Mon Nov 27 14:00:20 UTC 2023 - Christophe Marin <christophe@krop.fr>
- Update to 6.6.1:
* https://www.qt.io/blog/qt-6.6.1-released
-------------------------------------------------------------------
Tue Oct 10 09:40:01 UTC 2023 - Christophe Marin <christophe@krop.fr>
- Update to 6.6.0
* https://www.qt.io/blog/qt-6.6-released
-------------------------------------------------------------------
Thu Sep 28 07:34:22 UTC 2023 - Christophe Marin <christophe@krop.fr>
- Update to 6.5.3
* https://www.qt.io/blog/qt-6.5.3-released
-------------------------------------------------------------------
Thu Jul 20 09:07:20 UTC 2023 - Christophe Marin <christophe@krop.fr>
- Update to 6.5.2
* https://www.qt.io/blog/qt-6.5.2-released-1
-------------------------------------------------------------------
Fri Jun 30 15:13:16 UTC 2023 - Christophe Marin <christophe@krop.fr>
- Update subpackages requirements
-------------------------------------------------------------------
Wed Jun 21 01:27:39 UTC 2023 - Christophe Marin <christophe@krop.fr>
- Also use llvm 15 on Leap 15.4. A new llvm version was submitted
to 15.4 which caused crashes when trying to run qdoc with an
older version.
-------------------------------------------------------------------
Wed May 24 07:45:44 UTC 2023 - Christophe Marin <christophe@krop.fr>
- Update to 6.5.1
* https://www.qt.io/blog/qt-6.5.1-released
-------------------------------------------------------------------
Mon Apr 3 10:02:50 UTC 2023 - Christophe Marin <christophe@krop.fr>
- Update to 6.5.0
* https://www.qt.io/blog/qt-6.5-lts-released
-------------------------------------------------------------------
Thu Mar 16 10:00:10 UTC 2023 - Christophe Marin <christophe@krop.fr>
- Update to 6.4.3:
* https://www.qt.io/blog/qt-6.4.3-released
-------------------------------------------------------------------
Wed Jan 11 20:07:37 UTC 2023 - Antonio Larrosa <alarrosa@suse.com>
- Leap 15.4 doesn't have llvm11 but llvm13 so just use that in
SP4 and llvm15 in SP5.
-------------------------------------------------------------------
Wed Jan 11 19:29:26 UTC 2023 - Antonio Larrosa <alarrosa@suse.com>
- Fix condition to use llvm11 in SLE 15 SP5 instead of the default
llvm7.
-------------------------------------------------------------------
Fri Jan 6 16:46:53 UTC 2023 - Christophe Marin <christophe@krop.fr>
- Update to 6.4.2:
* https://www.qt.io/blog/qt-6.4.2-released
-------------------------------------------------------------------
Tue Nov 15 11:53:25 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.4.1:
* https://www.qt.io/blog/qt-6.4.1-released
- Drop patch, fixed upstream:
* 0001-lupdate-Fix-build-with-clang-15.patch
-------------------------------------------------------------------
Sat Oct 8 06:49:06 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>
- Add patch to fix build with clang 15:
* 0001-lupdate-Fix-build-with-clang-15.patch
-------------------------------------------------------------------
Thu Sep 29 10:36:06 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.4.0:
* https://www.qt.io/blog/qt-6.4-released
-------------------------------------------------------------------
Fri Sep 16 08:29:22 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.4.0 RC
-------------------------------------------------------------------
Fri Sep 9 12:41:48 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.3.2:
* https://www.qt.io/blog/qt-6.3.2-released
-------------------------------------------------------------------
Fri Jun 17 15:15:39 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.3.1:
* https://www.qt.io/blog/qt-6.3.1-released
-------------------------------------------------------------------
Fri Apr 8 11:57:01 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.3.0:
* https://www.qt.io/blog/qt-6.3-released
-------------------------------------------------------------------
Tue Mar 29 12:28:42 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.3.0-rc
-------------------------------------------------------------------
Mon Mar 21 08:46:43 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.2.4
* https://www.qt.io/blog/qt-6.2.4-released
-------------------------------------------------------------------
Mon Jan 31 08:54:55 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.2.3:
* https://www.qt.io/blog/qt-6.2.3-released
-------------------------------------------------------------------
Wed Dec 22 13:42:30 UTC 2021 - Antonio Larrosa <alarrosa@suse.com>
- Use clang11 in SLE15 SP4 and newer too, not just in SLE15 SP3
-------------------------------------------------------------------
Wed Dec 1 10:06:30 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.2.2
* https://www.qt.io/blog/qt-6.2.2-released
- Make sure all dependencies are present when installing devel
packages. Qt >= 6.2.2 is much less permissive.
-------------------------------------------------------------------
Tue Oct 26 11:22:59 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.2.1
* https://www.qt.io/blog/qt-6.2.1-released
-------------------------------------------------------------------
Thu Sep 30 12:30:23 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.2.0:
* https://www.qt.io/blog/qt-6.2-lts-released
-------------------------------------------------------------------
Sat Sep 25 07:18:43 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.2.0-rc2
-------------------------------------------------------------------
Thu Sep 16 14:08:06 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.2.0-rc
-------------------------------------------------------------------
Thu Sep 9 14:05:30 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.2.0-beta4
-------------------------------------------------------------------
Wed Sep 1 13:03:52 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.1.3:
* https://www.qt.io/blog/qt-6.1.3-released
-------------------------------------------------------------------
Fri Jul 2 14:08:22 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.1.2. New bugfix release:
* https://www.qt.io/blog/qt-6.1.2-released
-------------------------------------------------------------------
Tue Jun 8 05:54:20 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.1.1:
* https://www.qt.io/blog/qt-6.1.1-released
-------------------------------------------------------------------
Thu May 6 17:10:41 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.1.0:
* https://www.qt.io/blog/qt-6.1-released
-------------------------------------------------------------------
Fri Apr 23 14:11:43 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.1.0-rc.
-------------------------------------------------------------------
Tue Apr 13 06:29:29 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.1.0-beta3.
-------------------------------------------------------------------
Wed Mar 31 13:43:10 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.0.3
* https://www.qt.io/blog/qt-6.0.3-released
-------------------------------------------------------------------
Mon Mar 22 17:21:47 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Work around boo#1179155 and explicitly require clang11
for Leap 15.3.
-------------------------------------------------------------------
Fri Mar 19 15:34:32 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.1.0-beta2
-------------------------------------------------------------------
Thu Mar 18 14:24:03 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Update _constraints
-------------------------------------------------------------------
Tue Mar 9 14:47:35 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.1.0-beta1
https://www.qt.io/blog/qt-6.1-beta-released
-------------------------------------------------------------------
Tue Mar 9 13:40:47 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.0.2:
https://www.qt.io/blog/qt-6.0.2-released
-------------------------------------------------------------------
Wed Feb 3 21:18:12 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.0.1
https://www.qt.io/blog/qt-6.0.1-released
-------------------------------------------------------------------
Wed Dec 16 11:26:13 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
- Use a different 'Name' when building the docs flavor.
-------------------------------------------------------------------
Tue Dec 8 14:09:34 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.0.0:
* https://www.qt.io/blog/qt-6.0-released
-------------------------------------------------------------------
Wed Dec 2 12:09:05 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
- Qt 6.0.0 RC2
-------------------------------------------------------------------
Wed Nov 25 14:40:08 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.0.0~rc1
-------------------------------------------------------------------
Tue Nov 17 07:26:29 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.0.0~beta5
-------------------------------------------------------------------
Tue Nov 10 20:34:59 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.0.0~beta4
-------------------------------------------------------------------
Tue Oct 20 07:47:15 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.0.0beta1
https://www.qt.io/blog/qt-6.0-beta-released
-------------------------------------------------------------------
Tue Oct 6 21:15:14 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 6.0.0-alpha
https://www.qt.io/blog/qt-6.0-alpha-released
-------------------------------------------------------------------
Wed Feb 5 15:08:13 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
- Add qt6-tools

488
qt6-tools.spec Normal file
View File

@ -0,0 +1,488 @@
#
# spec file for package qt6-tools
#
# 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/
#
%define real_version 6.8.1
%define short_version 6.8
%define tar_name qttools-everywhere-src
%define tar_suffix %{nil}
#
%global qt6_flavor @BUILD_FLAVOR@%{nil}
%if "%{qt6_flavor}" == "docs"
%define pkg_suffix -docs
%endif
#
Name: qt6-tools%{?pkg_suffix}
Version: 6.8.1
Release: 0
Summary: Qt 6 Tools libraries and tools
# TODO Check if it's still valid
# Legal:
# most src/ subfolders are GPL-3.0-only WITH Qt-GPL-exception-1.0, except:
# qdoc is GPL-3.0-only WITH Qt-GPL-exception-1.0 + (LGPL-3.0-only OR (GPL-2.0-only OR GPL-3.0-or-later)) == GPL-3.0-only
# src/shared contains BSD-3-Clause and LGPL-3.0-only OR (GPL-2.0-only OR GPL-3.0-or-later) files. The
# 'GPL-3.0-only WITH Qt-GPL-exception-1.0' files in this folder are only used on Windows.
License: LGPL-3.0-only OR (GPL-2.0-only OR GPL-3.0-or-later) AND GPL-3.0-only WITH Qt-GPL-exception-1.0
URL: https://www.qt.io
Source0: https://download.qt.io/official_releases/qt/%{short_version}/%{real_version}%{tar_suffix}/submodules/%{tar_name}-%{real_version}%{tar_suffix}.tar.xz
Source10: org.qt.designer6.desktop
Source11: org.qt.linguist6.desktop
Source12: org.qt.qdbusviewer6.desktop
Source13: org.qt.assistant6.desktop
# The 48x48 icon was removed from qttools
Source14: linguist6.png
Source99: qt6-tools-rpmlintrc
# clang-devel in Leap 15 points to clang7...
%if 0%{?suse_version} == 1500
BuildRequires: clang17-devel
%else
BuildRequires: clang-devel >= 17
%endif
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: qt6-core-private-devel
BuildRequires: qt6-dbus-private-devel
BuildRequires: qt6-gui-private-devel
BuildRequires: qt6-qml-private-devel
BuildRequires: qt6-quick-private-devel
BuildRequires: qt6-widgets-private-devel
BuildRequires: update-desktop-files
BuildRequires: cmake(Qt6Concurrent) = %{real_version}
BuildRequires: cmake(Qt6Core) = %{real_version}
BuildRequires: cmake(Qt6DBus) = %{real_version}
BuildRequires: cmake(Qt6Gui) = %{real_version}
BuildRequires: cmake(Qt6Network) = %{real_version}
BuildRequires: cmake(Qt6OpenGL) = %{real_version}
BuildRequires: cmake(Qt6OpenGLWidgets) = %{real_version}
BuildRequires: cmake(Qt6PrintSupport) = %{real_version}
BuildRequires: cmake(Qt6QmlLSPrivate) = %{real_version}
BuildRequires: cmake(Qt6Quick) = %{real_version}
BuildRequires: cmake(Qt6QuickWidgets) = %{real_version}
BuildRequires: cmake(Qt6Sql) = %{real_version}
BuildRequires: cmake(Qt6Widgets) = %{real_version}
BuildRequires: cmake(Qt6Xml) = %{real_version}
BuildRequires: pkgconfig(libzstd) >= 1.3
# These packages are required to generate documentation for the Qt packages
Requires: qt6-tools-helpgenerators
Requires: qt6-tools-qdoc
Recommends: qt6-tools-assistant
Recommends: qt6-tools-designer
Recommends: qt6-tools-linguist
Recommends: qt6-tools-qdbus
%if "%{qt6_flavor}" == "docs"
BuildRequires: qt6-tools
%{qt6_doc_packages}
%endif
%description
The QtTools modules contains some tools mostly useful for application
development.
Included are Qt Designer (GUI design), QDbusViewer and more.
%if !%{qt6_docs_flavor}
%package devel
Summary: Qt 6 Tools libraries - Development files
Requires: qt6-tools = %{version}
Requires: qt6-tools-helpgenerators = %{version}
Requires: qt6-tools-qdoc = %{version}
%description devel
Development files for the Qt6 tools libraries.
%package private-devel
Summary: Non-ABI stable API for the Qt 6 tools libraries
%description private-devel
This package provides private headers of qt6-tools that do not have any
ABI or API guarantees.
%package -n libQt6Designer6
Summary: Qt 6 Designer library
License: GPL-3.0-only WITH Qt-GPL-exception-1.0
%description -n libQt6Designer6
This package contains the Qt 6 Designer Library.
%package -n qt6-designer-devel
Summary: Qt 6 Designer libraries - Development files
Requires: libQt6Designer6 = %{version}
Requires: cmake(Qt6Gui) = %{real_version}
Requires: cmake(Qt6OpenGL) = %{real_version}
Requires: cmake(Qt6OpenGLWidgets) = %{real_version}
Requires: cmake(Qt6Widgets) = %{real_version}
Requires: cmake(Qt6Xml) = %{real_version}
%description -n qt6-designer-devel
Development files for the Qt6 Designer libraries.
%package -n qt6-designer-private-devel
Summary: Non-ABI stable API for the Qt 6 Designer libraries
Requires: cmake(Qt6Designer) = %{real_version}
%requires_eq qt6-core-private-devel
%requires_eq qt6-gui-private-devel
%requires_eq qt6-widgets-private-devel
%description -n qt6-designer-private-devel
This package provides private headers of libQt6Designer that do not have any
ABI or API guarantees.
%package -n libQt6Help6
Summary: Qt 6 Help library
%description -n libQt6Help6
This package contains the Qt 6 Help library.
%package -n qt6-help-devel
Summary: Qt 6 Help library - Development files
Requires: libQt6Help6 = %{version}
Requires: cmake(Qt6Gui) = %{real_version}
Requires: cmake(Qt6Network) = %{real_version}
Requires: cmake(Qt6Sql) = %{real_version}
Requires: cmake(Qt6Widgets) = %{real_version}
%description -n qt6-help-devel
Development files for the Qt6 Help library.
%package -n qt6-help-private-devel
Summary: Non-ABI stable API for the Qt 6 Help library
Requires: cmake(Qt6Help) = %{real_version}
%requires_eq qt6-core-private-devel
%description -n qt6-help-private-devel
This package provides private headers of libQt6Help that do not have any
ABI or API guarantees.
%package -n libQt6UiTools6
Summary: Qt 6 UiTools library
%description -n libQt6UiTools6
This package contains the Qt 6 UiTools library.
%package -n qt6-uitools-devel
Summary: Qt 6 UiTools library - Development files
Requires: libQt6UiTools6 = %{version}
Requires: cmake(Qt6Gui) = %{real_version}
Requires: cmake(Qt6OpenGL) = %{real_version}
Requires: cmake(Qt6OpenGLWidgets) = %{real_version}
Requires: cmake(Qt6UiPlugin) = %{real_version}
Requires: cmake(Qt6Widgets) = %{real_version}
# qt6uitools_*_metatypes.json location fixed
Conflicts: qt6-designer-devel < 6.2.2
%description -n qt6-uitools-devel
Development files for the Qt6 UiTools library.
%package -n qt6-uitools-private-devel
Summary: Non-ABI stable API for the Qt 6 UiTools library
Requires: cmake(Qt6UiTools) = %{real_version}
%description -n qt6-uitools-private-devel
This package provides private headers of libQt6UiTools that do not have any
ABI or API guarantees.
%package assistant
Summary: Documentation browser
%description assistant
Qt Assistant is a tool for viewing documentation in Qt help file format.
%package designer
Summary: Qt graphical interface creation tool
%description designer
Qt Designer is a tool for designing and building graphical user interface
with Qt Widgets.
%package helpgenerators
Summary: Qt Help files generator
Requires: qt6-docs-common
# help files are SQLite databases, so qhelpgenerator needs the SQLite plugin
Requires: qt6-sql-sqlite
%description helpgenerators
Qt 6 tool for generating .qch help catalogs.
%package linguist
Summary: Translation tool for Qt applications
%description linguist
Qt Linguist can be used by translator to translate text in Qt applications.
%package -n qt6-linguist-devel
Summary: Qt 6 linguist tools - Development files
# Executables are required
Requires: qt6-tools-linguist = %{version}
%description -n qt6-linguist-devel
Development files for the Qt 6 linguist tools.
%package qdbus
Summary: Command line client for communication over D-Bus
License: GPL-3.0-only WITH Qt-GPL-exception-1.0
%description qdbus
Command line client for communication over D-Bus.
%package qdoc
Summary: Qt 6 Tool used by Qt to generate documentation
License: GPL-3.0-only
# qdoc hardcodes clang include paths: boo#1109367, QTBUG-70687
%requires_eq libclang%{_libclang_sonum}
# Both qdoc and libclang link against libclang-cpp, so make sure it's compatible.
%requires_eq libclang-cpp%{_llvm_sonum}
%description qdoc
Qt 6 Tool used by Qt to generate documentation.
### Private only library ###
%package -n libQt6DesignerComponents6
Summary: Qt 6 DesignerComponents library
License: GPL-3.0-only WITH Qt-GPL-exception-1.0
%description -n libQt6DesignerComponents6
The Qt 6 DesignerComponents library.
This library does not have any ABI or API guarantees.
%package -n qt6-designercomponents-private-devel
Summary: Development files for the Qt 6 DesignerComponents library
Requires: libQt6DesignerComponents6 = %{version}
Requires: qt6-designer-private-devel = %{version}
Requires: cmake(Qt6Core) = %{real_version}
Requires: cmake(Qt6Xml) = %{real_version}
%requires_eq qt6-gui-private-devel
%requires_eq qt6-widgets-private-devel
%description -n qt6-designercomponents-private-devel
Development files for the Qt 6 DesignerComponents library.
This library does not have any ABI or API guarantees.
%{qt6_examples_package}
%endif
%prep
%autosetup -p1 -n %{tar_name}-%{real_version}%{tar_suffix}
%build
%cmake_qt6 \
-DQT_GENERATE_SBOM:BOOL=FALSE \
-DBUILD_TESTING:BOOL=FALSE
%{qt6_build}
%install
%{qt6_install}
%if !%{qt6_docs_flavor}
%{qt6_link_executables}
# CMake files are not needed for plugins (except for Qt6UiPlugin)
rm %{buildroot}%{_qt6_cmakedir}/Qt6Designer/*Plugin{Config,Targets}*.cmake
rm %{buildroot}%{_qt6_cmakedir}/Qt6Help/*Plugin{Config,Targets}*.cmake
# This doesn't look useful
rm -r %{buildroot}%{_qt6_includedir}/QtQDocCatch*
rm -r %{buildroot}%{_qt6_cmakedir}/Qt6QDocCatch*
rm %{buildroot}%{_qt6_mkspecsdir}/modules/qt_lib_qdoccatch*.pri
rm %{buildroot}%{_qt6_descriptionsdir}/QDocCatch*.json
# Desktop files for applications
%suse_update_desktop_file -i org.qt.assistant6
%suse_update_desktop_file -i org.qt.designer6
%suse_update_desktop_file -i org.qt.linguist6
rm %{buildroot}%{_datadir}/pixmaps/linguist6.png
%suse_update_desktop_file -i org.qt.qdbusviewer6
# Icons for the desktop files
install -D -m644 src/designer/src/designer/images/designer.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/designer6.png
install -D -m644 %{SOURCE14} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/linguist6.png
install -D -m644 src/linguist/linguist/images/icons/linguist-128-32.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/linguist6.png
install -D -m644 src/qdbus/qdbusviewer/images/qdbusviewer.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/qdbusviewer6.png
install -D -m644 src/qdbus/qdbusviewer/images/qdbusviewer-128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/qdbusviewer6.png
install -D -m644 src/assistant/assistant/images/assistant.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/assistant6.png
install -D -m644 src/assistant/assistant/images/assistant-128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/assistant6.png
%ldconfig_scriptlets -n libQt6Designer6
%ldconfig_scriptlets -n libQt6DesignerComponents6
%ldconfig_scriptlets -n libQt6Help6
%ldconfig_scriptlets -n libQt6UiTools6
%files
%license LICENSES/*
%{_bindir}/pixeltool6
%{_bindir}/qdistancefieldgenerator6
%{_bindir}/qtdiag6
%{_bindir}/qtplugininfo6
%{_qt6_bindir}/pixeltool
%{_qt6_bindir}/qdistancefieldgenerator
%{_qt6_bindir}/qtdiag
%{_qt6_bindir}/qtplugininfo
%{_qt6_libexecdir}/qtattributionsscanner
%files devel
%{_qt6_cmakedir}/Qt6/FindWrapLibClang.cmake
%{_qt6_cmakedir}/Qt6BuildInternals/StandaloneTests/QtToolsTestsConfig.cmake
%{_qt6_cmakedir}/Qt6Tools/
%{_qt6_cmakedir}/Qt6ToolsTools/
%{_qt6_descriptionsdir}/Tools.json
%{_qt6_includedir}/QtTools/
%exclude %{_qt6_includedir}/QtTools/%{real_version}
%files private-devel
%{_qt6_includedir}/QtTools/%{real_version}/
%{_qt6_mkspecsdir}/modules/qt_lib_tools_private.pri
%files -n libQt6Designer6
%{_qt6_libdir}/libQt6Designer.so.*
%files -n qt6-designer-devel
%{_qt6_cmakedir}/Qt6Designer/
%{_qt6_cmakedir}/Qt6UiPlugin/
%{_qt6_descriptionsdir}/Designer.json
%{_qt6_descriptionsdir}/UiPlugin.json
%{_qt6_includedir}/QtDesigner/
%{_qt6_includedir}/QtUiPlugin/
%{_qt6_libdir}/libQt6Designer.prl
%{_qt6_libdir}/libQt6Designer.so
%{_qt6_metatypesdir}/qt6designer_*_metatypes.json
%{_qt6_mkspecsdir}/modules/qt_lib_designer.pri
%{_qt6_mkspecsdir}/modules/qt_lib_uiplugin.pri
%{_qt6_pkgconfigdir}/Qt6Designer.pc
%{_qt6_pkgconfigdir}/Qt6UiPlugin.pc
%exclude %{_qt6_includedir}/QtDesigner/%{real_version}
%files -n qt6-designer-private-devel
%{_qt6_includedir}/QtDesigner/%{real_version}/
%{_qt6_mkspecsdir}/modules/qt_lib_designer_private.pri
%files -n libQt6Help6
%{_qt6_libdir}/libQt6Help.so.*
%files -n qt6-help-devel
%{_qt6_cmakedir}/Qt6Help/
%{_qt6_descriptionsdir}/Help.json
%{_qt6_includedir}/QtHelp/
%{_qt6_libdir}/libQt6Help.prl
%{_qt6_libdir}/libQt6Help.so
%{_qt6_metatypesdir}/qt6help_*_metatypes.json
%{_qt6_mkspecsdir}/modules/qt_lib_help.pri
%{_qt6_pkgconfigdir}/Qt6Help.pc
%exclude %{_qt6_includedir}/QtHelp/%{real_version}
%files -n qt6-help-private-devel
%{_qt6_includedir}/QtHelp/%{real_version}/
%{_qt6_mkspecsdir}/modules/qt_lib_help_private.pri
%files -n libQt6UiTools6
%{_qt6_libdir}/libQt6UiTools.so.*
%files -n qt6-uitools-devel
%{_qt6_cmakedir}/Qt6UiTools/
%{_qt6_descriptionsdir}/UiTools.json
%{_qt6_includedir}/QtUiTools/
%{_qt6_libdir}/libQt6UiTools.prl
%{_qt6_libdir}/libQt6UiTools.so
%{_qt6_metatypesdir}/qt6uitools_*_metatypes.json
%{_qt6_mkspecsdir}/modules/qt_lib_uitools.pri
%{_qt6_pkgconfigdir}/Qt6UiTools.pc
%exclude %{_qt6_includedir}/QtUiTools/%{real_version}
%files -n qt6-uitools-private-devel
%{_qt6_includedir}/QtUiTools/%{real_version}/
%{_qt6_mkspecsdir}/modules/qt_lib_uitools_private.pri
%files assistant
%{_bindir}/assistant6
%{_datadir}/applications/org.qt.assistant6.desktop
%{_datadir}/icons/hicolor/128x128/apps/assistant6.png
%{_datadir}/icons/hicolor/32x32/apps/assistant6.png
%{_qt6_bindir}/assistant
%dir %{_qt6_pluginsdir}/help
%{_qt6_pluginsdir}/help/libhelpplugin.so
%files designer
%dir %{_qt6_pluginsdir}/designer
%{_bindir}/designer6
%{_datadir}/applications/org.qt.designer6.desktop
%{_datadir}/icons/hicolor/128x128/apps/designer6.png
%{_qt6_bindir}/designer
%{_qt6_pluginsdir}/designer/libcontainerextension.so
%{_qt6_pluginsdir}/designer/libcustomwidgetplugin.so
%{_qt6_pluginsdir}/designer/libqquickwidget.so
%{_qt6_pluginsdir}/designer/libtaskmenuextension.so
%files helpgenerators
%{_qt6_libexecdir}/qhelpgenerator
%files linguist
%dir %{_qt6_datadir}/phrasebooks
%{_bindir}/lconvert6
%{_bindir}/linguist6
%{_bindir}/lrelease6
%{_bindir}/lupdate6
%{_datadir}/applications/org.qt.linguist6.desktop
%{_datadir}/icons/hicolor/48x48/apps/linguist6.png
%{_datadir}/icons/hicolor/128x128/apps/linguist6.png
%{_qt6_bindir}/lconvert
%{_qt6_bindir}/linguist
%{_qt6_bindir}/lrelease
%{_qt6_bindir}/lupdate
%{_qt6_datadir}/phrasebooks/*.qph
%{_qt6_libexecdir}/lprodump
%{_qt6_libexecdir}/lrelease-pro
%{_qt6_libexecdir}/lupdate-pro
%files -n qt6-linguist-devel
%{_qt6_descriptionsdir}/Linguist.json
%{_qt6_cmakedir}/Qt6Linguist/
%{_qt6_cmakedir}/Qt6LinguistTools/
%{_qt6_mkspecsdir}/modules/qt_lib_linguist.pri
%{_qt6_pkgconfigdir}/Qt6Linguist.pc
%files qdbus
%{_bindir}/qdbus6
%{_bindir}/qdbusviewer6
%{_datadir}/applications/org.qt.qdbusviewer6.desktop
%{_datadir}/icons/hicolor/128x128/apps/qdbusviewer6.png
%{_datadir}/icons/hicolor/32x32/apps/qdbusviewer6.png
%{_qt6_bindir}/qdbus
%{_qt6_bindir}/qdbusviewer
%files qdoc
%{_bindir}/qdoc6
%{_qt6_bindir}/qdoc
### Private only library ###
%files -n libQt6DesignerComponents6
%{_qt6_libdir}/libQt6DesignerComponents.so.*
%files -n qt6-designercomponents-private-devel
%{_qt6_cmakedir}/Qt6DesignerComponentsPrivate/
%{_qt6_descriptionsdir}/DesignerComponentsPrivate.json
%{_qt6_includedir}/QtDesignerComponents/
%{_qt6_libdir}/libQt6DesignerComponents.prl
%{_qt6_libdir}/libQt6DesignerComponents.so
%{_qt6_metatypesdir}/qt6designercomponentsprivate_*_metatypes.json
%{_qt6_mkspecsdir}/modules/qt_lib_designercomponents_private.pri
%endif
%changelog

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f03bb7df619cd9ac9dba110e30b7bcab5dd88eb8bdc9cc752563b4367233203f
size 9022820

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:403115d8268503c6cc6e43310c8ae28eb9e605072a5d04e4a2de8b6af39981f7
size 9059032

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d43d409be08b8681a0155a9c65114b69c9a3fc11aef6487bb7fdc5b283c432d
size 10293192