Fix variable substitution

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
Stephen Gallagher 2023-09-07 16:31:03 -04:00
parent 6b01995d39
commit 0fedb845a0
2 changed files with 2 additions and 2 deletions

View file

@ -204,7 +204,7 @@ Provides: nodejs = %{nodejs_envr}
# preferable to an "extra" interpreter. For example, nodejs-20.5.0 will
# replace nodejs20-20.6.0.
%define unversioned_obsoletes_of_nodejsXX_if_default() %{expand:\
Obsoletes: nodejs%{NODEJS_MAJOR}%{?1:-%{1}}\
Obsoletes: nodejs%{nodejs_pkg_major}%{?1:-%{1}}\
}
%else
%define unversioned_obsoletes_of_nodejsXX_if_default() %{nil}

View file

@ -207,7 +207,7 @@ Provides: nodejs = %{nodejs_envr}
# preferable to an "extra" interpreter. For example, nodejs-20.5.0 will
# replace nodejs20-20.6.0.
%define unversioned_obsoletes_of_nodejsXX_if_default() %{expand:\
Obsoletes: nodejs%{NODEJS_MAJOR}%{?1:-%{1}}\
Obsoletes: nodejs%{nodejs_pkg_major}%{?1:-%{1}}\
}
%else
%define unversioned_obsoletes_of_nodejsXX_if_default() %{nil}