ruby-gettext-package-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. %define ruby /usr/bin/ruby
  2. %define rubylibdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
  3. %define archdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["archdir"]')
  4. Name: ruby-gettext-package
  5. Version: 1.9.0
  6. Release: 1%{?_dist_release}
  7. License: GPL or Ruby
  8. Group: Applications/Text
  9. Source: %{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. URL: http://ponx.s5.xrea.com/hiki/ja/ruby-gettext.html
  12. Requires: ruby >= 1.8
  13. BuildRequires: ruby-devel
  14. BuildRequires: racc irb
  15. Summary: gettext extention for Ruby
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. %description
  19. Ruby GetText Package is a Native Language Support Library and Tools which modeled after GNU gettext package.
  20. %description -l ja
  21. Ruby GetText Package は GNU gettextによく似たライブラリです。
  22. このライブラリを使うことであなたのRubyスクリプト中の文字列を簡単にローカライズでき、
  23. 国際化されたアプリケーションを作ることができます。基本的な考え方はGNU gettextと同じです。
  24. %prep
  25. rm -rf ${RPM_BUILD_ROOT}
  26. %setup -q
  27. %build
  28. ruby setup.rb config --prefix=%{buildroot}/usr \
  29. --siterubyver=%{buildroot}%{rubylibdir} \
  30. --sodir=%{buildroot}%{archdir}
  31. ruby setup.rb setup
  32. %install
  33. ruby setup.rb install
  34. %clean
  35. rm -rf ${RPM_BUILD_ROOT}
  36. %files
  37. %defattr(-,root,root)
  38. %doc COPYING ChangeLog README NEWS samples/ test/
  39. %{_bindir}/*
  40. %{rubylibdir}/gettext.rb
  41. %{rubylibdir}/gettext/
  42. %{archdir}/*
  43. %{_datadir}/locale/es/LC_MESSAGES/*.mo
  44. %{_datadir}/locale/fr/LC_MESSAGES/*.mo
  45. %{_datadir}/locale/ja/LC_MESSAGES/*.mo
  46. %{_datadir}/locale/sv/LC_MESSAGES/*.mo
  47. %ChangeLog
  48. * Fri Aug 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.9.0-1
  49. - spec in utf8, new versioning policy
  50. * Fri May 25 2007 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 1.9.0-0vl1
  51. - source update
  52. * Mon Feb 28 2005 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 0.8.0-0vl1
  53. - source update
  54. * Wed Mar 03 2004 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp>
  55. - (0.5.4-0vl1)
  56. -- source update
  57. * Sun Dec 07 2003 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp>
  58. - (0.5.3-0vl1)
  59. -- source update
  60. * Wed Nov 12 2003 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp>
  61. - (0.5.2-0vl1)
  62. -- source update
  63. * Thu Nov 11 2003 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp>
  64. - (0.5.1-0vl3)
  65. -- delate BuildArch: i386
  66. * Sat Nov 08 2003 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp>
  67. - (0.5.1-0vl2)
  68. -- compile for ruby-1.8.0
  69. * Sun Oct 19 2003 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp>
  70. - (0.5.1-0vl1)
  71. - initial package creation