From 630d2eb2b062ec8fce9aa199d018e919540afe1a Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Fri, 27 Sep 2024 12:42:58 +0200 Subject: [PATCH] Disable snapshots by default Since https://github.com/fedora-llvm-team/llvm-snapshots/pull/754 all build chroots on Copr that are used for snapshot building will have `--with=snapshot_build` set. This addresses the concern [1] that Copr specific conditionals are discouraged if not forbidden in spec files. [1]: https://src.fedoraproject.org/rpms/llvm/pull-request/301#comment-221782 --- llvm.spec | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/llvm.spec b/llvm.spec index d3f270c..7ed9799 100644 --- a/llvm.spec +++ b/llvm.spec @@ -1,17 +1,4 @@ -# We assume that we're building a snapshot if the if the build happens -# in Copr and the project has this prefix: @fedora-llvm-team/llvm-snapshots- -%global copr_snapshot_build_detected %(/bin/bash -fc 'if [[ "%{?copr_username}/%{?copr_projectname}" == @fedora-llvm-team/llvm-snapshots-* ]]; -then - echo "yes" -else - echo "no" -fi') - -%if "%{copr_snapshot_build_detected}" == "yes" -%bcond_without snapshot_build -%else %bcond_with snapshot_build -%endif %global maj_ver 19 %global min_ver 1