refe-vl.spec 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. %define rbindir %(ruby -r rbconfig -e 'print Config::CONFIG["bindir"]')
  2. %define rlibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
  3. %define rarchdir %(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]')
  4. %define rdatadir %(ruby -r rbconfig -e 'print Config::CONFIG["datadir"]')
  5. Summary: Ruby reference manual referer
  6. Summary(ja): Rubyのリファレンスマニュアルからメソッドを検索する
  7. Name: refe
  8. Version: 0.8.0
  9. Release: 1%{?_dist_release}
  10. License: distributable
  11. Group: Development/Languages
  12. Source: http://i.loveruby.net/archive/%{name}/%{name}-%{version}-withdocsrc.tar.gz
  13. URL: http://www.loveruby.net/en/%{name}.html
  14. BuildArch: noarch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: ruby >= 1.8
  17. Requires: ruby >= 1.8
  18. %description
  19. ReFe is a reference referer ('ri' clone). Difference is that ReFe extract
  20. data from RD while ri uses XML. (Japanese reference manual is written in
  21. RD.)
  22. Currently ReFe supports only specific RD format e.g. canonical reference
  23. manual.
  24. %description -l ja
  25. クラス名とメソッド名からRubyのリファレンスマニュアルのエントリを引くコマンド
  26. ライン用のツールです。読み方は「りふぇ」です。
  27. %prep
  28. %setup -q
  29. %build
  30. ruby setup.rb config --rb-dir='$std-ruby'
  31. ruby setup.rb setup
  32. %install
  33. rm -rf ${RPM_BUILD_ROOT}
  34. mkdir -p ${RPM_BUILD_ROOT}%{rbindir}
  35. mkdir -p ${RPM_BUILD_ROOT}%{rlibdir}
  36. mkdir -p ${RPM_BUILD_ROOT}%{rdatadir}
  37. ruby setup.rb install --prefix=${RPM_BUILD_ROOT}
  38. %clean
  39. rm -rf ${RPM_BUILD_ROOT}
  40. %files
  41. %defattr(-, root, root)
  42. %{rbindir}/%{name}
  43. %{rlibdir}/%{name}
  44. %{rdatadir}/%{name}
  45. %changelog
  46. * Fri Oct 10 2008 Shu KONNO <owa@bg.wakwak.com> 0.8.0-1vl5
  47. - applied new versioning policy, spec in utf-8
  48. * Mon Dec 29 2003 akira yamada <akira@ruby-lang.org> 0.8.0-0vl1
  49. - initial packaging.