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.
This commit is contained in:
Neal Gompa 2020-08-22 12:37:27 -04:00
parent 9107d39acb
commit b991c736e2
1 changed files with 3 additions and 0 deletions

View File

@ -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