Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ruby-common for openSUSE:Factory checked in at 2026-01-05 14:51:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ruby-common (Old) and /work/SRC/openSUSE:Factory/.ruby-common.new.1928 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ruby-common" Mon Jan 5 14:51:18 2026 rev:32 rq:1324398 version:4.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/ruby-common/ruby-common.changes 2025-01-23 17:57:02.367396572 +0100 +++ /work/SRC/openSUSE:Factory/.ruby-common.new.1928/ruby-common.changes 2026-01-05 14:51:50.322976999 +0100 @@ -1,0 +2,31 @@ +Thu Dec 25 00:05:50 UTC 2025 - Marcus Rueckert <[email protected]> + +- instead of always recommending the gem2rpm of the default ruby + version, lets recommend the version of ruby which we actually + install + +------------------------------------------------------------------- +Tue Dec 2 16:58:45 UTC 2025 - Marcus Rueckert <[email protected]> + +- Fix rubyX.Y-with(out)-yjit/jemalloc Requires. They failed when + using prerelease ruby packages. We introduce 2 new macros: + + %requires_on_provides_eq + %requires_on_provides_ge + + Which then are used by the subpackage template. + + The macros are copies of the normal %requires_(eq|ge) with 2 + changes + - only the first argument is used + - rpm -q is called with --whatprovides + +------------------------------------------------------------------- +Tue Dec 2 14:49:26 UTC 2025 - Marcus Rueckert <[email protected]> + +- Update gem_packages.spec.erb + the has_rdoc? function was actually removed. I really thought + would never happen. Since it was removed without a replacement, + we disable the rdoc/ri packages all the time now. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ruby-common.spec ++++++ --- /var/tmp/diff_new_pack.O7WZy2/_old 2026-01-05 14:51:52.163053636 +0100 +++ /var/tmp/diff_new_pack.O7WZy2/_new 2026-01-05 14:51:52.167053802 +0100 @@ -1,7 +1,7 @@ # # spec file for package ruby-common # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,7 +22,7 @@ %endif Name: ruby-common -Version: 3.2.1 +Version: 4.0.0 Release: 0 # ruby-macros and ruby-common version %define rpm_macros_version 5 @@ -54,8 +54,21 @@ Group: Development/Languages/Ruby URL: https://github.com/openSUSE/ruby-packaging/ Requires: /usr/bin/getopt +# +# the requires +# Requires: rubygem(gem2rpm) -Recommends: rubygem(%{rb_default_ruby_abi}:gem2rpm) +# old recommends +# Recommends: rubygem(%{rb_default_ruby_abi}:gem2rpm) +# new recommends +Recommends: (rubygem(ruby:4.0.0:gem2rpm) if ruby4.0) +Recommends: (rubygem(ruby:2.1.0:gem2rpm) if ruby2.1) +Recommends: (rubygem(ruby:2.5.0:gem2rpm) if ruby2.5) +Recommends: (rubygem(ruby:3.3.0:gem2rpm) if ruby3.3) +Recommends: (rubygem(ruby:3.4.0:gem2rpm) if ruby3.4) +# +#/ The End +# Requires: fdupes BuildArch: noarch Provides: ruby-macros = %{rpm_macros_version} ++++++ gem_packages.spec.erb ++++++ --- /var/tmp/diff_new_pack.O7WZy2/_old 2026-01-05 14:51:52.291058967 +0100 +++ /var/tmp/diff_new_pack.O7WZy2/_new 2026-01-05 14:51:52.299059301 +0100 @@ -35,7 +35,7 @@ found_rpm_prefix = rpm_suffix_for_feature(feature) if found_rpm_prefix - return "Requires: #{RbConfig::CONFIG['RUBY_SO_NAME']}-#{found_rpm_prefix} >= #{RbConfig::CONFIG['RUBY_PROGRAM_VERSION']}" + return "%{requires_on_provides_ge #{RbConfig::CONFIG['RUBY_SO_NAME']}-#{found_rpm_prefix}}" end # return "" @@ -136,9 +136,6 @@ #/ruby2.1 gem_plugins_dir = Gem.respond_to?(:plugindir) ? Gem.plugindir : nil has_plugins = gem_plugins_dir && not( spec.files.select {|filename| filename =~ /rubygems_plugin#{Gem.suffix_regexp}\z/ }.empty? ) - if config[:disable_docs].nil? - config[:disable_docs] ||= true - end if config[:include_testsuite].nil? config[:include_testsuite] ||= false end @@ -166,16 +163,6 @@ %description -n <%= pkg_basename %><%= config[:version_suffix] %> <%= config[:description] or spec.description -%> -<% if spec.has_rdoc? && !(config[:disable_docs]) -%> -%package -n <%= pkg_basename %>-doc<%= config[:version_suffix] %> -Summary: RDoc documentation for <%= spec.name %> -Requires: <%= pkg_basename %><%= config[:version_suffix] %> = <%= spec.version %> - -%description -n <%= pkg_basename %>-doc<%= config[:version_suffix] %> -Documentation generated at gem installation time. -Usually in RDoc and RI formats. - -<% end -%> <% test_frameworks = Hash.new docdirfiles = [] format.file_entries.each do |entry| @@ -191,6 +178,7 @@ } %w(changes copying + contributing history legal licence @@ -275,15 +263,6 @@ <% end -%> <%= gem_spec_dir %>/<%= mod_full_name -%>.gemspec -<% if spec.has_rdoc? && !(config[:disable_docs]) -%> -%files -n <%= pkg_basename %>-doc<%= config[:version_suffix] %> -%defattr(-,root,root,-) -%doc <%= gem_doc_dir %> -<% unless spec.extensions.empty? or gem_extension_doc.nil? -%> -%doc <%= gem_extension_doc %> -<% end -%> -<% end -%> - <% if config[:include_testsuite] and !test_frameworks.empty? -%> %files -n <%= pkg_basename %>-testsuite<%= config[:version_suffix] %> %defattr(-,root,root,-) ++++++ ruby.rpm-macros ++++++ --- /var/tmp/diff_new_pack.O7WZy2/_old 2026-01-05 14:51:52.443065298 +0100 +++ /var/tmp/diff_new_pack.O7WZy2/_new 2026-01-05 14:51:52.451065632 +0100 @@ -104,3 +104,7 @@ %gem_doc_ext %(%{rb_binary} -r rubygems -e 'bs = Gem::Specification.new; rp = bs.extensions_dir.rpartition(bs.base_dir); print rp[1]+"/doc"+rp[2]' ) %gem_platform %(%{rb_binary} -r rubygems -r rbconfig -e 'print Gem::Platform.new(RbConfig::CONFIG["arch"]).to_s' ) +%requires_on_provides_eq() %{expand:%(t=$(echo '%1' | LC_ALL=C xargs -r rpm -q --whatprovides --qf 'Requires: %1 = %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not"); test -n "$t" || echo "%%{error: %%%%{requires_on_provides_eq %1} does not resolve}"; echo "$t")} +%requires_on_provides_ge() %{expand:%(t=$(echo '%1' | LC_ALL=C xargs -r rpm -q --whatprovides --qf 'Requires: %1 >= %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not"); test -n "$t" || echo "%%{error: %%%%{requires_on_provides_ge %1} does not resolve}"; echo "$t")} +(No newline at EOF) +
