Hello community,

here is the log from the commit of package ruby2.7 for openSUSE:Factory checked 
in at 2020-04-28 22:33:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ruby2.7 (Old)
 and      /work/SRC/openSUSE:Factory/.ruby2.7.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ruby2.7"

Tue Apr 28 22:33:17 2020 rev:3 rq:798715 version:2.7.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/ruby2.7/ruby2.7.changes  2020-04-22 
20:56:26.607797684 +0200
+++ /work/SRC/openSUSE:Factory/.ruby2.7.new.2738/ruby2.7.changes        
2020-04-28 22:33:47.097912120 +0200
@@ -1,0 +2,11 @@
+Tue Apr 28 17:59:59 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:18:35 UTC 2020 - Marcus Rueckert <mrueck...@suse.de>
+
+- make the update-alternative weight based on the ruby version
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ruby2.7.spec ++++++
--- /var/tmp/diff_new_pack.tZwivp/_old  2020-04-28 22:33:48.621914964 +0200
+++ /var/tmp/diff_new_pack.tZwivp/_new  2020-04-28 22:33:48.625914972 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ruby2.7
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -32,6 +32,7 @@
 %define api_version 2.7.0
 %define rb_binary_suffix .ruby2.7
 %define rb_soname ruby2.7
+%define _rb_ua_weight 27
 
 # 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 racc racc2y y2racc
@@ -73,7 +77,7 @@
 %bcond_with    separate_stdlib
 
 #
-Url:            https://www.ruby-lang.org/
+URL:            https://www.ruby-lang.org/
 Source:         
https://cache.ruby-lang.org/pub/ruby/2.7/ruby-%{pkg_version}.tar.xz
 #
 Source3:        %{name}.macros
@@ -366,9 +370,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


Reply via email to