====== Ruby packaging ====== Since [[http://git.pld-linux.org/?p=packages/ruby.git;a=commit;h=d9302162f1a41c77411f84480d67a560b60d36fc|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 ^ rbconfig value ^ new value ^ old value ^ | %ruby_version | ruby_version | 1.9 | 1.9 | | %ruby_archdir ((used by old arch packages)) | archdir | /usr/lib64/ruby/1.9 | /usr/lib64/ruby/1.9/x86_64-linux | | %ruby_libdir | rubylibdir | /usr/share/ruby/1.9 | - ((macro did not exist in rpm4.5)) | | %ruby_sitedir | sitedir | /usr/local/share/ruby/site_ruby | - ((macro did not exist in rpm4.5)) | | %ruby_sitearchdir | sitearchdir | /usr/local/lib64/ruby/site_ruby/1.9 | /usr/lib64/ruby/site_ruby/1.9/x86_64-linux | | %ruby_sitelibdir | sitelibdir | /usr/local/share/ruby/site_ruby/1.9 | /usr/lib64/ruby/site_ruby/1.9 | | %ruby_vendordir | vendordir | /usr/share/ruby/vendor_ruby | - ((macro did not exist in rpm4.5)) | | %ruby_vendorarchdir | vendorarchdir | /usr/lib64/ruby/vendor_ruby/1.9 | /usr/lib64/ruby/vendor_ruby/1.9/x86_64-linux | | %ruby_vendorlibdir | vendorlibdir | /usr/share/ruby/vendor_ruby/1.9 | /usr/lib64/ruby/vendor_ruby/1.9 | | %ruby_rubylibdir ((used by old noarch packages)) ((macro exists only in pld, not rpm5 macros. deprecated, do not use)) | rubylibdir | /usr/share/ruby/1.9 | /usr/lib64/ruby/1.9 | ===== vendordir rebuilds ===== Packages using %ruby_sitearchdir, needed to be changed to %ruby_vendorarchdir: * [[package>gdal]] * [[package>geos]] * [[package>gnustep-ruby]]fact * [[package>hivex]] * [[package>hyperestraier]] * [[package>ice]] * [[package>kde4-kdebindings]] * [[package>kdebindings]] * [[package>libapparmor]] * [[package>libcaca]] * [[package>libdmtx]] * [[package>libguestfs]] * [[package>libprelude]] * [[package>obexftp]] * [[package>openbabel]] * [[package>openwsman]] * [[package>qdbm]] * [[package>qpid-cpp]] * [[package>rcsparse]] * [[package>ruby-dl2]] * [[package>ruby-eet]] * [[package>ruby-eruby]] * [[package>ruby-fltk]] * [[package>ruby-fxruby]] * [[package>ruby-libexif]] * [[package>ruby-mecab]] * [[package>ruby-mount]] * [[package>ruby-ncurses]] * [[package>ruby-pam]] * [[package>ruby-qt4]] * [[package>ruby-rbogl]] * [[package>ruby-rbtree]] * [[package>ruby-rpm]] * [[package>ruby-sary]] * [[package>ruby-vorbisfile]] * [[package>ruby-wxruby2]] * [[package>sqlite-ruby]] * [[package>sqlrelay]] * [[package>subversion]] * [[package>tomoe]] * [[package>xapian-bindings]] Packages using %ruby_sitelibdir, needed to change %ruby_vendorlibdir: * [[package>ecasound]] * [[package>gnustep-ruby]] * [[package>hivex]] * [[package>hyperestraier]] * [[package>kde4-kdebindings]] * [[package>kdebindings]] * [[package>libcaca]] * [[package>libguestfs]] * [[package>openwsman]] * [[package>puppet]] * [[package>qdbm]] * [[package>qpid-cpp]] * [[package>ruby-eet]] * [[package>ruby-facter]] * [[package>ruby-fltk]] * [[package>ruby-fxruby]] * [[package>ruby-ncurses]] * [[package>ruby-qt4]] * [[package>ruby-rip]] * [[package>ruby-rpm]] * [[package>ruby-wxruby2]] * [[package>sqlrelay]] * [[package>subversion]] * [[package>tomoe]] * [[package>xapian-bindings]]