Don't 'Provides:npm' on non-default

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
Stephen Gallagher 2023-04-11 10:52:20 -04:00
parent 4443d6afb2
commit 92480e0459
No known key found for this signature in database
GPG Key ID: 45DB85A568286D11

View File

@ -428,10 +428,11 @@ Recommends: %{pkgname}-docs = %{nodejs_envr}
# the automatic dependency-generation script. # the automatic dependency-generation script.
Provides: npm(npm) = %{npm_version} Provides: npm(npm) = %{npm_version}
%if 0%{?nodejs_default}
# Satisfy dependency requests for "npm" # Satisfy dependency requests for "npm"
Provides: npm = %{npm_envr} Provides: npm = %{npm_envr}
%if 0%{?nodejs_default}
# Obsolete the old 'npm' package # Obsolete the old 'npm' package
Obsoletes: npm < 1:9 Obsoletes: npm < 1:9
%endif %endif