diff --git a/gcc-toolset-15.spec b/gcc-toolset-15.spec index 72585cc..f4eed9b 100644 --- a/gcc-toolset-15.spec +++ b/gcc-toolset-15.spec @@ -113,10 +113,15 @@ EOF %build # Temporary helper script used by help2man. +%if %have_scl_utils +%define version_string %{?scl_name} %{version} Software Collection +%else +%define version_string %{?scl_name} %{version} +%endif cat <<\EOF | tee h2m_helper #!/bin/sh if [ "$1" = "--version" ]; then - printf '%%s' "%{?scl_name} %{version} Software Collection" + printf '%%s' "%{version_string}" else cat README fi