Project

General

Profile

« Previous | Next » 

Revision a9ffb70c

Added by specs-from-koji (Jenkins) about 10 years ago

Update ruby193-ruby-wrapper to 0.0.2-5.el6

- Enable v8 collection too for SCL 1.1 ()

View differences:

rpms/epel-6/ruby193-ruby-wrapper/ruby-wrapper
#!/bin/bash
COMMAND="ruby $@"
SCL=FIXMESCL
scl enable FIXMESCL "$COMMAND"
scl enable $SCL "$COMMAND"
rpms/epel-6/ruby193-ruby-wrapper/ruby-wrapper-rails
#!/bin/bash
COMMAND="rails $@"
SCL=FIXMESCL
scl enable FIXMESCL "$COMMAND"
scl enable $SCL "$COMMAND"
rpms/epel-6/ruby193-ruby-wrapper/ruby-wrapper-rake
#!/bin/bash
COMMAND="rake $@"
SCL=FIXMESCL
scl enable FIXMESCL "$COMMAND"
scl enable $SCL "$COMMAND"
rpms/epel-6/ruby193-ruby-wrapper/ruby-wrapper.spec
Summary: Wrapper for %{scl_prefix} ruby.
Name: %{?scl:%scl_prefix}ruby-wrapper
Version: 0.0.2
Release: 4%{?dist}
Release: 5%{?dist}
Group: Development/Languages
License: ASL 2.0
URL: https://github.com/maxamillion/ruby-wrapper
......
install -p -m0755 %{SOURCE2} %{buildroot}%{_root_bindir}/%{scl_prefix}rails
# Modify the shim/wrapper to include the correct scl
%if "%{?scl}" == "ruby193"
sed -i 's/FIXMESCL/%{scl}\nif scl -l | grep -qw ^v8314$; then\nSCL="ruby193 v8314"\nfi/' %{buildroot}%{_root_bindir}/%{scl_prefix}ruby
sed -i 's/FIXMESCL/%{scl}\nif scl -l | grep -qw ^v8314$; then\nSCL="ruby193 v8314"\nfi/' %{buildroot}%{_root_bindir}/%{scl_prefix}rake
sed -i 's/FIXMESCL/%{scl}\nif scl -l | grep -qw ^v8314$; then\nSCL="ruby193 v8314"\nfi/' %{buildroot}%{_root_bindir}/%{scl_prefix}rails
%else
sed -i s/FIXMESCL/%{scl}/ %{buildroot}%{_root_bindir}/%{scl_prefix}ruby
sed -i s/FIXMESCL/%{scl}/ %{buildroot}%{_root_bindir}/%{scl_prefix}rake
sed -i s/FIXMESCL/%{scl}/ %{buildroot}%{_root_bindir}/%{scl_prefix}rails
%endif
mkdir -p %{buildroot}%{wrapper_doc_dir}
......
%changelog
* Tue May 06 2014 Dominic Cleal <dcleal@redhat.com> 0.0.2-5
- Enable v8 collection too for SCL 1.1 (jmontleo@redhat.com)
* Tue Dec 03 2013 Eric D Helms <ehelms@redhat.com> 0.0.2-4
- new package built with tito

Also available in: Unified diff