ruby-uconv-vl.spec 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. %define oname uconv
  2. Name: ruby-uconv
  3. Version: 0.5.3
  4. Release: 1%{?_dist_release}
  5. License: Ruby's
  6. Group: Development/Languages
  7. Source: http://www.yoshidam.net/%{oname}-%{version}.tar.gz
  8. URL: http://www.yoshidam.net/Ruby_ja.html#uconv
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: ruby, ruby-devel >= 1.6.4-0vl3, diffutils
  11. Summary: library for Ruby that converts UTF-8/16, UCS-4 <-> EUC-JP/Shift_JIS
  12. Summary(ja): UTF-8/16, UCS-4とEUC-JP/Shift_JISを相互変換するRubyライブラリ
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. %description
  16. Uconv module provides the methods to convert UTF-16, UTF-8 or UCS-4 into
  17. EUC-JP or CP932, and EUC-JP or CP932 into UTF-16, UTF-8 or UCS-4.
  18. %description -l ja
  19. UTF-16, UTF-8, UCS-4 と EUC-JP, Shift_JIS を相互に変換します.実際
  20. Shift_JIS を使うのは Windows の場合が多いので,Windows で使われている
  21. Shift_JIS の変種である CP932 に対応しています.
  22. %prep
  23. %setup -q -c
  24. %build
  25. cd %{oname}
  26. ruby extconf.rb
  27. make
  28. cd ..
  29. %install
  30. rm -rf ${RPM_BUILD_ROOT}
  31. mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
  32. # installing binaries ...
  33. cd %{oname}
  34. make install DESTDIR=${RPM_BUILD_ROOT} \
  35. sitelibdir=${RPM_BUILD_ROOT}%{rlibdir} \
  36. sitearchdir=${RPM_BUILD_ROOT}%{rarchdir}
  37. cd ..
  38. %clean
  39. rm -rf ${RPM_BUILD_ROOT}
  40. %files
  41. %defattr(-, root, root)
  42. %doc %{oname}/README
  43. %doc %{oname}/README.ja
  44. %{rarchdir}/uconv.so
  45. %{rlibdir}/uconv
  46. #%doc tmp/samples
  47. %changelog
  48. * Sun Dec 30 2012 IWAI, Masaharu <iwai@alib.jp> 0.5.3-1
  49. - new upstream release
  50. - add Vendor and Distribution tags
  51. - drop Prefix tag
  52. - update License: Ruby's
  53. - fix deprecated tag: BuildPreReq -> BuildRequires
  54. - add sitearchdir for install
  55. * Fri Jul 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.12-1
  56. - new versioning policy
  57. * Wed Feb 09 2005 Satoshi MACHINO <machino@vinelinux.org> 0.4.12-0vl2
  58. - fixed %files
  59. --added uconv.so
  60. --removed samples (don't include in sourcce)
  61. * Wed Feb 09 2005 Satoshi MACHINO <machino@vinelinux.org> 0.4.12-0vl0.31
  62. - rebuilt for VineLinux3.1(VinePlus)
  63. - changed to License from Copylight
  64. * Tue Feb 08 2005 Satoshi MACHINO <machino@vinelinux.org> 0.4.12-0vl1
  65. - new upstream release
  66. * Tue Feb 12 2002 akira yamada <akira@vinelinux.org> 0.4.9-0vl1
  67. - new upstream release.
  68. * Tue Dec 11 2001 akira yamada <akira@vinelinux.org> 0.4.8-0vl1
  69. - new upstream release.
  70. * Sun Oct 14 2001 akira yamada <akira@vinelinux.org> 0.4.6-0vl1
  71. - Initial packaging.