ruby-uconv-vl.spec 2.5 KB

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