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 \