From b991c736e22fedab6f52d7931000d10d7802b6ce Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Aug 22 2020 16:37:27 +0000 Subject: 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. --- 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