| |
@@ -559,6 +559,10 @@
|
| |
# https://github.com/ruby/ruby/blob/trunk/tool/compile_prelude.rb#L26
|
| |
cp -a %{SOURCE6} .
|
| |
|
| |
+ # Install custom operating_system.rb.
|
| |
+ mkdir -p lib/rubygems/defaults
|
| |
+ install -m 644 %{SOURCE1} lib/rubygems/defaults
|
| |
+
|
| |
%build
|
| |
autoconf
|
| |
|
| |
@@ -629,13 +633,6 @@
|
| |
install -m 755 %{SOURCE10} %{buildroot}%{_rpmconfigdir}
|
| |
install -m 755 %{SOURCE11} %{buildroot}%{_rpmconfigdir}
|
| |
|
| |
- # Install custom operating_system.rb.
|
| |
- mkdir -p %{buildroot}%{rubygems_dir}/rubygems/defaults
|
| |
- cp %{SOURCE1} %{buildroot}%{rubygems_dir}/rubygems/defaults
|
| |
-
|
| |
- # Move gems root into common direcotry, out of Ruby directory structure.
|
| |
- mv %{buildroot}%{ruby_libdir}/gems %{buildroot}%{gem_dir}
|
| |
-
|
| |
# Create folders for gem binary extensions.
|
| |
# TODO: These folders should go into rubygem-filesystem but how to achieve it,
|
| |
# since noarch package cannot provide arch dependent subpackages?
|
| |
This helps Ruby installation process to pickup the operating_system.rb and make interference with possibly installed ruby less painful (although there might be still some interferences and I strongly discourage to have Ruby installed during the build of Ruby).