From cc73e226d4498fb8a28f2121b9a4a2c6d2b7b1eb Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Wed, 30 Nov 2022 13:27:47 -0500 Subject: [PATCH] Add proper npm obsoletes Signed-off-by: Stephen Gallagher --- nodejs18.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nodejs18.spec b/nodejs18.spec index 1a48752..f2c0bb4 100644 --- a/nodejs18.spec +++ b/nodejs18.spec @@ -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