From 5961d2891651a58b8272e804abc84aa714d8b404 Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Mon, 12 Aug 2024 14:49:39 +0200 Subject: [PATCH] Check macro is defined before using it rhel_minor_version is -1 on RHEL 10.beta and that is less than 2 and hence bundled NSS is used But skip that logic on RHEL 10 altogether. --- firefox.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firefox.spec b/firefox.spec index 2aeb0f9..efba038 100644 --- a/firefox.spec +++ b/firefox.spec @@ -48,13 +48,13 @@ end} %global bundle_nss 0 %if 0%{?rhel} == 8 - %if %{rhel_minor_version} < 8 + %if %{rhel_minor_version} && %{rhel_minor_version} < 8 %global bundle_nss 1 %global system_nss 1 %endif %endif -%if 0%{?rhel} >= 9 - %if %{rhel_minor_version} < 2 +%if 0%{?rhel} == 9 + %if %{rhel_minor_version} && %{rhel_minor_version} < 2 %global bundle_nss 1 %global system_nss 1 %endif