OpenType-mikachan-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. %define _fontdir %{_datadir}/fonts/OpenType-mikachan
  2. Summary: Free Japanese Handwriting OpenType Font (mikachan_o)
  3. Summary(ja): フリーの手書き風日本語 OpenType フォント (みかちゃん_o)
  4. Name: OpenType-mikachan
  5. Version: 9.1
  6. Release: 2%{?_dist_release}
  7. URL: http://mikachan-font.com/
  8. License: distributable
  9. Group: User Interface/X
  10. BuildArch: noarch
  11. Buildroot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: lha
  13. Provides: mikachanfont
  14. Requires(post): xorg-x11-font-utils
  15. Requires(postun): xorg-x11-font-utils
  16. Source0: http://mikachan.sourceforge.jp/mikachan_o.lzh
  17. Source1: http://mikachan.sourceforge.jp/mikachanP_o.lzh
  18. Source2: http://mikachan.sourceforge.jp/mikachanPB_o.lzh
  19. Source3: http://mikachan.sourceforge.jp/mikachanPS_o.lzh
  20. Distribution: Vine Linux
  21. Vendor: Project Vine
  22. %description
  23. Free Japanese Handwriting OpenType Font (mikachan_o)
  24. mikachan_o : fixed-width fonts
  25. mikachan_o-P : proportional fonts (regular)
  26. mikachan_o-PB : proportional fonts (bold style)
  27. mikachan_o-PS : proportional fonts with somewhat smaller hiragana,
  28. katakana, alphabets, and numbers
  29. It is possible to display following characters.
  30. - Hiragana
  31. - Katakana
  32. - Numbers
  33. - Alphabets
  34. - Symbols
  35. - Kanji (for education, usual, person's name, JIS Level 1/2, IBM extended)
  36. # '
  37. %description -l ja
  38. フリーの手書き風日本語 OpenType フォント (みかちゃん_o) です。
  39. mikachan_o : 等幅フォント
  40. mikachan_o-P : プロポーショナルフォント
  41. mikachan_o-PB : 太字のプロポーショナルフォント
  42. mikachan_o-PS : ひらがな・カタカナ・数字・英字が少し小さめのプロポーショ
  43. ナルフォント
  44. 次の文字を表示することができます。
  45. - ひらがな
  46. - カタカナ
  47. - 数字
  48. - 英字
  49. - 記号
  50. - 漢字 (教育/常用/人名/JIS第1水準/JIS第2水準/IBM拡張)
  51. %prep
  52. %setup -n %{name}-%{version} -c -T
  53. if `%{_bindir}/lha l --archive-kanji-code=sjis %{SOURCE0} > /dev/null 2>&1`
  54. then
  55. srccode=euc-jp
  56. else
  57. srccode=cp932
  58. fi
  59. %{_bindir}/lha xq %{SOURCE0}
  60. %{_bindir}/lha xq %{SOURCE1}
  61. %{_bindir}/lha xq %{SOURCE2}
  62. %{_bindir}/lha xq %{SOURCE3}
  63. # FIXME: convert file name (cp932 -> utf-8)
  64. for i in *.otf ; do
  65. %__mv $i `echo $i \
  66. | %{_bindir}/iconv -f $srccode -t utf-8 \
  67. | %__sed -e 's/みかちゃん/mikachan/'`
  68. done
  69. %build
  70. %install
  71. %__rm -rf %{buildroot}
  72. %__mkdir -p %{buildroot}%{_fontdir}
  73. %__install -m644 -p *.otf %{buildroot}%{_fontdir}
  74. %post
  75. ( umask 133 ; %{_bindir}/fc-cache %{_fontdir} ) ||:
  76. %postun
  77. ( umask 133 ; %{_bindir}/fc-cache %{_fontdir} ) ||:
  78. %clean
  79. %__rm -rf %{buildroot}
  80. %files
  81. %defattr(-,root,root)
  82. %{_fontdir}/*
  83. %changelog
  84. * Sat Jun 20 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 9.1-2vl5
  85. - changed font path
  86. * Sun Oct 05 2008 Shu KONNO <owa@bg.wakwak.com> 9.1-1vl5
  87. - applied new versioning policy, spec in utf-8
  88. - updated scripts to convert file name's encode
  89. - changed font path
  90. * Fri Oct 20 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 9.1-0vl2
  91. - fix install script to support autoconfiscated lha
  92. * Sat May 07 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 9.1-0vl1
  93. - upstream release
  94. - fix scripts
  95. * Sun Feb 15 2004 KAZUKI SHIMURA <rito@pos.to> 9.0-0vl1
  96. - initial release