Make symlinks for json gem.
This commit is contained in:
parent
cad4c2ab27
commit
b1466a4c8f
10
ruby.spec
10
ruby.spec
@ -21,7 +21,7 @@
|
||||
%endif
|
||||
|
||||
|
||||
%global release 56
|
||||
%global release 57
|
||||
%{!?release_string:%global release_string %{?development_release:0.}%{release}%{?development_release:.%{development_release}}%{?dist}}
|
||||
|
||||
# The RubyGems library has to stay out of Ruby directory three, since the
|
||||
@ -591,6 +591,9 @@ mkdir -p %{buildroot}%{_libdir}/gems/%{name}/json-%{json_version}
|
||||
mv %{buildroot}%{ruby_libdir}/json* %{buildroot}%{gem_dir}/gems/json-%{json_version}/lib
|
||||
mv %{buildroot}%{ruby_libarchdir}/json/ %{buildroot}%{_libdir}/gems/%{name}/json-%{json_version}/
|
||||
mv %{buildroot}%{gem_dir}/specifications/default/json-%{json_version}.gemspec %{buildroot}%{gem_dir}/specifications
|
||||
ln -s %{gem_dir}/gems/json-%{json_version}/lib/json.rb %{buildroot}%{ruby_libdir}/json.rb
|
||||
ln -s %{gem_dir}/gems/json-%{json_version}/lib/json %{buildroot}%{ruby_libdir}/json
|
||||
ln -s %{_libdir}/gems/%{name}/json-%{json_version}/json/ %{buildroot}%{ruby_libarchdir}/json
|
||||
|
||||
mkdir -p %{buildroot}%{gem_dir}/gems/psych-%{psych_version}/lib
|
||||
mkdir -p %{buildroot}%{_libdir}/gems/%{name}/psych-%{psych_version}
|
||||
@ -912,6 +915,8 @@ make check TESTS="-v $DISABLE_TESTS"
|
||||
%{gem_dir}/specifications/io-console-%{io_console_version}.gemspec
|
||||
|
||||
%files -n rubygem-json
|
||||
%{ruby_libdir}/json*
|
||||
%{ruby_libarchdir}/json*
|
||||
%{_libdir}/gems/%{name}/json-%{json_version}
|
||||
%{gem_dir}/gems/json-%{json_version}
|
||||
%{gem_dir}/specifications/json-%{json_version}.gemspec
|
||||
@ -953,6 +958,9 @@ make check TESTS="-v $DISABLE_TESTS"
|
||||
%{ruby_libdir}/tkextlib
|
||||
|
||||
%changelog
|
||||
* Tue Jul 12 2016 Vít Ondruch <vondruch@redhat.com> - 2.3.1-57
|
||||
- Make symlinks for json gem.
|
||||
|
||||
* Mon May 23 2016 Vít Ondruch <vondruch@redhat.com> - 2.3.1-56
|
||||
- Requires rubygem(json) for rubygem-rdoc (rhbz#1325022).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user