Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-gem2rpm for openSUSE:Factory
checked in at 2026-01-05 14:51:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-gem2rpm (Old)
and /work/SRC/openSUSE:Factory/.rubygem-gem2rpm.new.1928 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-gem2rpm"
Mon Jan 5 14:51:20 2026 rev:39 rq:1324400 version:0.10.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-gem2rpm/rubygem-gem2rpm.changes
2025-08-25 20:36:51.412971010 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-gem2rpm.new.1928/rubygem-gem2rpm.changes
2026-01-05 14:51:54.475149931 +0100
@@ -1,0 +2,28 @@
+Thu Dec 25 12:29:21 UTC 2025 - Marcus Rueckert <[email protected]>
+
+- use final 4.0 ABI
+
+-------------------------------------------------------------------
+Wed Dec 24 09:49:59 UTC 2025 - Marcus Rueckert <[email protected]>
+
+- bump 4.0 ABI for preview 3
+
+-------------------------------------------------------------------
+Tue Dec 2 13:16:33 UTC 2025 - Marcus Rueckert <[email protected]>
+
+- Update suse.patch:
+ 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.
+
+-------------------------------------------------------------------
+Tue Dec 2 12:29:33 UTC 2025 - Marcus Rueckert <[email protected]>
+
+- Add missing BR for 4.0 support
+
+-------------------------------------------------------------------
+Tue Nov 18 15:20:02 UTC 2025 - Marcus Rueckert <[email protected]>
+
+- Enable ruby 4.0 support
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-gem2rpm.spec ++++++
--- /var/tmp/diff_new_pack.FwUs0O/_old 2026-01-05 14:51:56.015214073 +0100
+++ /var/tmp/diff_new_pack.FwUs0O/_new 2026-01-05 14:51:56.019214240 +0100
@@ -23,6 +23,7 @@
%bcond_with ruby33
%bcond_with ruby34
%bcond_with ruby35
+%bcond_with ruby40
Name: rubygem-gem2rpm
Version: 0.10.1
@@ -49,6 +50,9 @@
%if %{with ruby35}
BuildRequires: ruby3.5
%endif
+%if %{with ruby40}
+BuildRequires: ruby4.0
+%endif
BuildRequires: ruby-macros >= 5
%if %{with gem2rpm_bootstrap}
#!BuildIgnore: rubygem(gem2rpm) rubygem(ruby:2.1.0:gem2rpm)
rubygem(ruby:2.2.0:gem2rpm) rubygem(rbx:2.2:gem2rpm)
@@ -436,6 +440,66 @@
%endif
%endif
+%if %{with ruby40}
+%define rb_400_abi 4.0.0
+
+%package -n ruby4.0-rubygem-gem2rpm
+Summary: Generate rpm specfiles from gems
+Group: Development/Languages/Ruby
+Requires(post): update-alternatives
+Requires(preun): update-alternatives
+
+%description -n ruby4.0-rubygem-gem2rpm
+Generate source rpms and rpm spec files from a Ruby Gem.
+The spec file tries to follow the gem as closely as possible
+
+%package -n ruby4.0-rubygem-gem2rpm-doc
+Summary: RDoc documentation for %{mod_name}
+Group: Development/Languages/Ruby
+Requires: ruby4.0-rubygem-gem2rpm = %{version}
+
+%description -n ruby4.0-rubygem-gem2rpm-doc
+Documentation generated at gem installation time.
+Usually in RDoc and RI formats.
+
+%post -n ruby4.0-rubygem-gem2rpm
+/usr/sbin/update-alternatives --install \
+ %{_bindir}/gem2rpm gem2rpm
%{_bindir}/gem2rpm.ruby4.0-%{version} %{mod_weight}
+/usr/sbin/update-alternatives --install \
+ %{_bindir}/gem2rpm-%{version} gem2rpm-%{version}
%{_bindir}/gem2rpm.ruby4.0-%{version} %{mod_weight}
+/usr/sbin/update-alternatives --install \
+ %{_bindir}/gem2rpm.ruby4.0 gem2rpm.ruby4.0
%{_bindir}/gem2rpm.ruby4.0-%{version} %{mod_weight}
+
+%preun -n ruby4.0-rubygem-gem2rpm
+if [ "$1" = 0 ] ; then
+ /usr/sbin/update-alternatives --remove gem2rpm
%{_bindir}/gem2rpm.ruby4.0-%{version}
+ /usr/sbin/update-alternatives --remove gem2rpm-%{version}
%{_bindir}/gem2rpm.ruby4.0-%{version}
+ /usr/sbin/update-alternatives --remove gem2rpm.ruby4.0
%{_bindir}/gem2rpm.ruby4.0-%{version}
+fi
+
+%files -n ruby4.0-rubygem-gem2rpm
+%defattr(-,root,root,-)
+%{_docdir}/ruby4.0-rubygem-gem2rpm
+#{_bindir}/gem2rpm-opensuse
+%{_bindir}/gem2rpm.ruby4.0-%{version}
+%ghost %{_bindir}/gem2rpm.ruby4.0
+%ghost %{_bindir}/gem2rpm-%{version}
+%ghost %{_bindir}/gem2rpm
+%ghost %{_sysconfdir}/alternatives/gem2rpm
+%ghost %{_sysconfdir}/alternatives/gem2rpm.ruby4.0
+%ghost %{_sysconfdir}/alternatives/gem2rpm-%{version}
+# cache file
+%{_libdir}/ruby/gems/%{rb_400_abi}/cache/gem2rpm-%{version}.gem
+%{_libdir}/ruby/gems/%{rb_400_abi}/gems/gem2rpm-%{version}
+%{_libdir}/ruby/gems/%{rb_400_abi}/specifications/gem2rpm-%{version}.gemspec
+
+%if %{with docs}
+%files -n ruby4.0-rubygem-gem2rpm-doc
+%defattr(-,root,root,-)
+%doc %{_libdir}/ruby/gems/%{rb_400_abi}/doc/gem2rpm-%{version}
+%endif
+%endif
+
%else
%gem_packages
%endif
++++++ suse.patch ++++++
--- /var/tmp/diff_new_pack.FwUs0O/_old 2026-01-05 14:51:56.115218238 +0100
+++ /var/tmp/diff_new_pack.FwUs0O/_new 2026-01-05 14:51:56.123218571 +0100
@@ -108,10 +108,10 @@
end
diff --git a/gem2rpm.yml.documentation b/gem2rpm.yml.documentation
new file mode 100644
-index 0000000..ba7bc0f
+index 0000000..6c5c9f2
--- /dev/null
+++ b/gem2rpm.yml.documentation
-@@ -0,0 +1,81 @@
+@@ -0,0 +1,82 @@
+# ---
+# ## used by gem2rpm
+# :summary: this is a custom summary
@@ -127,6 +127,7 @@
+# ## used by gem2rpm and gem_packages
+# :version_suffix: '-x.y'
+# ## used by gem2rpm and gem_packages
++# ## deprecated as it was relying on has_rdoc? which is now deprecated
+# :disable_docs: true
+# ## used by gem2rpm
+# :disable_automatic_rdoc_dep: true
@@ -264,10 +265,10 @@
super.map {|d| Gem2Rpm::Dependency.new d}
diff --git a/templates/gem_packages.spec.erb b/templates/gem_packages.spec.erb
new file mode 100644
-index 0000000..314b6e5
+index 0000000..14ee9ea
--- /dev/null
+++ b/templates/gem_packages.spec.erb
-@@ -0,0 +1,320 @@
+@@ -0,0 +1,298 @@
+<%
+
+ begin
@@ -406,9 +407,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
@@ -429,23 +427,13 @@
+Requires(post): update-alternatives
+<% end -%>
+<% if has_plugins -%>
-+Conflicts: rubygem(<%= rb_pkg_abi %>)
++Conflicts: rubygem(<%= rb_pkg_abi %>) = %{version}
+<% end -%>
+Enhances: <%= rb_pkgname %>
+
+%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|
@@ -546,15 +534,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,-)
@@ -589,7 +568,7 @@
+ end
+-%>
diff --git a/templates/opensuse.spec.erb b/templates/opensuse.spec.erb
-index 37de592..080e76b 100644
+index 37de592..623e7d4 100644
--- a/templates/opensuse.spec.erb
+++ b/templates/opensuse.spec.erb
@@ -1,7 +1,12 @@
@@ -607,7 +586,7 @@
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
-@@ -12,61 +17,237 @@
+@@ -12,61 +17,235 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
@@ -786,9 +765,7 @@
+<% if config[:gem_install_args] -%>
+<%= config[:gem_install_args] %> \
+<% end -%>
-+<% if config[:disable_docs] -%>
+ --no-rdoc --no-ri \
-+<% end -%>
+<% unless spec.executables.empty? -%>
+ --symlink-binaries \
+<% end -%>