Console Output
16:05:17 + diff -uw openmodelica.spec.tpl.old.fc42 openmodelica.spec.tpl.fc42
16:05:17 --- openmodelica.spec.tpl.old.fc42 2026-01-27 15:05:17.686803036 +0000
16:05:17 +++ openmodelica.spec.tpl.fc42 2026-01-27 15:05:17.182807187 +0000
16:05:17 @@ -77,15 +77,27 @@
16:05:17 BuildRequires: gcc
16:05:17 BuildRequires: gcc-c++
16:05:17 BuildRequires: gcc-gfortran
16:05:17 +%if 0%{?rhel} <= 9
16:05:17 BuildRequires: qt5-qtwebkit-devel
16:05:17 BuildRequires: qt5-linguist
16:05:17 BuildRequires: qt5-qttools
16:05:17 BuildRequires: qt5-qtbase-devel
16:05:17 BuildRequires: qt5-qtsvg-devel
16:05:17 +BuildRequires: qt5-qtxmlpatterns-devel
16:05:17 +%else
16:05:17 +# el 10 does not have qt5-qtwebkit anymore, use qt6
16:05:17 +BuildRequires: qt6-qtwebengine-devel
16:05:17 +BuildRequires: qt6-linguist
16:05:17 +BuildRequires: qt6-qttools
16:05:17 +BuildRequires: qt6-qtbase-devel
16:05:17 +BuildRequires: qt6-qtsvg-devel
16:05:17 +BuildRequires: qt6-qt3d-devel
16:05:17 +BuildRequires: qt6-qt5compat-devel
16:05:17 +%endif
16:05:17 %if 0%{?rhel} >= 7
16:05:17 BuildRequires: qt5-qt3d-devel
16:05:17 %endif
16:05:17 -BuildRequires: qt5-qtxmlpatterns-devel
16:05:17 +
16:05:17
16:05:17 # Use cmake versions > 3. On EL7 this is provided by cmake3 package.
16:05:17 # On EL > 7 it is just cmake.
16:05:17 @@ -126,6 +138,15 @@
16:05:17 BuildRequires: OpenSceneGraph-devel
16:05:17 %endif
16:05:17
16:05:17 +%if 0%{?rhel} >= 10
16:05:17 +%define withqt6 --with-qt6
16:05:17 +%define omqtversion=QT6
16:05:17 +%else
16:05:17 +%define withqt6 ''
16:05:17 +%define omqtversion=QT5
16:05:17 +%endif
16:05:17 +
16:05:17 +
16:05:17 # We should use clang, but OMEdit does not compile with it due to odd default qmake flags
16:05:17 Requires: gcc
16:05:17 Requires: gcc-c++
16:05:17 @@ -166,7 +187,7 @@
16:05:17 %endif
16:05:17
16:05:17 autoreconf --install
16:05:17 -./configure CFLAGS="-Os" CXXFLAGS="-Os" QTDIR=/usr/%{_lib}/qt5/ %{withomniorb} CONFIGUREFLAGS %{?devtoolsconfigureflags} --without-omc --prefix=/opt/%{name} --without-omlibrary %{cmakecommand}
16:05:17 +./configure CFLAGS="-Os" CXXFLAGS="-Os" QTDIR=/usr/%{_lib}/{omqtversion} %{withomniorb} %{withqt6} CONFIGUREFLAGS %{?devtoolsconfigureflags} --without-omc --prefix=/opt/%{name} --without-omlibrary %{cmakecommand}
16:05:17
16:05:17 %build
16:05:17