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 15:23:07 -04:00
parent 7000efe305
commit 0362f42fb0
No known key found for this signature in database
GPG key ID: 45DB85A568286D11
2 changed files with 4 additions and 2 deletions

View file

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

View file

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