ruby-uconv-vl.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. %define oname uconv
  2. Name: ruby-uconv
  3. Version: 0.4.12
  4. Release: 1%{?_dist_release}
  5. License: distributable
  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. Prefix: /usr
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildPreReq: ruby, ruby-devel >= 1.6.4-0vl3, diffutils
  12. Summary: library for Ruby that converts UTF-8/16, UCS-4 <-> EUC-JP/Shift_JIS
  13. Summary(ja): UTF-8/16, UCS-4とEUC-JP/Shift_JISを相互変換するRubyライブラリ
  14. %description
  15. Uconv module provides the methods to convert UTF-16, UTF-8 or UCS-4 into
  16. EUC-JP or CP932, and EUC-JP or CP932 into UTF-16, UTF-8 or UCS-4.
  17. %description -l ja
  18. UTF-16, UTF-8, UCS-4 と EUC-JP, Shift_JIS を相互に変換します.実際
  19. Shift_JIS を使うのは Windows の場合が多いので,Windows で使われている
  20. Shift_JIS の変種である CP932 に対応しています.
  21. %prep
  22. %setup -q -c
  23. %build
  24. cd %{oname}
  25. ruby extconf.rb
  26. make
  27. cd ..
  28. %install
  29. rm -rf ${RPM_BUILD_ROOT}
  30. mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
  31. # installing binaries ...
  32. cd %{oname}
  33. make install DESTDIR=${RPM_BUILD_ROOT} sitelibdir=${RPM_BUILD_ROOT}%{rlibdir}
  34. cd ..
  35. (find \
  36. $RPM_BUILD_ROOT%{_libdir} \
  37. -type f -o -type l) |
  38. sort | sed -e "s,^$RPM_BUILD_ROOT,," > ruby-uconv.files
  39. # fixing `#!' paths
  40. #mkdir -p tmp/samples
  41. #(cd %{oname}/samples && tar cf - .) | (cd tmp/samples && tar xf -)
  42. #for f in `find tmp/samples -type f`
  43. #do
  44. # cp -p $f $f.n
  45. # sed -e 's,^#![ ]*\([^ ]*\)/\(ruby\|with\|perl\|env\),#!/usr/bin/\2,' < $f > $f.n
  46. # if cmp -s $f $f.n
  47. # then
  48. # rm -f $f.n
  49. # else
  50. # mv -f $f.n $f
  51. # fi
  52. #done
  53. %clean
  54. rm -f ruby-uconv.files
  55. rm -rf tmp
  56. rm -rf ${RPM_BUILD_ROOT}
  57. %pre
  58. %post
  59. %files -f ruby-uconv.files
  60. %defattr(-, root, root)
  61. %doc %{oname}/README
  62. %doc %{oname}/README.ja
  63. #%doc tmp/samples
  64. %changelog
  65. * Fri Jul 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.12-1
  66. - new versioning policy
  67. * Wed Feb 09 2005 Satoshi MACHINO <machino@vinelinux.org> 0.4.12-0vl2
  68. - fixed %files
  69. --added uconv.so
  70. --removed samples (don't include in sourcce)
  71. * Wed Feb 09 2005 Satoshi MACHINO <machino@vinelinux.org> 0.4.12-0vl0.31
  72. - rebuilt for VineLinux3.1(VinePlus)
  73. - changed to License from Copylight
  74. * Tue Feb 08 2005 Satoshi MACHINO <machino@vinelinux.org> 0.4.12-0vl1
  75. - new upstream release
  76. * Tue Feb 12 2002 akira yamada <akira@vinelinux.org> 0.4.9-0vl1
  77. - new upstream release.
  78. * Tue Dec 11 2001 akira yamada <akira@vinelinux.org> 0.4.8-0vl1
  79. - new upstream release.
  80. * Sun Oct 14 2001 akira yamada <akira@vinelinux.org> 0.4.6-0vl1
  81. - Initial packaging.