diff --git a/nodejs18.spec b/nodejs18.spec index bee4928..070bd56 100644 --- a/nodejs18.spec +++ b/nodejs18.spec @@ -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} diff --git a/packaging/nodejs.spec.j2 b/packaging/nodejs.spec.j2 index 4fa5e31..e3cc401 100644 --- a/packaging/nodejs.spec.j2 +++ b/packaging/nodejs.spec.j2 @@ -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}