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 2022-06-21 17:15:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ruby-common (Old) and /work/SRC/openSUSE:Factory/.ruby-common.new.1548 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ruby-common" Tue Jun 21 17:15:23 2022 rev:21 rq:983973 version:2.6 Changes: -------- --- /work/SRC/openSUSE:Factory/ruby-common/ruby-common.changes 2022-02-26 17:01:43.095532430 +0100 +++ /work/SRC/openSUSE:Factory/.ruby-common.new.1548/ruby-common.changes 2022-06-21 17:15:27.318348295 +0200 @@ -1,0 +2,10 @@ +Mon Jun 13 11:43:30 UTC 2022 - Marcus Rueckert <mrueck...@suse.de> + +- make %gem_unpack and %gem_build work when the default system ruby + is not installed: + + both macros now use the %{gem_binary} define and we have a common + macro %{set_gem_binary} to set this variable. the set macro will + use the ruby-find-versioned to find a versioned version of gem. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ruby.rpm-macros ++++++ --- /var/tmp/diff_new_pack.3o9J6Z/_old 2022-06-21 17:15:28.222349216 +0200 +++ /var/tmp/diff_new_pack.3o9J6Z/_new 2022-06-21 17:15:28.226349220 +0200 @@ -33,6 +33,17 @@ %rb_vendorlib %{rb_vendorlibdir} %rb_vendorarch %{rb_vendorarchdir} +%set_gem_binary() \ + %if "%{?gem_binary}" == "" \ + %global gem_binary %(/usr/bin/ruby-find-versioned gem|head -n1) \ + %endif \ + %if "%{?gem_binary}" == "" \ + echo "no gem binary found. Exiting." \ + exit 1 \ + %endif \ +%{nil} + + # %%gem_unpack macro unpacks a gem file into %%{_builddir} # # example: @@ -42,17 +53,19 @@ # %gem_unpack(s:) \ source=%{-s:%{-s*}}%{!-s:%{SOURCE0}} \ - %{?gem_binary}%{!?gem_binary:/usr/bin/gem} unpack --verbose $source \ + %{set_gem_binary} \ + %{gem_binary} unpack --verbose $source \ cd %{mod_name}-%{version} \ chmod og-w -R . \ - %{?gem_binary}%{!?gem_binary:/usr/bin/gem} specification --ruby $source > %{mod_name}-%{version}.gemspec \ + %{gem_binary} specification --ruby $source > %{mod_name}-%{version}.gemspec \ %{nil} # %%gem_build macro ... # %gem_build() \ GEMSPEC_SOURCE_DIR=`find . -maxdepth 2 -type f -name %{mod_name}-%{version}.gemspec | xargs dirname` \ -cd $GEMSPEC_SOURCE_DIR && %{?gem_binary}%{!?gem_binary:/usr/bin/gem} build --verbose %{mod_name}-%{version}.gemspec \ +%{set_gem_binary} \ +cd $GEMSPEC_SOURCE_DIR && %{gem_binary} build --verbose %{mod_name}-%{version}.gemspec \ %{nil} # %%gem_install macro ...