/[packages]/cauldron/ruby/pristine/SOURCES/ruby.macros
ViewVC logotype

Contents of /cauldron/ruby/pristine/SOURCES/ruby.macros

Parent Directory Parent Directory | Revision Log Revision Log


Revision 292558 - (show annotations) (download)
Wed Sep 12 04:53:33 2012 UTC (11 years, 7 months ago) by fwang
Original Path: cauldron/ruby/current/SOURCES/ruby.macros
File size: 735 byte(s)
- tweak ruby macros so that it is using new config variable
- add requires on rubygems for ruby binary
1 # rpm macros for use in ruby packages
2
3 %ruby_version %(ruby -rrbconfig -e 'print RbConfig::CONFIG["ruby_version"]')
4
5 %ruby_archdir %(ruby -rrbconfig -e 'print RbConfig::CONFIG["archdir"]')
6 %ruby_libdir %(ruby -rrbconfig -e 'print RbConfig::CONFIG["rubylibdir"]')
7 %ruby_sitearchdir %(ruby -rrbconfig -e 'print RbConfig::CONFIG["sitearchdir"]')
8 %ruby_sitelibdir %(ruby -rrbconfig -e 'print RbConfig::CONFIG["sitelibdir"]')
9 %ruby_vendorarchdir %(ruby -rrbconfig -e 'print RbConfig::CONFIG["vendorarchdir"]')
10 %ruby_vendorlibdir %(ruby -rrbconfig -e 'print RbConfig::CONFIG["vendorlibdir"]')
11 %ruby_gemdir %(ruby -rrbconfig -e 'print RbConfig::CONFIG["rubygemsdir"]')
12 %ruby_ridir %(ruby -rrbconfig -e 'print RbConfig::CONFIG["ridir"]')

  ViewVC Help
Powered by ViewVC 1.1.30