Add proper npm obsoletes

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
Stephen Gallagher 2022-11-30 13:27:47 -05:00
parent 592c8cae25
commit cc73e226d4
No known key found for this signature in database
GPG Key ID: 45DB85A568286D11

View File

@ -121,6 +121,8 @@
%global npm_envr %{npm_epoch}:%{npm_version}-%{npm_release}
%global npm_obsoletes 1:8.19.2-1.18.12.1.3
# uvwasi - from deps/uvwasi/include/uvwasi.h
%global uvwasi_version 0.0.13
@ -426,6 +428,9 @@ Provides: npm(npm) = %{npm_version}
# Satisfy dependency requests for "npm"
Provides: npm = %{npm_envr}
# Obsolete the old 'npm' package
Obsoletes: npm < %{npm_obsoletes}
%description -n %{pkgname}-npm
npm is a package manager for node.js. You can use it to install and publish