Skip to content

Console Output

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