diff --git a/README b/README index df9ab42..db95def 100644 --- a/README +++ b/README @@ -1,28 +1,27 @@ Package %{scl_name} is the main package for Red Hat GCC Toolset 15. By installing the %{scl_name} package, you will get the working set of packages that are included in Red Hat GCC -Toolset 15, which includes development and debugging tools. +Toolset 15, which includes the compiler and linker. -Usage: scl enable %{scl} +Usage: %{scl_name}-env [command] Red Hat GCC Toolset allows you to build and execute applications which are not located in the filesystem root hierarchy, but are stored in an alternative location, which is %{_scl_root} in case -of the %{scl_name} collection. +of %{scl_name}. Examples: -scl enable %{scl_name} 'command --arg' +%{scl_name}-env + Run an interactive shell wherein %{scl_name} is enabled. + +%{scl_name}-env 'command --arg' Run a specific command with the argument --arg within the %{scl_name} Red Hat GCC Toolset environment. -scl enable %{scl_name} 'gcc' +%{scl_name}-env 'gcc' Run GCC from the %{scl_name} Red Hat GCC Toolset. -scl enable %{scl_name} 'bash' - Run an interactive shell wherein the %{scl_name} software collection - is enabled. - -scl enable %{scl_name} 'man gcc' +%{scl_name}-env 'man gcc' Show man pages for the gcc command, which is a part of the %{scl_name} Red Hat GCC Toolset. diff --git a/gcc-toolset-15.spec b/gcc-toolset-15.spec index f2de75b..6f35ce8 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