Hello community, here is the log from the commit of package ruby2.6 for openSUSE:Leap:15.2 checked in at 2020-05-03 14:28:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/ruby2.6 (Old) and /work/SRC/openSUSE:Leap:15.2/.ruby2.6.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ruby2.6" Sun May 3 14:28:43 2020 rev:3 rq:799616 version:2.6.6 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/ruby2.6/ruby2.6.changes 2020-04-17 13:38:48.172276731 +0200 +++ /work/SRC/openSUSE:Leap:15.2/.ruby2.6.new.2738/ruby2.6.changes 2020-05-03 14:28:44.268436809 +0200 @@ -1,0 +2,11 @@ +Tue Apr 28 17:52:01 UTC 2020 - Marcus Rueckert <mrueck...@suse.de> + +- make sure that update-alternative weight for the default + distribution is always greater than our normal weight + +------------------------------------------------------------------- +Tue Apr 28 17:25:52 UTC 2020 - Marcus Rueckert <mrueck...@suse.de> + +- make the update-alternative weight based on the ruby version + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ruby2.6.spec ++++++ --- /var/tmp/diff_new_pack.c2HE1r/_old 2020-05-03 14:28:44.628437576 +0200 +++ /var/tmp/diff_new_pack.c2HE1r/_new 2020-05-03 14:28:44.628437576 +0200 @@ -32,6 +32,7 @@ %define api_version 2.6.0 %define rb_binary_suffix .ruby2.6 %define rb_soname ruby2.6 +%define _rb_ua_weight 26 # ruby-macros and ruby-common version %define rpm_macros_version 3 @@ -52,6 +53,9 @@ %if "%{rb_default_ruby_suffix}" == "%{rb_soname}" %define is_default_ruby 1 +%define rb_ua_weight 1%{_rb_ua_weight} +%else +%define rb_ua_weight %{_rb_ua_weight} %endif %define ua_binaries rake rdoc ri bundle bundler @@ -362,9 +366,9 @@ %post for bin in %{ua_binaries}; do /usr/sbin/update-alternatives --install \ - %{_bindir}/$bin $bin %{_bindir}/$bin.ruby%{rb_binary_suffix} 3 + %{_bindir}/$bin $bin %{_bindir}/$bin.ruby%{rb_binary_suffix} %{rb_ua_weight} /usr/sbin/update-alternatives --install \ - %{_bindir}/$bin%{rb_binary_suffix} $bin%{rb_binary_suffix} %{_bindir}/$bin.ruby%{rb_binary_suffix} 3 + %{_bindir}/$bin%{rb_binary_suffix} $bin%{rb_binary_suffix} %{_bindir}/$bin.ruby%{rb_binary_suffix} %{rb_ua_weight} done %preun