User Tools

Site Tools


packages:ruby

This is an old revision of the document!


Ruby packaging

Since ruby >= 1.9.3.392-2 our Ruby supports noarch packages.

This also means that pld packages should put their modules into vendor dirs, and site dirs is for local installations (not to be packaged by rpm). ruby archdir and libdir are for ruby's own modules (packaged from ruby.spec), distro addon packages should not put their modules there.

Here's overview of the paths:

rpm macro sample value
%ruby_version 1.9
%ruby_archdir /usr/lib64/ruby/1.9
%ruby_libdir /usr/share/ruby/1.9
%ruby_sitedir /usr/local/share/ruby/site_ruby
%ruby_sitearchdir /usr/local/lib64/ruby/site_ruby
%ruby_sitelibdir /usr/local/share/ruby/site_ruby/1.9
%ruby_vendordir /usr/share/ruby/vendor_ruby
%ruby_vendorarchdir /usr/lib64/ruby/vendor_ruby
%ruby_vendorlibdir /usr/share/ruby/vendor_ruby/1.9
packages/ruby.1364506020.txt.gz · Last modified: 2013-03-28 22:27 by glen