From bf77301d0d0033def62427d8a793188139670800 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Wed, 19 Jul 2023 22:00:24 -0600 Subject: [PATCH] Fix ocaml conditional --- clamav.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/clamav.spec b/clamav.spec index 454d7b7..13c52e2 100644 --- a/clamav.spec +++ b/clamav.spec @@ -8,10 +8,11 @@ # Failing with llvm 14 https://github.com/Cisco-Talos/clamav/issues/581 %bcond_with llvm -%ifnarch %{ix86} s390 s390x -%global have_ocaml 1 +# No ocaml on ix86 +%ifarch %{ix86} +%bcond_with ocaml %else -%global have_ocaml 0 +%bacond_without ocaml %endif %global scanuser clamscan @@ -110,7 +111,7 @@ BuildRequires: bc BuildRequires: tcl BuildRequires: groff BuildRequires: graphviz -%{?have_ocaml:BuildRequires: ocaml} +%{?with_ocaml::BuildRequires: ocaml} # nc required for tests BuildRequires: nc %{?systemd_requires}