From 9d4e22fca9973d83b3e8b7f83f30162837125e34 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Feb 14 2024 16:28:30 +0000 Subject: Fix qt conditional The Qt interface should be enabled in Fedora builds as well as for RHEL/EPEL 9 and earlier. RHEL 10 will not have Qt 5. EPEL 10 will start with Qt 5, with the caveat that it will be removed once there is no longer a source of updates (from either Fedora or RHEL 9). --- diff --git a/bacula.spec b/bacula.spec index 2cae0b0..e9b6594 100644 --- a/bacula.spec +++ b/bacula.spec @@ -5,8 +5,10 @@ %global uid 133 %global username bacula -%if 0%{?rhel} && 0%{?rhel} <= 10 -%bcond_with qt +# RHEL 10 has only Qt 6. EPEL 10 will have Qt 5 to start, but not +# necessarily for its entire lifetime. +%if !(0%{?rhel} >= 10 || 0%{?epel} >= 11) +%bcond_without qt %endif Name: bacula