#
# Conditional build:
%bcond_without doc # skip (time-consuming) docs generating; intended for speed up test builds
-%bcond_without tk # skip building package with Tk bindings
+%bcond_with tk # skip building package with Tk bindings
%bcond_without batteries # Don't include rubygems, json, rake, minitest
%bcond_without default_ruby # use this Ruby as default system Ruby
%bcond_with bootstrap # build bootstrap version
-%define rel 1
+%define rel 3
%define ruby_version 1.9
%define basever 1.9.3
-%define patchlevel 545
+%define patchlevel 547
%define ruby_suffix %{!?with_default_ruby:%{ruby_version}}
%define doc_version 1_9_3
License: (Ruby or BSD) and Public Domain
Group: Development/Languages
Source0: ftp://ftp.ruby-lang.org/pub/ruby/1.9/%{oname}-%{basever}-p%{patchlevel}.tar.bz2
-# Source0-md5: 4743c1dc48491070bae8fc8b423bc1a7
+# Source0-md5: 5363d399be7f827c77bf8ae5d1a69b38
Source1: http://www.ruby-doc.org/download/%{oname}-doc-bundle.tar.gz
# Source1-md5: ad1af0043be98ba1a4f6d0185df63876
Source2: http://www.ruby-doc.org/downloads/%{oname}_%{doc_version}_stdlib_rdocs.tgz
%define ruby_ridir %{_datadir}/ri/%{ruby_version}/system
%define gem_dir %{_datadir}/%{oname}/gems/%{ruby_version}
-# The RubyGems library has to stay out of Ruby directory three, since the
-# RubyGems should be share by all Ruby implementations.
-%define rubygems_dir %{_datadir}/rubygems
+# location where rubygems is installed
+%define rubygems_dir %{ruby_libdir}
%define ruby_archdir %{_libdir}/%{oname}/%{ruby_version}
%define ruby_libdir %{_datadir}/%{oname}/%{ruby_version}
--with-sitearchdir=%{ruby_sitearchdir} \
--with-vendordir=%(dirname %{ruby_vendorlibdir}) \
--with-vendorarchdir=%{ruby_vendorarchdir} \
- --with-rubygemsdir=%{rubygems_dir} \
--with-search-path="%{legacy_loadpaths}" \
--enable-shared \
--enable-pthread \
%files rubygems
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/gem%{ruby_suffix}
-%{ruby_libdir}/rubygems
-%{ruby_libdir}/rubygems.rb
-%{ruby_libdir}/ubygems.rb
+%{rubygems_dir}/rubygems
+%{rubygems_dir}/rubygems.rb
+%{rubygems_dir}/ubygems.rb
%files rake
%defattr(644,root,root,755)