From 5c82dd3e1ee30c4c3892769c3cef359392f3d0728b48ae0a6eee56f797b53f61 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 4 Jul 2012 09:24:24 +0000 Subject: [PATCH] Accepting request 127075 from home:saschpe:branches:devel:languages:ruby - Fix old-style %gem_install macro (missing parameter) OBS-URL: https://build.opensuse.org/request/show/127075 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby?expand=0&rev=34 --- ruby.changes | 5 +++++ ruby.macros | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ruby.changes b/ruby.changes index 2c56dd0..105364d 100644 --- a/ruby.changes +++ b/ruby.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 4 08:59:02 UTC 2012 - saschpe@suse.de + +- Fix old-style %gem_install macro (missing parameter) + ------------------------------------------------------------------- Tue Jul 3 08:02:01 UTC 2012 - saschpe@suse.de diff --git a/ruby.macros b/ruby.macros index 164a7a4..03e8044 100644 --- a/ruby.macros +++ b/ruby.macros @@ -55,8 +55,8 @@ cd $GEMSPEC_SOURCE_DIR && %{gem_binary} build --verbose *.gemspec \ # building the upstream gem directly in $RPM_BUILD_ROOT without unpacking to %{_builddir} first. # %gem_install() \ -if [ %# -eq 1 ]; then \ - %{gem_binary} install --verbose --local --build-root=%{buildroot} \ +if [ %# -ge 1 ]; then \ + %{gem_binary} install --verbose --local --build-root=%{buildroot} %* \ else \ GEM_FILE=`find . -maxdepth 2 -type f -name "%{mod_name}-%{version}.gem"` \ %{gem_binary} install --verbose --local --bindir %{buildroot}%{_bindir} --install-dir %{buildroot}%{_libdir}/ruby/gems/%{rb_ver} $GEM_FILE \