From 1eb064f9ec572ab13df25902e03d295e932b2bd4 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 18f9621..49e3a1f 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 18 %global min_ver 1