Accepting request 127078 from devel:languages:ruby

- Fix old-style %gem_install macro (missing parameter) (forwarded request 127075 from saschpe)

OBS-URL: https://build.opensuse.org/request/show/127078
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby?expand=0&rev=33
This commit is contained in:
Stephan Kulow 2012-07-04 09:24:58 +00:00 committed by Git OBS Bridge
commit f9d2436ac0
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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 \