From 11654dc9a73ce78141f813c6b8a8f1164a14bc72 Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Tue, 19 Mar 2024 15:56:27 -0300 Subject: [PATCH] Automatically enable snapshot_build conditional Package llvm-snapshot-builder is provided in the snapshot Copr repository and defines llvm_sb. This can be used to automatically enable the snapshot_build conditional and avoid unintentional changes when merging rawhide <-> upstream-snapshot. --- llvm.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/llvm.spec b/llvm.spec index 47fc7f9..4ea0b33 100644 --- a/llvm.spec +++ b/llvm.spec @@ -1,4 +1,10 @@ -%bcond_with snapshot_build +# Automatically enable snapshot_build if llvm_sb is defined. +# This usually is defined via package llvm-snapshot-builder. +%if %{defined llvm_sb} + %bcond_without snapshot_build +%else + %bcond_with snapshot_build +%endif %if %{with snapshot_build} # Unlock LLVM Snapshot LUA functions