From bc07cae127a3d1df16c3b0720ff567f52861083c Mon Sep 17 00:00:00 2001 From: Jarek Prokop Date: Mon, 5 Jan 2026 10:28:52 +0100 Subject: [PATCH] Remove obsoletes & provides from Ruby < 3.0. We have carried obsoletes and provides around merged or removed packages from Fedora versions that are EOL for quite some time. Similarly to re-numbering the SourceN: declaration to be in proper sequence, Ruby 4.0.0 is a good break point to finally remove these old obsoletes/provides. However, to be careful since RHEL 9 might be a destination for Ruby 4.0, do not remove obsoletes for Ruby >= 3.0, RHEL 9 still has Ruby 3.0 which motivates the bottom version constraint on where to end. On that distro someone might enable a ruby:4.0 module after installing system ruby and then just run dnf update to get the new contents. That is not recommended nor supported, but let's not check who uses that approach by potentially breaking it. --- ruby.spec | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/ruby.spec b/ruby.spec index cb447cc..bd11514 100644 --- a/ruby.spec +++ b/ruby.spec @@ -389,15 +389,6 @@ Provides: bundled(ccan-list) Provides: bundled(rubygem-did_you_mean) = %{did_you_mean_version} Provides: bundled(rubygem-openssl) = %{openssl_version} -# Tcl/Tk support was removed from stdlib in Ruby 2.4, i.e. F27 timeframe. -Obsoletes: ruby-tcltk < 2.4.0 - -# The Net::Telnet and XMLRPC were removed in Ruby 2.8, i.e. F34 timeframe. -# https://bugs.ruby-lang.org/issues/16484 -# TODO: Update the versions prior landing in Fedora. -Obsoletes: rubygem-net-telnet < 0.2.0-%{release} -Obsoletes: rubygem-xmlrpc < 0.3.0-%{release} - %description libs This package includes the libruby, necessary to run Ruby. @@ -465,8 +456,6 @@ Macros and development tools for packaging RubyGems. %package default-gems Summary: Default gems which are part of Ruby StdLib Supplements: ruby(rubygems) -# Obsoleted by Ruby 2.7 in F32 timeframe. -Obsoletes: rubygem-did_you_mean < 1.4.0-130 # Obsoleted by Ruby 3.0 in F34 timeframe. Obsoletes: rubygem-openssl < 2.2.0-145 BuildArch: noarch @@ -482,10 +471,6 @@ Version: %{irb_version} License: Ruby OR BSD-2-Clause Provides: irb = %{version}-%{release} Provides: bundled(rubygem-irb) = %{irb_version} -# Obsoleted by Ruby 2.6 in F30 timeframe. -Provides: ruby(irb) = %{ruby_version}%{?development_release}-%{release} -Provides: ruby-irb = %{ruby_version}%{?development_release}-%{release} -Obsoletes: ruby-irb < %{ruby_version}%{?development_release}-%{release} BuildArch: noarch %description -n rubygem-irb