From b991c736e22fedab6f52d7931000d10d7802b6ce Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sat, 22 Aug 2020 12:37:27 -0400 Subject: [PATCH] Add local definition of version_no_tilde macro for when it is unavailable Some older distributions do not have it present in the default build environment, because it comes from the Rust packaging macros. To avoid pulling in the Rust packaging macros unnecessarily, a local version of the macro is included for when it is unavailable. --- btrfs-progs.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/btrfs-progs.spec b/btrfs-progs.spec index 404b56e..2a8aecd 100644 --- a/btrfs-progs.spec +++ b/btrfs-progs.spec @@ -1,3 +1,6 @@ +# Local definition of version_no_tilde when it doesn't exist +%{!?version_no_tilde: %define version_no_tilde %{shrink:%(echo '%{version}' | tr '~' '-')}} + # Disable for now until version handling question is dealt with %bcond_with python