diff --git a/.gitignore b/.gitignore index 544c3f8..a80f071 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ /qttools-everywhere-src-6.6.1.tar.xz /qttools-everywhere-src-6.7.0.tar.xz /qttools-everywhere-src-6.7.1.tar.xz +/qttools-everywhere-src-6.8.1.tar.xz diff --git a/io.qt.Designer.metainfo.xml b/io.qt.Designer.metainfo.xml new file mode 100644 index 0000000..af89f37 --- /dev/null +++ b/io.qt.Designer.metainfo.xml @@ -0,0 +1,45 @@ + + + + io.qt.Designer + Qt Designer + Design GUIs for Qt applications + Erstelle GUIs for Qt Anwendungen + + The Qt Company + + CC0-1.0 + LGPL-3.0-only + Qt + +

Qt Designer lets you created and edit .ui files for your Qt Widgets Application

+

Mit Qt Designer kannst du .ui Dateien für deine Qt Anwendung erstellen und bearbeiten

+
+ + + https://doc.qt.io/qt-6/images/designer-multiple-screenshot.png + + + https://doc.qt.io/qt-6/images/designer-screenshot.png + + + https://www.qt.io/ + https://bugreports.qt.io + https://doc.qt.io/qt-6/qtdesigner-manual.html + https://code.qt.io/cgit/qt/qttools.git/tree/src/designer + https://www.qt.io/community/contribute-to-qt + + Development + Qt + + + pointing + keyboard + + + qt6-designer.desktop + + designer + application/x-designer + +
diff --git a/io.qt.Linguist.metainfo.xml b/io.qt.Linguist.metainfo.xml new file mode 100644 index 0000000..f5fd3f5 --- /dev/null +++ b/io.qt.Linguist.metainfo.xml @@ -0,0 +1,43 @@ + + + + io.qt.Linguist + Qt Linguist + Add translations to Qt applications + Übersetzungen zu Qt Programmen hinzufügen + + The Qt Company + + CC0-1.0 + LGPL-3.0-only + Qt + +

Qt Linguist allows you to translate Qt applications

+

Qt Linguist erlaubt dir Übersetzung von Qt Programmen

+
+ + + The main window + Das Hauptfenster + https://raw.githubusercontent.com/flathub/io.qt.Linguist/78c853bd0488bf62e2042b2011d674e08dcf7b76/Screenshots/MainWindow.png + + + https://www.qt.io/ + https://code.qt.io/cgit/qt/qttools.git/tree/src/linguist/linguist + https://www.qt.io/community/contribute-to-qt + + Translation + Qt + + + pointing + keyboard + + + qt6-linguist.desktop + + linguist + text/vnd.trolltech.linguist + application/x-linguist + +
diff --git a/io.qt.qdbusviewer.metainfo.xml b/io.qt.qdbusviewer.metainfo.xml new file mode 100644 index 0000000..619201b --- /dev/null +++ b/io.qt.qdbusviewer.metainfo.xml @@ -0,0 +1,40 @@ + + + + io.qt.qdbusviewer + Qt QDBusViewer + Debug D-Bus applications + + The Qt Company + + CC0-1.0 + LGPL-3.0-only + Qt + +

The Qt D-Bus Viewer is a tool that lets you introspect D-Bus objects and messages. You can choose between the system bus and the session bus.

+
+ + + The Main Window + https://github.com/flathub/io.qt.qdbusviewer/blob/5df144729039a83d41d5c3e285e8d090884564a7/Screenshots/MainWindow.png?raw=true + + + https://www.qt.io/ + https://bugreports.qt.io + https://code.qt.io/cgit/qt/qttools.git/tree/src/qdbus/qdbusviewer + https://www.qt.io/community/contribute-to-qt + + Development + Debugger + Qt + + + pointing + keyboard + + + qt6-qdbusviewer.desktop + + qdbusviewer + +
diff --git a/qt6-qttools.spec b/qt6-qttools.spec index 41bcf22..73c36db 100644 --- a/qt6-qttools.spec +++ b/qt6-qttools.spec @@ -7,11 +7,13 @@ %global examples 1 %global build_tests 1 +# disable once Qt7 is stable and providing the apps +%global metainfo 1 Summary: Qt6 - QtTool components Name: qt6-qttools -Version: 6.7.1 -Release: 6%{?dist} +Version: 6.8.1 +Release: 1%{?dist} License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0 Url: http://www.qt.io @@ -32,19 +34,23 @@ Patch1: qttools-run-qttools-with-qt6-suffix.patch Patch2: qttools-add-libatomic.patch ## upstream patches -Patch10: qttools-lupdate-fix-deprecation-warning-with-llvm-18.patch -Patch11: qttools-qdoc-adapt-to-breaking-changes-in-llvm-19.patch Source20: assistant.desktop Source21: designer.desktop Source22: linguist.desktop Source23: qdbusviewer.desktop +# borrowed from Flathub with adjustments for Fedora +Source31: io.qt.Designer.metainfo.xml +Source32: io.qt.Linguist.metainfo.xml +Source33: io.qt.qdbusviewer.metainfo.xml + BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: desktop-file-utils BuildRequires: /usr/bin/file +BuildRequires: libappstream-glib BuildRequires: qt6-rpm-macros >= %{version} BuildRequires: qt6-qtbase-private-devel BuildRequires: qt6-qtbase-static >= %{version} @@ -165,9 +171,6 @@ Requires: %{name}-libs-help%{?_isa} = %{version}-%{release} %patch -P2 -p1 -b .libatomic %endif -%patch -P10 -p1 -b .lupdate-fix-deprecation-warning-with-llvm-18 -%patch -P11 -p1 -b .qdoc-adapt-to-breaking-changes-in-llvm-19 - %build %cmake_qt6 \ -DQT_BUILD_EXAMPLES:BOOL=%{?examples:ON}%{!?examples:OFF} \ @@ -198,6 +201,12 @@ desktop-file-install \ --vendor="qt6" \ %{SOURCE20} %{SOURCE21} %{SOURCE22} %{SOURCE23} +%if 0%{?metainfo} +install -Dm0644 -t %{buildroot}%{_metainfodir} \ + %{SOURCE31} %{SOURCE32} %{SOURCE33} +appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml +%endif + # icons install -m644 -p -D src/assistant/assistant/images/assistant.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/assistant-qt6.png install -m644 -p -D src/assistant/assistant/images/assistant-128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/assistant-qt6.png @@ -257,6 +266,7 @@ popd %files +%{_qt6_archdatadir}/sbom/%{qt_module}-%{qt_version}.spdx %{_bindir}/qdbus-qt6 %{_qt6_bindir}/qdbus %{_qt6_bindir}/qdbus-qt6 @@ -290,6 +300,9 @@ popd %{_qt6_bindir}/qdistancefieldgenerator* %{_qt6_libexecdir}/qhelpgenerator* %{_qt6_libexecdir}/qtattributionsscanner* +%if 0%{?metainfo} +%{_metainfodir}/io.qt.Designer.metainfo.xml +%endif %files -n qt6-designer %{_bindir}/designer* @@ -315,12 +328,18 @@ popd %{_qt6_libexecdir}/lprodump* %{_qt6_libexecdir}/lrelease* %{_qt6_libexecdir}/lupdate* +%if 0%{?metainfo} +%{_metainfodir}/io.qt.Linguist.metainfo.xml +%endif %files -n qt6-qdbusviewer %{_bindir}/qdbusviewer* %{_qt6_bindir}/qdbusviewer* %{_datadir}/applications/*qdbusviewer.desktop %{_datadir}/icons/hicolor/*/apps/qdbusviewer*.* +%if 0%{?metainfo} +%{_metainfodir}/io.qt.qdbusviewer.metainfo.xml +%endif %files devel %{_bindir}/pixeltool* @@ -343,7 +362,6 @@ popd %{_qt6_libdir}/libQt6UiTools.so %{_qt6_libdir}/cmake/Qt6/FindWrapLibClang.cmake %{_qt6_libdir}/cmake/Qt6BuildInternals/StandaloneTests/QtToolsTestsConfig.cmake -%dir %{_qt6_libdir}/cmake/Qt6Designer %{_qt6_libdir}/cmake/Qt6Designer/*.cmake %{_qt6_libdir}/cmake/Qt6DesignerComponentsPrivate/*.cmake %dir %{_qt6_libdir}/cmake/Qt6QDocCatchPrivate @@ -399,6 +417,10 @@ popd %endif %changelog +* Fri Dec 06 2024 Jan Grulich - 6.8.1-1 +- 6.8.1 + Resolves: RHEL-53982 + * Mon Nov 04 2024 Jan Grulich - 6.7.1 -6 - Fix build against LLVM 19 Resolves: RHEL-64941 diff --git a/qttools-lupdate-fix-deprecation-warning-with-llvm-18.patch b/qttools-lupdate-fix-deprecation-warning-with-llvm-18.patch deleted file mode 100644 index eb785f8..0000000 --- a/qttools-lupdate-fix-deprecation-warning-with-llvm-18.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 687fc1601863ae7a67897bc3590b33bd3bdcc3bc Mon Sep 17 00:00:00 2001 -From: Joerg Bornemann -Date: Mon, 15 Jul 2024 15:17:04 +0200 -Subject: [PATCH] lupdate/clang: Fix deprecation warning with llvm 18 - -Change-Id: Ib22dda34bfdf7a1cd0e9932eec0f6f13a912a688 -Reviewed-by: Lucie Gerard ---- - src/linguist/lupdate/clangtoolastreader.cpp | 6 ++++++ - 1 file changed, 6 insertions(+) - -diff --git a/src/linguist/lupdate/clangtoolastreader.cpp b/src/linguist/lupdate/clangtoolastreader.cpp -index 6b85c6ccb3..3db9e0d64a 100644 ---- a/src/linguist/lupdate/clangtoolastreader.cpp -+++ b/src/linguist/lupdate/clangtoolastreader.cpp -@@ -782,8 +782,14 @@ bool LupdateVisitor::VisitNamedDecl(clang::NamedDecl *namedDeclaration) - if (!fullLocation.isValid() || !fullLocation.getFileEntry()) - return true; - -+#if (LUPDATE_CLANG_VERSION >= LUPDATE_CLANG_VERSION_CHECK(18,0,0)) -+ auto fileEntry = fullLocation.getFileEntryRef(); -+ if (fileEntry && !LupdatePrivate::isFileSignificant(fileEntry->getName().str())) -+ return true; -+#else - if (!LupdatePrivate::isFileSignificant(fullLocation.getFileEntry()->getName().str())) - return true; -+#endif - - qCDebug(lcClang) << "NamedDecl Name: " << QString::fromStdString(namedDeclaration->getQualifiedNameAsString()); - qCDebug(lcClang) << "NamedDecl source: " << QString::fromStdString(namedDeclaration->getSourceRange().printToString( diff --git a/qttools-qdoc-adapt-to-breaking-changes-in-llvm-19.patch b/qttools-qdoc-adapt-to-breaking-changes-in-llvm-19.patch deleted file mode 100644 index f12f260..0000000 --- a/qttools-qdoc-adapt-to-breaking-changes-in-llvm-19.patch +++ /dev/null @@ -1,93 +0,0 @@ -From 4a368a06afa5929d8674d2e94c2d7cbd6ad85d4e Mon Sep 17 00:00:00 2001 -From: Paul Wicking -Date: Fri, 13 Sep 2024 14:37:38 +0200 -Subject: [PATCH] QDoc: Adapt to breaking changes in LLVM 19 -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Due to upstream changes in LLVM 19, QDoc fails to compile when linked -against Clang libraries from this version of LLVM. Three issues arise; - -- Two cases of passing an argument of wrong type to a function. -- One case of accessing a non-existing member of an enumeration. - -One upstream change (see [0]) is responsible for two of the issues: - -- `get_expression_as_string()` is modified such that it correctly - obtains the parameter type when calling - `get_fully_qualified_type_name()`, by appending - `.getArgument().getAsType()` to the call to `getDefaultArgument()`. -- `get_default_value_initializer_as_string()` is modified such that it - correctly passes the source expression to - `get_expression_as_string()`, by appending `.getSourceExpression()` - to the call to `getDefaultArgument()`. - -Both of these changes are is incompatible with QDoc built against -Clang libraries from earlier versions of LLVM, and are therefore -wrapped in #if-ery. - -Finally, LLVM 19 drops a value used in QDoc from the enumeration -`clang::TemplateName::Qualified`, see [1]. The enum value `Fully` is -removed without replacement. The enum is left with two values, -`AsWritten` and `None`. QDoc is modified such that it relies on the -former of the two. This change doesn't cause any change in output from -QDoc when built against Clang libraries from LLVM 17 and 18, and the -change is therefore not wrapped in #if-ery. - -[0] - https://github.com/llvm/llvm-project/commit/e42b799bb28815431f2c5a95f7e13fde3f1b36a1 -[1] - https://github.com/llvm/llvm-project/commit/9c4a716c12920 - -Done-with: Khem Raj -Fixes: QTBUG-128644 -Pick-to: 6.8 -Change-Id: I34fbb46cf28b5676b4adda5e563d6d59fc40f602 -Reviewed-by: Luca Di Sera -Reviewed-by: Topi Reiniö ---- - src/qdoc/qdoc/src/qdoc/clangcodeparser.cpp | 13 ++++++++++++- - 1 file changed, 12 insertions(+), 1 deletion(-) - -diff --git a/src/qdoc/qdoc/src/qdoc/clangcodeparser.cpp b/src/qdoc/qdoc/src/qdoc/clangcodeparser.cpp -index eb3a781bc..385d651ec 100644 ---- a/src/qdoc/qdoc/src/qdoc/clangcodeparser.cpp -+++ b/src/qdoc/qdoc/src/qdoc/clangcodeparser.cpp -@@ -207,9 +207,15 @@ static std::string get_expression_as_string(const clang::Expr* expression, const - * If the parameter has no default value the empty string will be returned. - */ - static std::string get_default_value_initializer_as_string(const clang::TemplateTypeParmDecl* parameter) { -+#if LIBCLANG_VERSION_MAJOR >= 19 -+ return (parameter && parameter->hasDefaultArgument()) ? -+ get_fully_qualified_type_name(parameter->getDefaultArgument().getArgument().getAsType(), parameter->getASTContext()) : -+ ""; -+#else - return (parameter && parameter->hasDefaultArgument()) ? - get_fully_qualified_type_name(parameter->getDefaultArgument(), parameter->getASTContext()) : - ""; -+#endif - - } - -@@ -223,8 +229,13 @@ static std::string get_default_value_initializer_as_string(const clang::Template - * If the parameter as no default value the empty string will be returned. - */ - static std::string get_default_value_initializer_as_string(const clang::NonTypeTemplateParmDecl* parameter) { -+#if LIBCLANG_VERSION_MAJOR >= 19 -+ return (parameter && parameter->hasDefaultArgument()) ? -+ get_expression_as_string(parameter->getDefaultArgument().getSourceExpression(), parameter->getASTContext()) : ""; -+#else - return (parameter && parameter->hasDefaultArgument()) ? - get_expression_as_string(parameter->getDefaultArgument(), parameter->getASTContext()) : ""; -+#endif - - } - -@@ -244,7 +255,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; diff --git a/sources b/sources index 3384d14..fa6da17 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (qttools-everywhere-src-6.7.1.tar.xz) = 5b21fc8a5f208615a3493a2ae24356705477c50f675cd7f29fc2eb7f7af5c2af7859068d26404ff8075d163adf0b0c4f267d14fa3f618de76ace8cd353a58a15 +SHA512 (qttools-everywhere-src-6.8.1.tar.xz) = 1f5eb44e86d400858abe21efcadb27537ae213127078d95ee56792b57923573e55fd850042e63ca547cd27ba199196fe9956646dcb285c6f6976a22a7832db52