#39 Require irb by default.
Closed 2 years ago by vondruch. Opened 2 years ago by pvalena.
rpms/ pvalena/ruby reqirb  into  master

file modified
+9 -1
@@ -21,7 +21,7 @@ 

  %endif

  

  

- %global release 116

+ %global release 117

  %{!?release_string:%global release_string %{?development_release:0.}%{release}%{?development_release:.%{development_release}}%{?dist}}

  

  # The RubyGems library has to stay out of Ruby directory tree, since the
@@ -233,6 +233,7 @@ 

  Requires:   ruby(release)

  Recommends: rubygem(rdoc) >= %{rdoc_version}

  Recommends: rubygem(io-console) >= %{io_console_version}

+ Recommends: rubygem(irb) >= %{irb_version}

  Requires:   rubygem(openssl) >= %{openssl_version}

  Requires:   rubygem(psych) >= %{psych_version}

  Provides:   gem = %{version}-%{release}
@@ -649,6 +650,8 @@ 

  mkdir -p %{buildroot}%{gem_dir}/gems/irb-%{irb_version}/lib

  mv %{buildroot}%{ruby_libdir}/irb* %{buildroot}%{gem_dir}/gems/irb-%{irb_version}/lib

  mv %{buildroot}%{gem_dir}/specifications/default/irb-%{irb_version}.gemspec %{buildroot}%{gem_dir}/specifications

+ ln -s %{gem_dir}/gems/irb-%{irb_version}/lib/irb.rb %{buildroot}%{ruby_libdir}/irb.rb

+ ln -s %{gem_dir}/gems/irb-%{irb_version}/lib/irb %{buildroot}%{ruby_libdir}/irb

  

  mkdir -p %{buildroot}%{gem_dir}/gems/rdoc-%{rdoc_version}/lib

  mv %{buildroot}%{ruby_libdir}/rdoc* %{buildroot}%{gem_dir}/gems/rdoc-%{rdoc_version}/lib
@@ -1069,6 +1072,8 @@ 

  %{gem_dir}/gems/irb-%{irb_version}

  %{gem_dir}/specifications/irb-%{irb_version}.gemspec

  %{_mandir}/man1/irb.1*

+ %{gem_dir}/gems/irb-%{irb_version}

+ %{ruby_libdir}/irb*

  

  %files -n rubygem-rdoc

  %{_bindir}/rdoc
@@ -1165,6 +1170,9 @@ 

  %{_mandir}/man5/gemfile.5*

  

  %changelog

+ * Mon Mar 18 2019 Pavel Valena <pvalena@redhat.com> - 2.6.2-117

+ - Require irb by default.

+ 

  * Thu Mar 14 2019 Vít Ondruch <vondruch@redhat.com> - 2.6.2-116

  - Upgrade to Ruby 2.6.2.

  

TBD: testing [in progress]

Pull-Request has been closed by vondruch

2 years ago