%global qt_module qttools #global unstable 1 %if 0%{?unstable} %global prerelease rc2 %endif %global examples 1 %global build_tests 1 Summary: Qt6 - QtTool components Name: qt6-qttools Version: 6.7.1 Release: 6%{?dist} License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0 Url: http://www.qt.io %global majmin %(echo %{version} | cut -d. -f1-2) %global qt_version %(echo %{version} | cut -d~ -f1) %if 0%{?unstable} Source0: https://download.qt.io/development_releases/qt/%{majmin}/%{qt_version}/submodules/%{qt_module}-everywhere-src-%{qt_version}-%{prerelease}.tar.xz %else Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-src-%{version}.tar.xz %endif # help lrelease/lupdate use/prefer qmake-qt6 # https://bugzilla.redhat.com/show_bug.cgi?id=1009893 Patch1: qttools-run-qttools-with-qt6-suffix.patch # 32-bit MIPS needs explicit -latomic 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 BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: desktop-file-utils BuildRequires: /usr/bin/file BuildRequires: qt6-rpm-macros >= %{version} BuildRequires: qt6-qtbase-private-devel BuildRequires: qt6-qtbase-static >= %{version} BuildRequires: qt6-qtdeclarative-static >= %{version} BuildRequires: qt6-qtdeclarative >= %{version} %{?_qt6:Requires: %{_qt6}%{?_isa} = %{_qt6_version}} BuildRequires: clang-devel llvm-devel BuildRequires: libzstd-devel Requires: %{name}-common = %{version}-%{release} %description %{summary}. %package common Summary: Common files for %{name} BuildArch: noarch %description common %{summary}. %package devel Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} Requires: %{name}-libs-designer%{?_isa} = %{version}-%{release} Requires: %{name}-libs-designercomponents%{?_isa} = %{version}-%{release} Requires: %{name}-libs-help%{?_isa} = %{version}-%{release} Requires: qt6-doctools = %{version}-%{release} Requires: qt6-designer = %{version}-%{release} Requires: qt6-linguist = %{version}-%{release} Requires: qt6-qtbase-devel%{?_isa} %description devel %{summary}. %package static Summary: Static library files for %{name} Requires: %{name}-devel%{?_isa} = %{version}-%{release} %description static %{summary}. %package libs-designer Summary: Qt6 Designer runtime library Requires: %{name}-common = %{version}-%{release} %description libs-designer %{summary}. %package libs-designercomponents Summary: Qt6 Designer Components runtime library Requires: %{name}-common = %{version}-%{release} Requires: %{name}-libs-designer%{?_isa} = %{version}-%{release} %description libs-designercomponents %{summary}. %package libs-help Summary: Qt6 Help runtime library Requires: %{name}-common = %{version}-%{release} %description libs-help %{summary}. %package -n qt6-assistant Summary: Documentation browser for Qt6 Requires: %{name}-common = %{version}-%{release} Requires: %{name}-libs-help%{?_isa} = %{version}-%{release} %description -n qt6-assistant %{summary}. %package -n qt6-designer Summary: Design GUIs for Qt6 applications Requires: %{name}-libs-designer%{?_isa} = %{version}-%{release} Requires: %{name}-libs-designercomponents%{?_isa} = %{version}-%{release} %description -n qt6-designer %{summary}. %package -n qt6-linguist Summary: Qt6 Linguist Tools Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}-common = %{version}-%{release} %description -n qt6-linguist Tools to add translations to Qt6 applications. %package -n qt6-qdbusviewer Summary: D-Bus debugger and viewer Requires: %{name}-common = %{version}-%{release} %{?_qt6:Requires: %{_qt6}%{?_isa} >= %{_qt6_version}} %description -n qt6-qdbusviewer QDbusviewer can be used to inspect D-Bus objects of running programs and invoke methods on those objects. %package -n qt6-doctools Summary: Qt6 doc tools package Requires: %{name}-libs-help%{?_isa} = %{version}-%{release} %description -n qt6-doctools %{summary}. %if 0%{?examples} %package examples Summary: Programming examples for %{name} Requires: %{name}-common = %{version}-%{release} Requires: %{name}-libs-help%{?_isa} = %{version}-%{release} %description examples %{summary}. %endif %if 0%{?build_tests} %package tests Summary: Unit tests for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}-libs-help%{?_isa} = %{version}-%{release} %description tests %{summary}. %endif %prep %setup -q -n %{qt_module}-everywhere-src-%{qt_version}%{?unstable:-%{prerelease}} %patch -P1 -p1 -b .run-qttools-with-qt6-suffix %ifarch %{mips32} %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} \ -DQT_BUILD_TESTS=%{?build_tests:ON}%{!?build_tests:OFF} \ -DQT_INSTALL_EXAMPLES_SOURCES=%{?examples:ON}%{!?examples:OFF} %if 0%{?build_tests} %qt6_fix_tests %endif %cmake_build %install %if 0%{?build_tests} %qt6_dont_autoinstall_tests %endif %cmake_install %if 0%{?build_tests} %qt6_install_tests %endif # Add desktop files, --vendor=... helps avoid possible conflicts with qt3/qt4 desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications \ --vendor="qt6" \ %{SOURCE20} %{SOURCE21} %{SOURCE22} %{SOURCE23} # 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 install -m644 -p -D src/designer/src/designer/images/designer.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/designer-qt6.png install -m644 -p -D src/qdbus/qdbusviewer/images/qdbusviewer.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/qdbusviewer-qt6.png install -m644 -p -D src/qdbus/qdbusviewer/images/qdbusviewer-128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/qdbusviewer-qt6.png # linguist icons for icon in src/linguist/linguist/images/icons/linguist-*-32.png ; do size=$(echo $(basename ${icon}) | cut -d- -f2) install -p -m644 -D ${icon} %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/linguist-qt6.png done # hardlink files to {_bindir}, add -qt6 postfix to not conflict mkdir %{buildroot}%{_bindir} pushd %{buildroot}%{_qt6_bindir} for i in * ; do case "${i}" in assistant|designer|lconvert|linguist|lrelease|lupdate|pixeltool| \ qcollectiongenerator|qdbus|qdbusviewer|qhelpconverter|qhelpgenerator| \ qtplugininfo|qdistancefieldgenerator|qdoc|qtdiag) ln -v ${i} %{buildroot}%{_bindir}/${i}-qt6 ln -sv ${i} ${i}-qt6 ;; *) ln -v ${i} %{buildroot}%{_bindir}/${i} ;; esac done popd ## .prl/.la file love # nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs pushd %{buildroot}%{_qt6_libdir} for prl_file in libQt6*.prl ; do sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file} if [ -f "$(basename ${prl_file} .prl).so" ]; then rm -fv "$(basename ${prl_file} .prl).la" sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file} fi done popd ## work-in-progress... -- rex %check # check icon resolutions pushd %{buildroot}%{_datadir}/icons for RES in $(ls hicolor); do for APP in designer assistant linguist qdbusviewer; do if [ -e hicolor/$RES/apps/${APP}*.* ]; then file hicolor/$RES/apps/${APP}*.* | grep "$(echo $RES | sed 's/x/ x /')" fi done done popd %files %{_bindir}/qdbus-qt6 %{_qt6_bindir}/qdbus %{_qt6_bindir}/qdbus-qt6 %{_qt6_libdir}/libQt6UiTools.so.6* %files common %license LICENSES/LGPL* %files libs-designer %{_qt6_libdir}/libQt6Designer.so.6* %dir %{_qt6_libdir}/cmake/Qt6Designer/ %{_qt6_plugindir}/designer/* %files libs-designercomponents %{_qt6_libdir}/libQt6DesignerComponents.so.6* %files libs-help %{_qt6_libdir}/libQt6Help.so.6* %files -n qt6-assistant %{_bindir}/assistant-qt6 %{_qt6_bindir}/assistant* %{_datadir}/applications/*assistant.desktop %{_datadir}/icons/hicolor/*/apps/assistant*.* %files -n qt6-doctools %{_bindir}/qdoc* %{_qt6_bindir}/qdoc* %{_bindir}/qdistancefieldgenerator* %{_qt6_bindir}/qdistancefieldgenerator* %{_qt6_libexecdir}/qhelpgenerator* %{_qt6_libexecdir}/qtattributionsscanner* %files -n qt6-designer %{_bindir}/designer* %{_qt6_bindir}/designer* %{_datadir}/applications/*designer.desktop %{_datadir}/icons/hicolor/*/apps/designer*.* %files -n qt6-linguist %{_bindir}/linguist* %{_qt6_bindir}/linguist* # phrasebooks used by linguist %{_datadir}/qt6/phrasebooks/*.qph %{_datadir}/applications/*linguist.desktop %{_datadir}/icons/hicolor/*/apps/linguist*.* # linguist friends %{_bindir}/lconvert* %{_bindir}/lrelease* %{_bindir}/lupdate* %{_qt6_bindir}/lconvert* %{_qt6_bindir}/lrelease* %{_qt6_bindir}/lupdate* %{_qt6_libexecdir}/lprodump* %{_qt6_libexecdir}/lrelease* %{_qt6_libexecdir}/lupdate* %files -n qt6-qdbusviewer %{_bindir}/qdbusviewer* %{_qt6_bindir}/qdbusviewer* %{_datadir}/applications/*qdbusviewer.desktop %{_datadir}/icons/hicolor/*/apps/qdbusviewer*.* %files devel %{_bindir}/pixeltool* %{_bindir}/qtdiag* %{_bindir}/qtplugininfo* %{_qt6_bindir}/pixeltool* %{_qt6_bindir}/qtdiag* %{_qt6_bindir}/qtplugininfo* %{_qt6_headerdir}/QtQDocCatch/ %{_qt6_headerdir}/QtQDocCatchConversions/ %{_qt6_headerdir}/QtQDocCatchGenerators/ %{_qt6_headerdir}/QtDesigner/ %{_qt6_headerdir}/QtDesignerComponents/ %{_qt6_headerdir}/QtHelp/ %{_qt6_headerdir}/QtUiPlugin %{_qt6_headerdir}/QtUiTools/ %{_qt6_headerdir}/QtTools/ %{_qt6_libdir}/libQt6Designer*.so %{_qt6_libdir}/libQt6Help.so %{_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 %{_qt6_libdir}/cmake/Qt6QDocCatchPrivate/*.cmake %dir %{_qt6_libdir}/cmake/Qt6QDocCatchConversionsPrivate %{_qt6_libdir}/cmake/Qt6QDocCatchConversionsPrivate/*.cmake %dir %{_qt6_libdir}/cmake/Qt6QDocCatchGeneratorsPrivate %{_qt6_libdir}/cmake/Qt6QDocCatchGeneratorsPrivate/*.cmake %dir %{_qt6_libdir}/cmake/Qt6Help/ %{_qt6_libdir}/cmake/Qt6Help/*.cmake %dir %{_qt6_libdir}/cmake/Qt6Linguist %{_qt6_libdir}/cmake/Qt6Linguist/*.cmake %dir %{_qt6_libdir}/cmake/Qt6LinguistTools %{_qt6_libdir}/cmake/Qt6LinguistTools/*.cmake %dir %{_qt6_libdir}/cmake/Qt6UiPlugin/ %{_qt6_libdir}/cmake/Qt6UiPlugin/*.cmake %dir %{_qt6_libdir}/cmake/Qt6Tools/ %{_qt6_libdir}/cmake/Qt6Tools/*.cmake %dir %{_qt6_libdir}/cmake/Qt6ToolsTools/ %{_qt6_libdir}/cmake/Qt6ToolsTools/*.cmake %dir %{_qt6_libdir}/cmake/Qt6LinguistTools %{_qt6_libdir}/cmake/Qt6UiTools/ %{_qt6_archdatadir}/mkspecs/modules/qt_lib_qdoccatch_private.pri %{_qt6_archdatadir}/mkspecs/modules/qt_lib_qdoccatchconversions_private.pri %{_qt6_archdatadir}/mkspecs/modules/qt_lib_qdoccatchgenerators_private.pri %{_qt6_archdatadir}/mkspecs/modules/qt_lib_designer.pri %{_qt6_archdatadir}/mkspecs/modules/qt_lib_designer_private.pri %{_qt6_archdatadir}/mkspecs/modules/qt_lib_designercomponents_private.pri %{_qt6_archdatadir}/mkspecs/modules/qt_lib_help.pri %{_qt6_archdatadir}/mkspecs/modules/qt_lib_help_private.pri %{_qt6_archdatadir}/mkspecs/modules/qt_lib_linguist.pri %{_qt6_archdatadir}/mkspecs/modules/qt_lib_tools_private.pri %{_qt6_archdatadir}/mkspecs/modules/qt_lib_uiplugin.pri %{_qt6_archdatadir}/mkspecs/modules/qt_lib_uitools.pri %{_qt6_archdatadir}/mkspecs/modules/qt_lib_uitools_private.pri %{_qt6_libdir}/qt6/metatypes/qt6*_metatypes.json %{_qt6_libdir}/qt6/modules/*.json %{_qt6_libdir}/pkgconfig/*.pc %files static %{_qt6_libdir}/libQt6Designer*.prl %{_qt6_libdir}/libQt6Help.prl %{_qt6_libdir}/libQt6UiTools.prl %if 0%{?examples} %files examples %{_qt6_examplesdir}/ %endif %if 0%{?build_tests} %files tests %{_qt6_archdatadir}/tests %endif %changelog * Mon Nov 04 2024 Jan Grulich - 6.7.1 -6 - Fix build against LLVM 19 Resolves: RHEL-64941 * Tue Oct 29 2024 Troy Dawson - 6.7.1-5 - Bump release for October 2024 mass rebuild: Resolves: RHEL-64018 * Mon Jun 24 2024 Troy Dawson - 6.7.1-4 - Bump release for June 2024 mass rebuild * Thu Jun 06 2024 Jan Grulich - 6.7.1-3 - Fix unit tests (rebuild for qt6-macros) Resolves: RHEL-35968 * Tue Jun 04 2024 Jan Grulich - 6.7.1-2 - Add rpminspect.yaml and fix dependencies Resolves: RHEL-36430 * Fri May 31 2024 Jan Grulich - 6.7.1-1 - 6.7.1 Resolves: RHEL-36430 * Thu May 09 2024 Jan Grulich - 6.7.0-2 - Rebuild (LLVM-18) Resolves: RHEL-27730 * Fri Apr 19 2024 Jan Grulich - 6.7.0-1 - 6.7.0 Resolves: RHEL-27845 Resolves: RHEL-31169 * Wed Mar 27 2024 Jan Grulich - 6.6.1-3 - Add -tests subpackage with unit tests that can run in CI Resolves: RHEL-28239 * Mon Jan 22 2024 Fedora Release Engineering - 6.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Nov 27 2023 Jan Grulich - 6.6.1-1 - 6.6.1 * Tue Oct 10 2023 Jan Grulich - 6.6.0-1 - 6.6.0 * Sun Oct 01 2023 Justin Zobel - 6.5.3-1 - new version * Fri Jul 21 2023 Fedora Release Engineering - 6.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jul 21 2023 Jan Grulich - 6.5.2-1 - 6.5.2 * Wed Jul 12 2023 Jan Grulich - 6.5.1-3 - Rebuild for qtbase private API version change * Wed Jul 12 2023 Jan Grulich - 6.5.1-2 - Rebuild for qtbase private API version change * Mon May 22 2023 Jan Grulich - 6.5.1-1 - 6.5.1 * Tue Apr 04 2023 Jan Grulich - 6.5.0-1 - 6.5.0 * Thu Mar 23 2023 Jan Grulich - 6.4.3-1 - 6.4.3 * Tue Jan 31 2023 Jan Grulich - 6.4.2-3 - migrated to SPDX license * Fri Jan 20 2023 Fedora Release Engineering - 6.4.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Jan 16 2023 Jan Grulich - 6.4.2-1 - 6.4.2 * Wed Nov 23 2022 Jan Grulich - 6.4.1-1 - 6.4.1 * Mon Oct 31 2022 Jan Grulich - 6.4.0-1 - 6.4.0 * Mon Sep 19 2022 Pete Walter - 6.3.1-3 - Rebuild for llvm 15 * Sat Jul 23 2022 Fedora Release Engineering - 6.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jul 13 2022 Jan Grulich - 6.3.1-1 - 6.3.1 * Wed May 25 2022 Jan Grulich - 6.3.0-3 - Fix path to lprodump * Wed May 25 2022 Jan Grulich - 6.3.0-2 - Enable examples * Wed Apr 13 2022 Jan Grulich - 6.3.0-1 - 6.3.0 * Fri Feb 25 2022 Jan Grulich - 6.2.3-2 - Enable s390x builds * Mon Jan 31 2022 Jan Grulich - 6.2.3-1 - 6.2.3 * Fri Jan 21 2022 Fedora Release Engineering - 6.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Dec 14 2021 Jan Grulich - 6.2.2-1 - 6.2.2 * Fri Oct 29 2021 Jan Grulich - 6.2.1-1 - 6.2.1 * Thu Oct 07 2021 Tom Stellard - 6.2.0-3 - Rebuild for llvm-13.0.0 * Thu Sep 30 2021 Kalev Lember - 6.2.0-2 - Rebuild for clang 13.0.0~rc1 * Thu Sep 30 2021 Jan Grulich - 6.2.0-1 - 6.2.0 * Mon Sep 27 2021 Jan Grulich - 6.2.0~rc2-1 - 6.2.0 - rc2 * Sat Sep 18 2021 Jan Grulich - 6.2.0~rc-1 - 6.2.0 - rc * Mon Sep 13 2021 Jan Grulich - 6.2.0~beta4-1 - 6.2.0 - beta4 * Thu Aug 12 2021 Jan Grulich - 6.1.2-1 - 6.1.2 * Fri Jul 23 2021 Fedora Release Engineering - 6.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Jun 07 2021 Jan Grulich - 6.1.1-1 - 6.1.1 * Mon May 24 2021 Jan Grulich - 6.1.0-2 - Rebuild with correct libexecdir path * Thu May 06 2021 Jan Grulich - 6.1.0-1 - 6.1.0 * Mon Apr 05 2021 Jan Grulich - 6.0.3-1 - 6.0.3 * Thu Feb 04 2021 Jan Grulich - 6.0.1-1 - 6.0.1 * Wed Jan 27 2021 Fedora Release Engineering - 6.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jan 25 2021 Jan Grulich - 6.0.0-2 - Rebuild (clang) * Wed Jan 13 2021 Jan Grulich - 6.0.0 - 6.0.0