# Build configuration %define build_bootstrap 1 %{?_with_bootstrap: %{expand: %%global build_bootstrap 1}} %ifarch aarch64 armv7hl %{ix86} %global no_sse2 1 %endif %if 0%{?build_bootstrap} %define build_docs 0 %else %define build_docs 1 %endif %ifarch %{arm} aarch64 %define build_docs 0 %endif %global platform linux-g++ %bcond_without postgres %bcond_without mysql %bcond_without sqlite %bcond_without tds %bcond_without cups %bcond_with qvfb %bcond_without examples %bcond_without odbc %bcond_with debug %bcond_without ibase # Versioning %define qtmajor 6 %define qtminor 0 %define qtsubminor 2 %define qtversion %{qtmajor}.%{qtminor}.%{qtsubminor} %define rel 1 %define snapshot 0 %if 0%{?snapshot} %define pre rc %endif %define qttarballdir qtbase-everywhere-src-%{qtversion}%{?pre:-%{pre}} # Library names %define libqt %mklibname qt6base %qtmajor %define libqtdevel %mklibname qt6base %qtmajor -d %define libqtcore %mklibname qt6core %qtmajor %define libqtcore_d %mklibname qt6core -d %define libqtconcurrent %mklibname qt6concurrent %qtmajor %define libqtconcurrent_d %mklibname qt6concurrent -d %define libqtdbus %mklibname qt6dbus %qtmajor %define libqtdbus_d %mklibname qt6dbus -d %define libqteglfsdeviceintegration %mklibname qt6eglfsdeviceintegration %qtmajor %define libqteglfsdeviceintegration_d %mklibname qt6eglfsdeviceintegration -d %define libqteglfskmssupport %mklibname qt6eglfskmssupport %qtmajor %define libqteglfskmssupport_d %mklibname qt6eglfskmssupport -d %define libqtgui %mklibname qt6gui %qtmajor %define libqtgui_d %mklibname qt6gui -d %define libqtnetwork %mklibname qt6network %qtmajor %define libqtnetwork_d %mklibname qt6network -d %define libqtopengl %mklibname qt6opengl %qtmajor %define libqtopengl_d %mklibname qt6opengl -d %define libqtprintsupport %mklibname qt6printsupport %qtmajor %define libqtprintsupport_d %mklibname qt6printsupport -d %define libqtsql %mklibname qt6sql %qtmajor %define libqtsql_d %mklibname qt6sql -d %define libqttest %mklibname qt6test %qtmajor %define libqttest_d %mklibname qt6test -d %define libqtwidgets %mklibname qt6widgets %qtmajor %define libqtwidgets_d %mklibname qt6widgets -d %define libqtxcbqpa %mklibname qt6xcbqpa %qtmajor %define libqtxcbqpa_d %mklibname qt6xcbqpa -d %define libqtxml %mklibname qt6xml %qtmajor %define libqtxml_d %mklibname qt6xml -d %define libqt6openglwidgets %mklibname qt6openglwidgets %qtmajor %define libqt6openglwidgets_d %mklibname qt6openglwidgets -d %define libqtdevicediscoverysupport_d %mklibname qt6devicediscoverysupport -d -s %define libqtfbsupport_d %mklibname qt6fbsupport -d -s %define libqtinputsupport_d %mklibname qt6inputsupport -d -s %define libqtkmssupport_d %mklibname qt6kmssupport -d -s # Folder macros %define _qt6_prefix %{_prefix} %define _qt6_archdatadir %{_libdir}/qt6 %define _qt6_bin %{_libdir}/qt6/bin %define _qt6_datadir %{_datadir}/qt6 %define _qt6_docdir %{_docdir}/qt6 %define _qt6_examplesdir %{_qt6_archdatadir}/examples %define _qt6_headerdir %{_includedir}/qt6 %define _qt6_includedir %{_includedir}/qt6 %define _qt6_importdir %{_qt6_archdatadir}/imports %define _qt6_libdir %{_libdir} %define _qt6_libexecdir %{_qt6_archdatadir}/libexec %define _qt6_mkspecsdir %{_qt6_archdatadir}/mkspecs %define _qt6_plugindir %{_qt6_archdatadir}/plugins %define _qt6_qmldir %{_qt6_archdatadir}/qml %define _qt6_settingsdir %{_sysconfdir}/xdg %define _qt6_sysconfdir %{_qt6_settingsdir} %define _qt6_translationdir %{_datadir}/qt6/translations # Do not check any files in %%{_qt6_plugindir}/platformthemes/ for requires. # Those themes are there for platform integration. If the required libraries are # not there, the platform to integrate with isn't either. Then Qt will just # silently ignore the plugin that fails to load. Thus, there is no need to let # RPM drag in gtk2 as a dependency for the GTK+ 2 dialog support. %global __requires_exclude_from ^%{_qt6_plugindir}/platformthemes/.*$ Name: qtbase6 Version: %{qtversion} Release: %mkrel %{rel} Summary: Qt GUI toolkit Group: Development/KDE and Qt License: LGPLv2 with exceptions or GPLv3 with exceptions and GFDL URL: https://www.qt.io/ Source0: https://download.qt.io/official_releases/qt/%{qtmajor}.%{qtminor}/%{version}/submodules/%{qttarballdir}.tar.xz # https://bugzilla.redhat.com/show_bug.cgi?id=1227295 # https://bugs.mageia.org/show_bug.cgi?id=27054 # https://bugs.mageia.org/show_bug.cgi?id=26900 Source1: qtlogging.ini Source2: qt6.macros # backport from upstream # Branch patches # Fedora patches # support firebird version 3.x Patch64: qt6-qtbase-5.12.1-firebird.patch # python3 Patch68: qtbase-everywhere-src-5.11.1-python3.patch # Trunk patches # Mageia patches # (blino) revert upstream patch that forbids -reduce-relocations on ARM # since -Bsymbolic is fixed on ARM in ld 2.25 (QTBUG-36129 and binutils#16715) Patch100: qtbase5-revert-old-arm-linker-limitation.patch # Security patches # Testing patches BuildRequires: binutils >= 2.18 BuildRequires: cmake-rpm-macros BuildRequires: qt6-macros BuildRequires: cups-devel BuildRequires: mesa-common-devel BuildRequires: pam-devel BuildRequires: perl BuildRequires: python3 BuildRequires: cmake(double-conversion) BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(dbus-1) >= 0.92 BuildRequires: pkgconfig(expat) BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(egl) BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gstreamer-1.0) BuildRequires: pkgconfig(gstreamer-app-1.0) # gtk+3.0 for qtgtk style BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(harfbuzz) >= 0.9.42 BuildRequires: pkgconfig(libinput) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libmng) BuildRequires: pkgconfig(libpcre2-16) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libproxy-1.0) BuildRequires: pkgconfig(libpulse) BuildRequires: pkgconfig(libtiff-4) BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libxslt) BuildRequires: pkgconfig(libzstd) BuildRequires: pkgconfig(md4c) BuildRequires: pkgconfig(ncurses) BuildRequires: pkgconfig(openssl) >= 1.1 BuildRequires: pkgconfig(readline) BuildRequires: pkgconfig(sm) BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(tslib) #BuildRequires: pkgconfig(vg) BuildRequires: pkgconfig(vulkan) BuildRequires: pkgconfig(xcb) BuildRequires: pkgconfig(xcb-image) BuildRequires: pkgconfig(xcb-icccm) BuildRequires: pkgconfig(xcb-keysyms) BuildRequires: pkgconfig(xcb-renderutil) BuildRequires: pkgconfig(xcb-xkb) >= 1.10 BuildRequires: pkgconfig(xcb-util) BuildRequires: pkgconfig(xkbcommon) >= 0.4.1 BuildRequires: pkgconfig(xkbcommon-x11) >= 0.4.1 BuildRequires: pkgconfig(xtst) BuildRequires: pkgconfig(zlib) %description Qt is a GUI software toolkit which simplifies the task of writing and maintaining GUI (Graphical User Interface) applications for the X Window System. Qt is written in C++ and is fully object-oriented. This package contains the shared library needed to run Qt applications, as well as the README files for Qt. #------------------------------------------------------------------------------ %package common Summary: Qt%{qtmajor} Config and Language Files Group: Development/KDE and Qt Provides: qt6-common = %{version}-%{release} Obsoletes: qt6-common < 5.9.1-1 #TODO Mga6: Split qttranslations5 into subpackages %if ! 0%{?build_bootstrap} Requires: qttranslations5 %endif # (doktor5000) glxinfo binary required by script qt6-check-opengl2.sh Requires: glxinfo # ease upgrade mga7->mga8 (mga#25418) Conflicts: %{_lib}qt6gui5 < 5.13.1-5 %description common Qt is a GUI software toolkit which simplifies the task of writing and maintaining GUI (Graphical User Interface) applications for the X Window System. Qt is written in C++ and is fully object-oriented. Configuration and language files for Qt%{qtmajor}. %files common %attr(0755,root,root) %{_sysconfdir}/profile.d/* %dir %{_sysconfdir}/xdg/QtProject %dir %{_qt6_bindir} %{_qt6_bindir}/syncqt.pl %dir %{_qt6_plugindir} %{_qt6_plugindir}/generic/ %dir %{_qt6_docdir} %{_qt6_docdir}/global/ %{_qt6_docdir}/config/ %dir %{_qt6_datadir} %{_qt6_datadir}/qtlogging.ini #------------------------------------------------------------------- %package -n %{name}-common-devel Summary: Development files for the Qt%{qtmajor} GUI toolkit Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Provides: qmake = %{version}-%{release} Provides: qmake-qt6 = %{version}-%{release} %description -n %{name}-common-devel Common files needed to build application based on Qt6. %post -n %{name}-common-devel update-alternatives --install %{_bindir}/qmake qmake %{_qt6_bindir}/qmake 20 %postun -n %{name}-common-devel if ! [ -e %{_qt6_bindir}/qmake ]; then update-alternatives --remove qmake %{_qt6_bindir}/qmake fi %files -n %{name}-common-devel %{_sysconfdir}/rpm/macros.d/qt6.macros %{_bindir}/moc* %{_bindir}/qdbuscpp2xml* %{_bindir}/qdbusxml2cpp* %{_bindir}/qlalr %{_bindir}/qmake* %{_bindir}/qvkgen %{_bindir}/rcc* %{_bindir}/syncqt* %{_bindir}/tracegen %{_bindir}/uic* %{_bindir}/androiddeployqt %{_bindir}/androidtestrunner %{_bindir}/cmake_automoc_parser %{_bindir}/qt-cmake %{_bindir}/qt-cmake-private %{_bindir}/qt-cmake-private-install.cmake %{_bindir}/qt-cmake-standalone-test %{_bindir}/qt-configure-module %{_bindir}/qt-internal-configure-tests %{_qt6_bindir}/moc* %{_qt6_bindir}/qdbusxml2cpp* %{_qt6_bindir}/qdbuscpp2xml* %{_qt6_bindir}/qlalr %{_qt6_bindir}/qmake* %{_qt6_bindir}/qvkgen %{_qt6_bindir}/rcc* %{_qt6_bindir}/tracegen %{_qt6_bindir}/uic* %{_qt6_bindir}/androiddeployqt %{_qt6_bindir}/androidtestrunner %{_qt6_bindir}/cmake_automoc_parser %{_qt6_bindir}/qt-cmake %{_qt6_bindir}/qt-cmake-private %{_qt6_bindir}/qt-cmake-private-install.cmake %{_qt6_bindir}/qt-cmake-standalone-test %{_qt6_bindir}/qt-configure-module %{_qt6_bindir}/qt-internal-configure-tests %{_qt6_archdatadir}/mkspecs/ %dir %{_qt6_libdir}/cmake %dir %{_qt6_libdir}/metatypes %if "%{_qt6_includedir}" != "%{_includedir}" %dir %{_qt6_includedir} %endif %{_libdir}/android_emulator_launcher.sh %{_libdir}/cmake/Qt6/ %{_libdir}/cmake/Qt6BuildInternals/ %{_libdir}/cmake/Qt6HostInfo/ %{_libdir}/syncqt.pl %{_qt6_datadir}/modules/FbSupport.json #------------------------------------------------------------------------------ %package examples Summary: Example programs made with Qt%{qtmajor} Group: Documentation Provides: qt6-examples = %{version}-%{release} Obsoletes: qt6-examples < 5.9.1-1 %description examples Example programs made with Qt%{qtmajor}. %files examples #%{_qt6_examplesdir}/ #------------------------------------------------------------------------------ %if 0%{?build_docs} %package doc Summary: QtBase%{qtmajor} APIs and tools docs Group: Documentation BuildArch: noarch BuildRequires: qttools6 # This one is required to build QCH-format documentation # for APIs and tools in this package set BuildRequires: qttools6-assistant Recommends: qttools6-assistant %description doc Documentation for APIs and tools in QtBase6 package for use with Qt Assistant. %files doc %{_qt6_docdir}/*.qch %{_qt6_docdir}/qmake/ %{_qt6_docdir}/qtconcurrent/ %{_qt6_docdir}/qtcore/ %{_qt6_docdir}/qtdbus/ %{_qt6_docdir}/qtgui/ %{_qt6_docdir}/qtnetwork/ %{_qt6_docdir}/qtopengl/ %{_qt6_docdir}/qtplatformheaders/ %{_qt6_docdir}/qtprintsupport/ %{_qt6_docdir}/qtsql/ %{_qt6_docdir}/qttestlib/ %{_qt6_docdir}/qtwidgets/ %{_qt6_docdir}/qtxml/ %endif #------------------------------------------------------------------------------ # CORE QT LIBRARIES #------------------------------------------------------------------------------ %package -n %{libqtcore} Summary: Qt%{qtmajor} Core Library Group: System/Libraries Requires(pre): %{name}-common = %{version} %description -n %{libqtcore} Qt%{qtmajor} Component Library. The QtCore module contains core non-GUI functionality. %files -n %{libqtcore} %{_qt6_libdir}/libQt6Core.so.%{qtmajor}{,.*} # (doktor5000) provide SSE2-enabled library in separate subdir as recommended by upstream # https://bugreports.qt-project.org/browse/QTBUG-35430 %ifarch %{ix86} %{_qt6_libdir}/sse2/libQt6Core.so.%{qtmajor}{,.*} %endif #------------------------------------------------------------------------------ %package -n %{libqtcore_d} Summary: Devel files needed to build apps based on QtCore Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common-devel = %{version}-%{release} Requires: %{libqtcore} = %{version} Provides: libqtcore6-devel = %{version} Provides: libqt6core-devel = %{version} Provides: qt6core-devel = %{version} Provides: qtcore6-devel = %{version} Provides: qt6core-private-devel = %{version} Provides: qtcore6-private-devel = %{version} %description -n %{libqtcore_d} Devel files needed to build apps based on QtCore. %files -n %{libqtcore_d} %{_qt6_libdir}/libQt6Core.prl %{_qt6_libdir}/libQt6Core.so %{_qt6_libdir}/libQt6Core_qobject.a %{_qt6_libdir}/libQt6Core_qobject.prl %{_qt6_libdir}/cmake/Qt6Core/ %{_qt6_libdir}/cmake/Qt6/Qt6Config.cmake %{_qt6_libdir}/cmake/Qt6/Qt6ConfigVersion.cmake %{_qt6_includedir}/QtCore/ %{_qt6_datadir}/modules/Core.json %{_qt6_datadir}/modules/Core_qobject.json %{_libdir}/cmake/Qt6CoreTools/ %{_libdir}/cmake/Qt6Core_qobject/ %{_libdir}/metatypes/qt6core_qobject_relwithdebinfo_metatypes.json %{_libdir}/metatypes/qt6core_relwithdebinfo_metatypes.json #------------------------------------------------------------------------------ %package -n %{libqtconcurrent} Summary: Qt%{qtmajor} Concurrent Library Group: System/Libraries Requires(pre): %{name}-common = %{version} %description -n %{libqtconcurrent} Qt%{qtmajor} Concurrent Library. %files -n %{libqtconcurrent} %{_qt6_libdir}/libQt6Concurrent.so.%{qtmajor}{,.*} #------------------------------------------------------------------------------ %package -n %{libqtconcurrent_d} Summary: Devel files needed to build apps based on QtConcurrent Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common-devel = %{version}-%{release} Requires: %{libqtconcurrent} = %{version} Provides: libqtconcurrent6-devel = %{version} Provides: libqt6concurrent-devel = %{version} Provides: qt6concurrent-devel = %{version} Provides: qtconcurrent6-devel = %{version} %description -n %{libqtconcurrent_d} Devel files needed to build apps based on QtConcurrent. %files -n %{libqtconcurrent_d} %{_qt6_libdir}/libQt6Concurrent.so %{_qt6_libdir}/libQt6Concurrent.prl %{_qt6_libdir}/cmake/Qt6Concurrent/ %{_qt6_includedir}/QtConcurrent/ %{_qt6_datadir}/modules/Concurrent.json #------------------------------------------------------------------------------ %package -n %{libqteglfskmsgbmsupport} Summary: Qt%{qtmajor} EglFsKmsGbmSupport Library Group: System/Libraries Requires(pre): %{name}-common = %{version} %description -n %{libqteglfskmsgbmsupport} Qt%{qtmajor} Concurrent Library. %files -n %{libqteglfskmsgbmsupport} %{_qt6_libdir}/libQt6EglFsKmsGbmSupport.so.%{qtmajor}{,.*} #------------------------------------------------------------------------------ %package -n %{libqteglfskmsgbmsupport_d} Summary: Devel files needed to build apps based on QtConcurrent Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common-devel = %{version}-%{release} Provides: libqteglfskmsgbmsupport6-devel = %{version} Provides: libqteglfskmsgbmsupport-devel = %{version} Provides: qt6eglfskmsgbmsupport-devel = %{version} Provides: qteglfskmsgbmsupport6-devel = %{version} %description -n %{libqteglfskmsgbmsupport_d} Devel files needed to build apps based on QtConcurrent. %files -n %{libqteglfskmsgbmsupport_d} %{_qt6_libdir}/libQt6EglFsKmsGbmSupport.so %{_qt6_libdir}/libQt6EglFsKmsGbmSupport.prl %{_qt6_libdir}/cmake/Qt6EglFsKmsGbmSupport/ %{_qt6_includedir}/QtEglFsKmsGbmSupport/ %{_qt6_datadir}/modules/EglFsKmsGbmSupport.json #------------------------------------------------------------------------------ %package -n %{libqtdbus} Summary: Qt%{qtmajor} DBus Library Group: System/Libraries Requires(pre): %{name}-common = %{version} %description -n %{libqtdbus} Qt%{qtmajor} DBus Library. %files -n %{libqtdbus} %{_qt6_libdir}/libQt6DBus.so.%{qtmajor}{,.*} #------------------------------------------------------------------------------ %package -n %{libqtdbus_d} Summary: Devel files needed to build apps based on QtDBus Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common-devel = %{version}-%{release} Requires: %{libqtdbus} = %{version} Provides: libqtdbus6-devel = %{version} Provides: libqt6dbus-devel = %{version} Provides: qt6dbus-devel = %{version} Provides: qtdbus6-devel = %{version} Provides: qt6dbus-private-devel = %{version} Provides: qtdbus6-private-devel = %{version} %description -n %{libqtdbus_d} Devel files needed to build apps based on QtDBus. %files -n %{libqtdbus_d} %{_qt6_libdir}/libQt6DBus.prl %{_qt6_libdir}/libQt6DBus.so %{_qt6_libdir}/cmake/Qt6DBus/ %{_qt6_includedir}/QtDBus/ %{_qt6_datadir}/modules/DBus.json %{_libdir}/cmake/Qt6DBusTools #------------------------------------------------------------------------------ %package -n %{libqteglfsdeviceintegration} Summary: Qt%{qtmajor} EglFSDeviceIntegrations Library Group: System/Libraries Requires(pre): %{name}-common = %{version} %description -n %{libqteglfsdeviceintegration} Qt%{qtmajor} EglFSDeviceIntegrations Library. %files -n %{libqteglfsdeviceintegration} %{_qt6_libdir}/libQt6EglFSDeviceIntegration.so.%{qtmajor}{,.*} %{_qt6_plugindir}/egldeviceintegrations/ #------------------------------------------------------------------------------ %package -n %{libqteglfsdeviceintegration_d} Summary: Devel files needed to build apps based on EglFSDeviceIntegrations Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common-devel = %{version}-%{release} Requires: %{libqteglfsdeviceintegration} = %{version} Provides: libqteglfsdeviceintegration6-devel = %{version} Provides: libqt6eglfsdeviceintegration-devel = %{version} Provides: qteglfsdeviceintegration6-devel = %{version} Provides: qt6eglfsdeviceintegration-devel = %{version} %description -n %{libqteglfsdeviceintegration_d} Devel files needed to build apps based on QtEglFSDeviceIntegrations. %files -n %{libqteglfsdeviceintegration_d} %{_qt6_includedir}/QtEglFSDeviceIntegration/ %{_qt6_libdir}/libQt6EglFSDeviceIntegration.prl %{_qt6_libdir}/libQt6EglFSDeviceIntegration.so %{_qt6_libdir}/cmake/Qt6EglFSDeviceIntegration/ %{_qt6_datadir}/modules/EglFSDeviceIntegration.json #------------------------------------------------------------------------------ %package -n %{libqteglfskmssupport} Summary: Qt%{qtmajor} EglFsKmsSupport Library Group: System/Libraries Requires(pre): %{name}-common = %{version} %description -n %{libqteglfskmssupport} Qt%{qtmajor} EglFsKmsSupport Library. %files -n %{libqteglfskmssupport} %{_qt6_libdir}/libQt6EglFsKmsSupport.so.%{qtmajor}{,.*} #------------------------------------------------------------------------------ %package -n %{libqteglfskmssupport_d} Summary: Devel files needed to build apps based on EglFsKmsSupport Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common-devel = %{version}-%{release} Requires: %{libqteglfskmssupport} = %{version} Provides: libqteglfskmssupport6-devel = %{version} Provides: libqt6eglfskmssupport-devel = %{version} Provides: qteglfskmssupport6-devel = %{version} Provides: qt6eglfskmssupport-devel = %{version} %description -n %{libqteglfskmssupport_d} Devel files needed to build apps based on QtEglFsKmsSupport. %files -n %{libqteglfskmssupport_d} %{_qt6_libdir}/libQt6EglFsKmsSupport.prl %{_qt6_libdir}/libQt6EglFsKmsSupport.so %{_qt6_libdir}/cmake/Qt6EglFsKmsSupport/ %{_qt6_includedir}/QtEglFsKmsSupport/ %{_qt6_datadir}/modules/EglFsKmsSupport.json #------------------------------------------------------------------------------ %package -n %{libqtgui} Summary: Qt%{qtmajor} GUI Library Group: System/Libraries Requires(pre): %{name}-common = %{version} %description -n %{libqtgui} Qt%{qtmajor} Component Library. The QtGui module extends QtCore with GUI functionality. %files -n %{libqtgui} %{_qt6_libdir}/libQt6Gui.so.%{qtmajor}{,.*} # (doktor5000) provide SSE2-enabled library in separate subdir as recommended by upstream # https://bugreports.qt-project.org/browse/QTBUG-35430 %ifarch %{ix86} %{_qt6_libdir}/sse2/libQt6Gui.so.%{qtmajor}{,.*} %endif %{_qt6_plugindir}/imageformats/ %{_qt6_plugindir}/platforminputcontexts/ %{_qt6_plugindir}/platformthemes/ %{_qt6_plugindir}/platforms/ #------------------------------------------------------------------------------ %package -n %{libqtgui_d} Summary: Devel files needed to build apps based on QtGui Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common = %{version}-%{release} Requires: %{name}-common-devel = %{version}-%{release} #(nl) see : https://bugreports.qt-project.org/browse/QTBUG-39859 Requires: pkgconfig(egl) Requires: pkgconfig(vulkan) Requires: %{libqtgui} = %{version} # referenced by Qt6Gui cmake files Requires: %{libqtxcbqpa_d} = %{version}-%{release} Requires: %{libqteglfsdeviceintegration_d} = %{version}-%{release} %if ! 0%{?build_bootstrap} Requires: qtwayland6 %endif Provides: libqtgui6-devel = %{version} Provides: libqt6gui-devel = %{version} Provides: qtgui6-devel = %{version} Provides: qt6gui-devel = %{version} Provides: qtgui5-private-devel = %{version} Provides: qt6gui-private-devel = %{version} %description -n %{libqtgui_d} Devel files needed to build apps based on QtGui. %files -n %{libqtgui_d} %{_qt6_libdir}/libQt6Gui.prl %{_qt6_libdir}/libQt6Gui.so %{_qt6_libdir}/cmake/Qt6Gui/ %{_qt6_includedir}/QtGui/ %{_qt6_datadir}/modules/Gui.json %{_libdir}/cmake/Qt6GuiTools %{_libdir}/metatypes/qt6gui_relwithdebinfo_metatypes.json #------------------------------------------------------------------------------ %package -n %{libqtnetwork} Summary: Qt%{qtmajor} Network Library Group: System/Libraries Requires(pre): %{name}-common = %{version} %description -n %{libqtnetwork} Qt%{qtmajor} Component Library. The QtNetwork module provides classes to make network programming easier and portable. %files -n %{libqtnetwork} %{_qt6_libdir}/libQt6Network.so.%{qtmajor}{,.*} #------------------------------------------------------------------------------ %package -n %{libqtnetwork_d} Summary: Devel files needed to build apps based on QtNetwork Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common-devel = %{version}-%{release} Requires: %{libqtnetwork} = %{version} Requires: pkgconfig(openssl) >= 1.1 Provides: libqtnetwork6-devel = %{version} Provides: libqt6network-devel = %{version} Provides: qtnetwork6-devel = %{version} Provides: qt6network-devel = %{version} Provides: qtnetwork5-private-devel = %{version} Provides: qt6network-private-devel = %{version} %description -n %{libqtnetwork_d} Devel files needed to build apps based on QtNetwork. %files -n %{libqtnetwork_d} %{_qt6_libdir}/libQt6Network.prl %{_qt6_libdir}/libQt6Network.so %{_qt6_libdir}/cmake/Qt6Network/ %{_qt6_includedir}/QtNetwork/ %{_qt6_datadir}/modules/Network.json #------------------------------------------------------------------------------ %package -n %{libqtopengl} Summary: Qt%{qtmajor} OpenGL Library Group: System/Libraries Requires(pre): %{name}-common = %{version} %description -n %{libqtopengl} Qt%{qtmajor} Component Library. The QtOpenGL module offers classes that make it easy to use OpenGL in Qt applications. %files -n %{libqtopengl} %{_qt6_libdir}/libQt6OpenGL.so.%{qtmajor}{,.*} #------------------------------------------------------------------------------ %package -n %{libqtopengl_d} Summary: Devel files needed to build apps based on QtOpenGL Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common-devel = %{version}-%{release} Requires: %{libqtopengl} = %{version} Provides: libqtopengl6-devel = %{version} Provides: libqt6opengl-devel = %{version} Provides: qtopengl6-devel = %{version} Provides: qt6opengl-devel = %{version} Provides: qtopengl6-private-devel = %{version} Provides: qt6opengl-private-devel = %{version} %description -n %{libqtopengl_d} Devel files needed to build apps based on QtOpenGL. %files -n %{libqtopengl_d} %{_qt6_libdir}/libQt6OpenGL.prl %{_qt6_libdir}/libQt6OpenGL.so %{_qt6_libdir}/cmake/Qt6OpenGL/ %{_qt6_includedir}/QtOpenGL/ %{_qt6_datadir}/modules/OpenGL.json %{_qt6_datadir}/modules/OpenGLWidgets.json %{_libdir}/cmake/Qt6OpenGLWidgets #------------------------------------------------------------------------------ %package -n %{libqt6openglwidgets} Summary: Qt%{qtmajor} OpenGL Library Group: System/Libraries Requires(pre): %{name}-common = %{version} %description -n %{libqt6openglwidgets} Qt%{qtmajor} Component Library. The QtOpenGL module offers classes that make it easy to use OpenGL in Qt applications. %files -n %{libqt6openglwidgets} %{_qt6_libdir}/libQt6OpenGLWidgets.so.%{qtmajor}{,.*} #------------------------------------------------------------------------------ %package -n %{libqt6openglwidgets_d} Summary: Devel files needed to build apps based on QtOpenGL Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common-devel = %{version}-%{release} Requires: %{libqtopengl} = %{version} Provides: libqtopenglwidgets6-devel = %{version} Provides: libqt6openglwidgets-devel = %{version} Provides: qtopenglwidgets6-devel = %{version} Provides: qt6openglwidgets-devel = %{version} Provides: qtopenglwidgets6-private-devel = %{version} Provides: qt6openglwidgets-private-devel = %{version} %description -n %{libqt6openglwidgets_d} Devel files needed to build apps based on QtOpenGL. %files -n %{libqt6openglwidgets_d} %{_qt6_libdir}/libQt6OpenGL.prl %{_qt6_libdir}/libQt6OpenGL.so %{_qt6_libdir}/cmake/Qt6OpenGL/ %{_qt6_includedir}/QtOpenGLWidgets %{_qt6_libdir}/libQt6OpenGLWidgets.prl %{_qt6_libdir}/libQt6OpenGLWidgets.so %{_qt6_datadir}/modules/OpenGL.json %{_qt6_datadir}/modules/OpenGLWidgets.json #------------------------------------------------------------------------------ %package -n %{libqtprintsupport} Summary: Qt%{qtmajor} PrintSupport Library Group: System/Libraries Requires(pre): %{name}-common = %{version} %description -n %{libqtprintsupport} Qt%{qtmajor} PrintSupport Library. %files -n %{libqtprintsupport} %{_qt6_libdir}/libQt6PrintSupport.so.%{qtmajor}{,.*} %{_qt6_plugindir}/printsupport/ #------------------------------------------------------------------------------ %package -n %{libqtprintsupport_d} Summary: Devel files needed to build apps based on QtPrintSupport Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common-devel = %{version}-%{release} Requires: %{libqtprintsupport} = %{version} Provides: libqtprintsupport6-devel = %{version} Provides: libqt6printsupport-devel = %{version} Provides: qtprintsupport6-devel = %{version} Provides: qt6printsupport-devel = %{version} Provides: qtprintsupport6-private-devel = %{version} Provides: qt6printsupport-private-devel = %{version} %description -n %{libqtprintsupport_d} Devel files needed to build apps based on QtPrintSupport. %files -n %{libqtprintsupport_d} %{_qt6_libdir}/libQt6PrintSupport.so %{_qt6_libdir}/libQt6PrintSupport.prl %{_qt6_libdir}/cmake/Qt6PrintSupport/ %{_qt6_includedir}/QtPrintSupport/ %{_qt6_datadir}/modules/PrintSupport.json %{_qt6_datadir}/modules/PrintSupport.json #------------------------------------------------------------------------------ %package -n %{libqtsql} Summary: Qt%{qtmajor} SQL Library Group: System/Libraries Requires(pre): %{name}-common = %{version} %if ! %without sqlite Requires: %{_lib}qt6-database-plugin-sqlite = %{version} %endif %if ! %without ibase Requires: %{_lib}qt6-database-plugin-ibase = %{version} %endif %description -n %{libqtsql} Qt%{qtmajor} SQL Library. %files -n %{libqtsql} %{_qt6_libdir}/libQt6Sql.so.%{qtmajor}{,.*} #------------------------------------------------------------------------------ %package -n %{libqtsql_d} Summary: Devel files needed to build apps based on QtSql Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common-devel = %{version}-%{release} Requires: %{libqtsql} = %{version} %if ! %without odbc Requires: qtbase6-database-plugin-odbc %endif %if ! %without tds Requires: qtbase6-database-plugin-tds %endif %if ! %without mysql Requires: qtbase6-database-plugin-mysql %endif %if ! %without postgres Requires: qtbase6-database-plugin-pgsql %endif %if ! %without sqlite Requires: qtbase6-database-plugin-sqlite %endif %if ! %without ibase Requires: qtbase6-database-plugin-ibase %endif Provides: libqtsql6-devel = %{version} Provides: libqt6sql-devel = %{version} Provides: qt6sql-devel = %{version} Provides: qtsql6-devel = %{version} Provides: libqtsql6-private-devel = %{version} Provides: libqt6sql-private-devel = %{version} Provides: qt6sql-private-devel = %{version} Provides: qtsql6-private-devel = %{version} %description -n %{libqtsql_d} Devel files needed to build apps based on QtSql. %files -n %{libqtsql_d} %{_qt6_libdir}/libQt6Sql.prl %{_qt6_libdir}/libQt6Sql.so %{_qt6_libdir}/cmake/Qt6Sql/ %{_qt6_includedir}/QtSql/ %{_qt6_datadir}/modules/Sql.json #------------------------------------------------------------------------------ %package -n %{libqttest} Summary: Qt%{qtmajor} Test Library Group: System/Libraries Requires(pre): %{name}-common = %{version} %description -n %{libqttest} Qt%{qtmajor} Component Library. The QtTest module provides classes for unit testing Qt applications and libraries. %files -n %{libqttest} %{_qt6_libdir}/libQt6Test.so.%{qtmajor}{,.*} #------------------------------------------------------------------------------ %package -n %{libqttest_d} Summary: Devel files needed to build apps based on QtTest Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common-devel = %{version}-%{release} Requires: %{libqttest} = %{version} Provides: libqttest6-devel = %{version} Provides: libqt6test-devel = %{version} Provides: qttest6-devel = %{version} Provides: qt6test-devel = %{version} Provides: qttest6-private-devel = %{version} Provides: qt6test-private-devel = %{version} Requires: qtwidgets6-devel = %{version}-%{release} %description -n %{libqttest_d} Devel files needed to build apps based on QtTest. %files -n %{libqttest_d} %{_qt6_libdir}/libQt6Test.prl %{_qt6_libdir}/libQt6Test.so %{_qt6_libdir}/cmake/Qt6Test/ %{_qt6_includedir}/QtTest/ %{_qt6_datadir}/modules/Test.json #------------------------------------------------------------------------------ %package -n %{libqtwidgets} Summary: Qt%{qtmajor} Widgets Library Group: System/Libraries Requires(pre): %{name}-common = %{version} %description -n %{libqtwidgets} Qt%{qtmajor} Widgets Library. %files -n %{libqtwidgets} %{_qt6_libdir}/libQt6Widgets.so.%{qtmajor}{,.*} #------------------------------------------------------------------------------ %package -n %{libqtwidgets_d} Summary: Devel files needed to build apps based on QtWidgets Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common-devel = %{version}-%{release} Requires: %{libqtwidgets} = %{version} Provides: libqtwidgets6-devel = %{version} Provides: libqt6widgets-devel = %{version} Provides: qtwidgets6-devel = %{version} Provides: qt6widgets-devel = %{version} Provides: qtwidgets6-private-devel = %{version} Provides: qt6widgets-private-devel = %{version} %description -n %{libqtwidgets_d} Devel files needed to build apps based on QtWidgets. %files -n %{libqtwidgets_d} %{_qt6_libdir}/libQt6Widgets.so %{_qt6_libdir}/libQt6Widgets.prl %{_qt6_libdir}/cmake/Qt6Widgets/ %{_qt6_includedir}/QtWidgets/ %{_qt6_datadir}/modules/Widgets.json %{_libdir}/metatypes/qt6widgets_relwithdebinfo_metatypes.json %{_libdir}/cmake/Qt6WidgetsTools/ #------------------------------------------------------------------------------ %package -n %{libqtxcbqpa} Summary: Qt%{qtmajor} XcbQpa Library Group: System/Libraries Requires(pre): %{name}-common = %{version} %description -n %{libqtxcbqpa} Qt%{qtmajor} XcbQpa Library. %files -n %{libqtxcbqpa} %{_qt6_libdir}/libQt6XcbQpa.so.%{qtmajor}{,.*} %{_qt6_plugindir}/xcbglintegrations/ #------------------------------------------------------------------------------ %package -n %{libqtxcbqpa_d} Summary: Devel files needed to build apps based on QtXcbQpa Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common-devel = %{version}-%{release} Requires: %{libqtxcbqpa} = %{version} Provides: libqtxcbqpa6-devel = %{version} Provides: libqt6xcbqpa-devel = %{version} Provides: qtxcbqpa6-devel = %{version} Provides: qt6xcbqpa-devel = %{version} %description -n %{libqtxcbqpa_d} Devel files needed to build apps based on QtXcbQpa. %files -n %{libqtxcbqpa_d} %{_qt6_libdir}/libQt6XcbQpa.prl %{_qt6_libdir}/libQt6XcbQpa.so %{_qt6_libdir}/cmake/Qt6XcbQpa/ %{_qt6_datadir}/modules/XcbQpa.json #------------------------------------------------------------------------------ %package -n %{libqtxml} Summary: Qt%{qtmajor} XML Library Group: System/Libraries Requires(pre): %{name}-common = %{version} %description -n %{libqtxml} Qt%{qtmajor} Component Library. The QtXml module provides a stream reader and writer for XML documents, and C++ implementations of SAX and DOM. %files -n %{libqtxml} %{_qt6_libdir}/libQt6Xml.so.%{qtmajor}{,.*} #------------------------------------------------------------------------------ %package -n %{libqtxml_d} Summary: Devel files needed to build apps based on QtXml Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common-devel = %{version}-%{release} Requires: %{libqtxml} = %{version} Provides: libqtxml6-devel = %{version} Provides: libqt6xml-devel = %{version} Provides: qtxml6-devel = %{version} Provides: qt6xml-devel = %{version} %description -n %{libqtxml_d} Devel files needed to build apps based on QtXml. %files -n %{libqtxml_d} %{_qt6_libdir}/libQt6Xml.prl %{_qt6_libdir}/libQt6Xml.so %{_qt6_libdir}/cmake/Qt6Xml/ %{_qt6_includedir}/QtXml/ %{_qt6_datadir}/modules/Xml.json #------------------------------------------------------------------------------ %package -n %{libqtdevel} Summary: Development files for the Qt%{qtmajor} GUI toolkit Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Provides: qt6-devel = %{version}-%{release} Provides: qtbase6-devel = %{version}-%{release} Provides: libqtbase6-devel = %{version}-%{release} Provides: libqt6-devel = %{version}-%{release} Requires: %{name}-common-devel = %{version}-%{release} Requires: %{libqtcore_d} = %{version}-%{release} Requires: %{libqtconcurrent_d} = %{version}-%{release} Requires: %{libqtdbus_d} = %{version}-%{release} Requires: %{libqteglfsdeviceintegration_d} = %{version}-%{release} Requires: %{libqteglfskmssupport_d} = %{version}-%{release} Requires: %{libqtgui_d} = %{version}-%{release} Requires: %{libqtnetwork_d} = %{version}-%{release} Requires: %{libqtopengl_d} = %{version}-%{release} Requires: %{libqtprintsupport_d} = %{version}-%{release} Requires: %{libqtsql_d} = %{version}-%{release} Requires: %{libqttest_d} = %{version}-%{release} Requires: %{libqtwidgets_d} = %{version}-%{release} Requires: %{libqtxml_d} = %{version}-%{release} Requires: %{libqtxcbqpa_d} = %{version}-%{release} %description -n %{libqtdevel} The %{libqtdevel} package contains the files necessary to develop applications using the Qt GUI toolkit: the header files, the Qt meta object compiler, and the static libraries. See the address http://qt-project.org/ for more information about Qt%{qtmajor}. %files -n %{libqtdevel} #------------------------------------------------------------------------------ # SUPPORT STATIC LIBRARIES #------------------------------------------------------------------------------ %package -n %{libqtdevicediscoverysupport_d} Summary: Devel files needed to build apps based on DeviceDiscoverySupport Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common-devel = %{version}-%{release} Provides: libqtdevicediscoverysupport6-devel = %{version} Provides: libqt6devicediscoverysupport-devel = %{version} Provides: qtdevicediscoverysupport6-devel = %{version} Provides: qt6devicediscoverysupport-devel = %{version} %description -n %{libqtdevicediscoverysupport_d} Devel files needed to build apps based on QtDeviceDiscoverySupport. %files -n %{libqtdevicediscoverysupport_d} %{_qt6_libdir}/libQt6DeviceDiscoverySupport.a %{_qt6_libdir}/libQt6DeviceDiscoverySupport.prl %{_qt6_libdir}/cmake/Qt6DeviceDiscoverySupport/ %{_qt6_includedir}/QtDeviceDiscoverySupport/ %{_qt6_datadir}/modules/DeviceDiscoverySupport.json #------------------------------------------------------------------------------ %package -n %{libqtfbsupport_d} Summary: Devel files needed to build apps based on FbSupport Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common-devel = %{version}-%{release} Provides: libqtfbsupport6-devel = %{version} Provides: libqt6fbsupport-devel = %{version} Provides: qtfbsupport6-devel = %{version} Provides: qt6fbsupport-devel = %{version} %description -n %{libqtfbsupport_d} Devel files needed to build apps based on QtFbSupport. %files -n %{libqtfbsupport_d} %{_qt6_libdir}/libQt6FbSupport.a %{_qt6_libdir}/libQt6FbSupport.prl %{_qt6_libdir}/cmake/Qt6FbSupport/ %{_qt6_includedir}/QtFbSupport/ #------------------------------------------------------------------------------ %package -n %{libqtinputsupport_d} Summary: Devel files needed to build apps based on InputSupport Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common-devel = %{version}-%{release} Provides: libqtinputsupport6-devel = %{version} Provides: libqt6inputsupport-devel = %{version} Provides: qtinputsupport6-devel = %{version} Provides: qt6inputsupport-devel = %{version} %description -n %{libqtinputsupport_d} Devel files needed to build apps based on QtInputSupport. %files -n %{libqtinputsupport_d} %{_qt6_libdir}/libQt6InputSupport.a %{_qt6_libdir}/libQt6InputSupport.prl %{_qt6_libdir}/cmake/Qt6InputSupport/ %{_qt6_includedir}/QtInputSupport/ %{_qt6_datadir}/modules/InputSupport.json #------------------------------------------------------------------------------ %package -n %{libqtkmssupport_d} Summary: Devel files needed to build apps based on KmsSupport Group: Development/KDE and Qt Requires(pre): %{name}-common = %{version} Requires: %{name}-common-devel = %{version}-%{release} Provides: libqtkmssupport6-devel = %{version} Provides: libqt6kmssupport-devel = %{version} Provides: qtkmssupport6-devel = %{version} Provides: qt6kmssupport-devel = %{version} %description -n %{libqtkmssupport_d} Devel files needed to build apps based on QtKmsSupport. %files -n %{libqtkmssupport_d} %{_qt6_libdir}/libQt6KmsSupport.a %{_qt6_libdir}/libQt6KmsSupport.prl %{_qt6_libdir}/cmake/Qt6KmsSupport/ %{_qt6_includedir}/QtKmsSupport/ %{_qt6_datadir}/modules/KmsSupport.json #------------------------------------------------------------------------------ # DATABASE PLUGINS #------------------------------------------------------------------------------ %if ! %without odbc %package -n %{_lib}qt6-database-plugin-odbc Summary: Qt%{qtmajor} Database ODBC Database Plugin Group: Databases BuildRequires: unixODBC-devel Provides: qt6-database-plugin-odbc = %{version}-%{release} Provides: qtbase6-database-plugin-odbc = %{version}-%{release} %description -n %{_lib}qt6-database-plugin-odbc The QODBC driver allows you to connect to an ODBC (Open Database Connectivity) driver manager and access the available data sources. %files -n %{_lib}qt6-database-plugin-odbc %{_qt6_plugindir}/sqldrivers/libqsqlodbc.so %endif #------------------------------------------------------------------------------ %if ! %without mysql %package -n %{_lib}qt6-database-plugin-mysql Summary: Qt%{qtmajor} MYSQL Database Plugin Group: Databases BuildRequires: mysql-devel Provides: qt6-database-plugin-mysql = %{version}-%{release} Provides: qtbase6-database-plugin-mysql = %{version}-%{release} %description -n %{_lib}qt6-database-plugin-mysql Database plugin for mysql Qt support. %files -n %{_lib}qt6-database-plugin-mysql %{_qt6_plugindir}/sqldrivers/libqsqlmysql.so %endif #------------------------------------------------------------------------------ %if ! %without sqlite %package -n %{_lib}qt6-database-plugin-sqlite Summary: Qt%{qtmajor} SQLITE Database Plugin Group: Databases BuildRequires: pkgconfig(sqlite3) Provides: qt6-database-plugin-sqlite = %{version}-%{release} Provides: qtbase6-database-plugin-sqlite = %{version}-%{release} %description -n %{_lib}qt6-database-plugin-sqlite The Qt SQLite plugin makes it possible to access SQLite databases. %files -n %{_lib}qt6-database-plugin-sqlite %{_qt6_plugindir}/sqldrivers/libqsqlite.so %endif #------------------------------------------------------------------------------ %if ! %without tds %package -n %{_lib}qt6-database-plugin-tds Summary: Qt%{qtmajor} FREETDS Database Plugin Group: Databases BuildRequires: freetds-devel Provides: qt6-database-plugin-tds = %{version}-%{release} Provides: qtbase6-database-plugin-tds = %{version}-%{release} %description -n %{_lib}qt6-database-plugin-tds Database plugin for freetds Qt support. %files -n %{_lib}qt6-database-plugin-tds #%{_qt6_plugindir}/sqldrivers/libqsqltds.so %endif #------------------------------------------------------------------------------ %if ! %without ibase %package -n %{_lib}qt6-database-plugin-ibase Summary: Qt%{qtmajor} Interbase Database Plugin Group: Databases BuildRequires: firebird-devel BuildRequires: pkgconfig(fbclient) Provides: qt6-database-plugin-ibase = %{version}-%{release} Provides: qtbase6-database-plugin-ibase = %{version}-%{release} %description -n %{_lib}qt6-database-plugin-ibase Database plugin for interbase Qt support. %files -n %{_lib}qt6-database-plugin-ibase #%{_qt6_plugindir}/sqldrivers/libqsqlibase.so %endif #------------------------------------------------------------------------------ %if ! %without postgres %package -n %{_lib}qt6-database-plugin-pgsql Summary: Qt%{qtmajor} PGSQL Database Plugin Group: Databases BuildRequires: postgresql-devel BuildRequires: libpq-devel Provides: qt6-database-plugin-pgsql = %{version}-%{release} Provides: qtbase6-database-plugin-pgsql = %{version}-%{release} %description -n %{_lib}qt6-database-plugin-pgsql Database plugin for pgsql Qt support. %files -n %{_lib}qt6-database-plugin-pgsql %{_qt6_plugindir}/sqldrivers/libqsqlpsql.so %endif #------------------------------------------------------------------------------ %prep %setup -q -n qtbase-everywhere-src-%{qtversion} %autopatch -p1 # Unlike Fedora, we don't modify the installed mkspecs to contain our flags, # which would have the side effect that plain 'qmake' would use them as well # (i.e. even when not building an rpm), which is not really wanted. Our # packages are built with %%qmake_qt6 (qt6.macros) which already overrides the # flags, so altering qmake default configuration for that is unnecessary. # Since the Qt configure script doesn't support defining custom flags, we # still have to temporarily override the flags below - they are restored in # %%install. -Anssi cp mkspecs/linux-g++/qmake.conf mkspecs/linux-g++/qmake.conf.upstream cat >> mkspecs/linux-g++/qmake.conf < %{buildroot}%{_sysconfdir}/profile.d/60qt6.sh << EOF #!/bin/bash QTDIR5="%{_qt6_archdatadir}" ; export QTDIR5 ; [ -z \$QT6DOCDIR ] && export QT6DOCDIR=%{_qt6_docdir} if [ -z \$(echo \$PATH | grep "%{_qt6_bindir}") ]; then PATH=\${PATH}:%{_qt6_bindir} export PATH fi EOF cat > %{buildroot}%{_sysconfdir}/profile.d/60qt6.csh << EOF #!/bin/csh setenv QTDIR6 %{_qt6_archdatadir} if ( ! \$?QT6DOCDIR ) setenv QT6DOCDIR %{_qt6_docdir} set path = (\$path \$QTDIR6/bin) EOF # Taken from OpenSUSE # syncqt is installed in both %%_qt6_bindir and %%_qt6_libdir # QtSyncQtHelpers.cmake needs the libexec one...and qmake the other one. # Creating a symlink is not necessary rm %{buildroot}%{_qt6_bindir}/syncqt.pl ln -s %{_libdir}/syncqt.pl %{buildroot}%{_qt6_bindir}/syncqt.pl #rm %{buildroot}/%{_qt6_bindir}/android_cmakelist_patcherqt-cmake-private-install.cmake # Use better location for some new scripts in qtbase-6.0.1 #mv %{buildroot}/%{_qt6_libdir}/android_cmakelist_patcher.sh %{buildroot}/%{_qt6_bindir}/android_cmakelist_patcher.sh #mv %{buildroot}/%{_qt6_libdir}/android_emulator_launcher.sh %{buildroot}/%{_qt6_bindir}/android_emulator_launcher.sh mv %{buildroot}/%{_libdir}/ensure_pro_file.cmake %{buildroot}/%{_qt6_libdir}/cmake/Qt6/ensure_pro_file.cmake # .la and .a files, die, die, die. rm -f %{buildroot}%{_qt6_libdir}/lib*.la # .a files are needed by qttols5 #rm -f %%{buildroot}%%{_qt6_libdir}/lib*.a