ruby-intl-vl.spec 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. %define oname intl
  2. %define ruby /usr/bin/ruby
  3. %define rbindir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["bindir"]')
  4. %define rlibdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
  5. %define rarchdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["archdir"]')
  6. Summary: A wrapper for GNU gettext for use with Ruby
  7. Summary(ja): Ruby から GNU gettext を扱うためのライブラリ
  8. Name: ruby-%{oname}
  9. Version: 0.11
  10. Release: 0vl2
  11. License: GPL
  12. Group: Development/Libraries
  13. Source0: ruby-%{oname}-%{version}.tar.gz
  14. URL: http://www.page.sannet.ne.jp/hirata-naoto/ruby-e.html
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. Distribution: Vine Linux
  17. Vendor: Project Vine
  18. BuildPrereq: ruby, ruby-devel >= 1.6.4-0vl3
  19. BuildPreReq: gettext
  20. Requires: ruby, gettext
  21. %description
  22. ruby-intl -- A wrapper of GNU gettext for ruby.
  23. %description -l ja
  24. ruby-intl は GNU gettext のラッパークラスです.
  25. %prep
  26. %setup -q -n %{oname}
  27. echo "rbindir is " %{rbindir}
  28. echo "rlibdir is " %{rlibdir}
  29. echo "rarchdir is " %{rarchdir}
  30. %build
  31. %{ruby} extconf.rb
  32. make
  33. %install
  34. rm -rf %{buildroot}
  35. make sitearchdir=$RPM_BUILD_ROOT%{rarchdir} install
  36. %clean
  37. rm -rf %{buildroot}
  38. %files
  39. %defattr(-,root,root)
  40. %doc COPYING* ChangeLog README*
  41. %doc hello.rb ja.po
  42. %{rarchdir}/intl.so
  43. %changelog
  44. * Tue Dec 20 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.11-0vl2
  45. - rebuilt with ruby-1.8
  46. - changed Group:
  47. * Sun Aug 05 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  48. - 0.11-0vl1
  49. - initial rpm package for VineSeedPlus