From 40655d2d51b55bae1ef4ccb2f9b0ab7bd8e7a7e9 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Mon, 8 May 2023 10:13:01 +0200 Subject: [PATCH] Build cmake-gui with Qt6 --- cmake.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmake.spec b/cmake.spec index afe459f..69f29b1 100644 --- a/cmake.spec +++ b/cmake.spec @@ -16,7 +16,7 @@ # Run git tests %bcond_without git_test -# Set to bcond_with or use --without gui to disable qt4 gui build +# Set to bcond_with or use --without gui to disable qt gui build %bcond_without gui # Use ncurses for colorful output @@ -178,7 +178,9 @@ BuildRequires: python2-devel %endif %endif %if %{with gui} -%if 0%{?fedora} || 0%{?rhel} > 7 +%if 0%{?fedora} || 0%{?rhel} > 9 +BuildRequires: pkgconfig(Qt6Widgets) +%elif 0%{?rhel} > 7 BuildRequires: pkgconfig(Qt5Widgets) %else BuildRequires: pkgconfig(QtGui)