public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/nodejs22] f45: Add better obsoletes for system-upgrade
@ 2026-11-30 10:36 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-11-30 10:36 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/nodejs22
            Branch : f45
            Commit : f192573f231a9e5b63e3bc00b7dba48255bc79fc
            Author : Jan Staněk <jstanek@redhat.com>
            Date   : 2026-11-30T11:36:23+01:00
            Stats  : +5/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/nodejs22/c/f192573f231a9e5b63e3bc00b7dba48255bc79fc?branch=f45

            Log:
            Add better obsoletes for system-upgrade

Resolves: rhbz#2584308

---
diff --git a/nodejs22.spec b/nodejs22.spec
index 02de06b..6729134 100644
--- a/nodejs22.spec
+++ b/nodejs22.spec
@@ -79,6 +79,9 @@
 # Obsolete un-versioned default stream RPMs; can be removed when F43 is EOL
 %define obsolete_default_stream_rpm() %{expand:\
 Obsoletes: nodejs%{?1:-%{1}} < %{?2}%{!?2:1:22.22.0-4%{?dist}}
+# Specifically obsolete anything from F43, where the renaming did not happen
+# This should keep upgrade path clean
+Obsoletes: nodejs%{?1:-%{1}} < %{?2}%{!?2:%{node_epoch}:%{node_version}-%(echo %{node_release}|sed -E 's/fc[0-9]+/fc43/')}
 Provides:  nodejs%{?1:-%{1}} = %{?2}%{!?2:%{node_evr}}
 }
 
@@ -271,6 +274,8 @@ Requires:       %{_bindir}/npm
 Recommends:     %{name}-npm-bin >= %{npm_evr}
 
 Obsoletes:      nodejs-npm < 1:10.9.4-1.22.22.0.4%{?dist}
+# For clean upgrade path from F43
+Obsoletes:      nodejs-npm < %{npm_epoch}:%{npm_version}-%(echo %{npm_release}|sed -E 's/fc[0-9]+/fc43/')
 Provides:       nodejs-npm = %{npm_evr}
 
 %description    npm

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-30 10:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 10:36 [rpms/nodejs22] f45: Add better obsoletes for system-upgrade 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox