texmacro-otf-vl.spec 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. %define hirapropver 0.3
  2. %define kokanaver 1.0b2
  3. %define otfver 1.2.9
  4. %define texmf %{_datadir}/texmf
  5. %define texvf %{texmf}/fonts/vf/public
  6. %define texofm %{texmf}/fonts/ofm/public
  7. %define textfm %{texmf}/fonts/tfm/public
  8. %define mapdir %{texmf}/fonts/map/dvipdfm
  9. %define build_texmf %{buildroot}%{texmf}
  10. %define build_texvf %{buildroot}%{texvf}
  11. %define build_texofm %{buildroot}%{texofm}
  12. %define build_textfm %{buildroot}%{textfm}
  13. %define build_mapdir %{buildroot}%{mapdir}
  14. %define dvipdfmconfig %{texmf}/dvipdfm/config
  15. %define exec_updmap [ -x %{_bindir}/updmap-sys ] && %{_bindir}/env - %{_bindir}/updmap-sys --nostop 2> /dev/null
  16. %define exec_updmap_otf [ -x %{_bindir}/updmap-otf ] && %{_bindir}/env - %{_bindir}/updmap-otf auto 2> /dev/null
  17. Summary: teTeX macro packages for "VF for OpenType Fonts" by S. Saito
  18. Summary(ja): tetex で使うマクロパッケージ (齋藤修三郎氏による「OpenType Font用VF」)
  19. Name: texmacro-otf
  20. Version: %{otfver}
  21. Release: 3%{?_dist_release}
  22. BuildArch: noarch
  23. #Source0: http://psitau.at.infoseek.co.jp/otfstable.zip
  24. Source0: otfstable-%{version}.tar.bz2
  25. #Source1: http://psitau.at.infoseek.co.jp/hiraprop.zip
  26. Source1: hiraprop-%{hirapropver}.tar.bz2
  27. #Source2: http://psitau.at.infoseek.co.jp/kokana.zip
  28. Source2: kokana-%{kokanaver}.tar.bz2
  29. Source3: http://psitau.at.infoseek.co.jp/otfmanual.pdf
  30. Source4: http://psitau.at.infoseek.co.jp/kitunetuki.pdf
  31. Source5: http://psitau.at.infoseek.co.jp/meijinden.pdf
  32. Source10: updmap-otf
  33. Source20: otf-noEmbed.map
  34. Source21: otf-cktx.map
  35. Patch1: texmacro-otf-RmlGbm.patch
  36. URL: http://psitau.at.infoseek.co.jp/otf.html
  37. License: distributable
  38. Group: Applications/Publishing
  39. BuildPrereq: tetex-extra >= 3.0
  40. BuildRequires: perl, nkf
  41. Requires: task-tetex, ghostscript
  42. Conflicts: tetex <= 2.0.2
  43. Buildroot: %{_tmppath}/%{name}-root
  44. Distribution: Vine Linux
  45. Vendor: Project Vine
  46. %description
  47. teTeX macro packages of VF for OpenType Fonts by SAITO Shuzaburo
  48. Users can use these macros on platex.
  49. Including
  50. hiraprop.sty ajmacros.sty mlcid.sty mlutf.sty otf.sty
  51. otfaltkana.sty redeffont.sty
  52. %description -l ja
  53. 齋藤修三郎氏作成の tetex で用いる追加マクロパッケージです。
  54. LaTeX(pLaTeX2e)でOpen Type Fontを有効に利用するための VF およびスタイルファイルです。
  55. platex 上で利用できます。
  56. 以下のマクロが含まれています。
  57. hiraprop.sty ajmacros.sty mlcid.sty mlutf.sty otf.sty
  58. otfaltkana.sty redeffont.sty
  59. %prep
  60. %setup -q -c -n %{name}-%{version} -a 1 -a 2
  61. #for i in `grep -l -ir ovp2ovf * | grep -v readme`;
  62. #do
  63. # perl -pi -e "s@ovp2ovf@ovp2ovf-1.11@" $i
  64. #done
  65. %build
  66. ###### otfstable #####
  67. pushd otfstable-%{version}
  68. ./makeotf
  69. popd
  70. ###### kokana #####
  71. pushd kokana-%{kokanaver}
  72. nkf -be basepl/base-h.pl > base-h.pl
  73. nkf -be basepl/base-v.pl > base-v.pl
  74. mv -f base-[hv].pl basepl
  75. ./makealtkana
  76. popd
  77. %install
  78. rm -rf %{buildroot}
  79. mkdir fontmap test pdf
  80. mkdir -p %{buildroot}%{_bindir}
  81. mkdir -p %{build_texmf}/ptex/platex/otf
  82. mkdir -p %{build_texmf}-var/updmap-otf
  83. mkdir -p %{build_texvf}/otf
  84. mkdir -p %{build_textfm}/otf
  85. mkdir -p %{build_mapdir}
  86. install -m 644 %{SOURCE3} %{SOURCE4} %{SOURCE5} pdf
  87. install -m 755 %{SOURCE10} %{buildroot}%{_bindir}/updmap-otf
  88. ### set prefix dir ###
  89. perl -pi -e "s@/usr/local@/usr@" %{buildroot}%{_bindir}/updmap-otf
  90. ###### otfstable #####
  91. pushd otfstable-%{version}
  92. install -m 644 sty/*.sty %{build_texmf}/ptex/platex/otf
  93. install -m 644 vf/* %{build_texvf}/otf
  94. install -m 644 tfm/* %{build_textfm}/otf
  95. #install -m 644 fontmap/cktx.map* %{build_mapdir}/otf-cktx.map
  96. #install -m 644 fontmap/hiraginox.map* %{build_mapdir}/otf-hiraginox.map
  97. sed -e 's/W.$/&.otf/g' fontmap/hiraginox.map* > %{build_mapdir}/otf-hiraginox.map
  98. install -m 644 fontmap/kozukax.map* %{build_mapdir}/otf-kozukax.map
  99. install -m 644 fontmap/morisawax.map* %{build_mapdir}/otf-morisawax.map
  100. ## morisawa map files remaped PS Kanji (CIDFont) Name
  101. sed -e 's@A-OTF-@@g' %{build_mapdir}/otf-morisawax.map > %{build_mapdir}/otf-ps-morisawax.map
  102. sed -e 's@A-OTF-@!@g' %{build_mapdir}/otf-morisawax.map > %{build_mapdir}/otf-ps-morisawax-noEmbed.map
  103. # Install our own noFont map
  104. install -m 644 %{SOURCE20} %{build_mapdir}
  105. install -m 644 %{SOURCE21} %{build_mapdir}
  106. pushd %{build_mapdir}
  107. patch -p1 < %{PATCH1}
  108. popd
  109. install -m 644 fontmap/vfontmap.txt ../fontmap
  110. install -m 644 test/*.tex ../test
  111. install -m 644 readme.txt ../readme-otfstable.txt
  112. popd
  113. ###### hiraprop #####
  114. mkdir -p %{build_texmf}/ptex/platex/hiraprop
  115. mkdir -p %{build_texvf}/hiraprop
  116. mkdir -p %{build_texofm}/hiraprop
  117. mkdir -p %{build_textfm}/hiraprop
  118. pushd hiraprop-%{hirapropver}
  119. install -m 644 sty/* %{build_texmf}/ptex/platex/hiraprop
  120. install -m 644 vf/hiraprop/* %{build_texvf}/hiraprop
  121. install -m 644 ofm/hiraprop/* %{build_texofm}/hiraprop
  122. install -m 644 tfm/hiraprop/* %{build_textfm}/hiraprop
  123. install -m 644 *.tex ../test
  124. install -m 644 readme.txt ../readme-hiraprop.txt
  125. popd
  126. ###### kokana #####
  127. pushd kokana-%{kokanaver}
  128. install -m 644 otfaltkana.sty %{build_texmf}/ptex/platex/otf
  129. install -m 644 vf/* %{build_texvf}/otf
  130. install -m 644 tfm/* %{build_textfm}/otf
  131. install -m 644 sample/kokanatest.tex ../test
  132. install -m 644 readme.txt ../readme-kokana.txt
  133. popd
  134. %post
  135. %{exec_updmap}
  136. %{exec_updmap_otf}
  137. exit 0
  138. %postun
  139. if [ "$1" = 0 ]; then
  140. rm -rf %{texmf}-var/updmap-otf
  141. %{exec_updmap}
  142. fi
  143. exit 0
  144. %clean
  145. rm -rf %{buildroot}
  146. %files
  147. %defattr(-,root,root)
  148. %doc readme* fontmap test pdf
  149. %dir %{texmf}-var/updmap-otf
  150. %{_bindir}/updmap-otf
  151. %{texmf}/ptex/platex/otf
  152. %{texmf}/ptex/platex/hiraprop
  153. %{texvf}
  154. %{textfm}
  155. %{texofm}
  156. %{mapdir}
  157. %changelog
  158. * Fri May 15 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.9-3
  159. - added otf-ps-morisawax{-noEmbed}.map
  160. * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.9-2
  161. - spec in utf8
  162. * Tue Aug 05 2008 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.9-1
  163. - applied new versioning policy
  164. * Sun Apr 07 2007 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.9-0vl1
  165. - new upstream release
  166. * Sat May 27 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.7.1-0vl2
  167. - updmap-otf v0.9: use noEmbed.map instead of noEmbeddedFont.map
  168. * Fri May 12 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.7.1-0vl1
  169. - resync with ptetex3-20060506
  170. * Sun Nov 06 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl3
  171. - resync with ptetex3-20051102
  172. * Wed Aug 31 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl2
  173. - resync with ptetex3-20050830
  174. * Sat Jun 18 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl1
  175. - source update
  176. - modified for teTeX3
  177. * Thu Feb 03 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.6-0vl1
  178. - source update
  179. * Thu Jan 20 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.5-0vl1
  180. - source update
  181. * Sun Nov 07 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl5
  182. - updmap-0.7
  183. * Mon Oct 18 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl4
  184. - updmap-0.6
  185. * Mon Oct 11 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl3
  186. - updmap-0.5
  187. * Thu Sep 30 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl2
  188. - fixed updmap
  189. * Thu Sep 30 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl1
  190. - source update
  191. - updmap-0.4
  192. * Thu Apr 08 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl4
  193. - update updmap-otf: take over before setting in "auto" target
  194. - remove requires texmacro-sfujita
  195. * Sat Apr 03 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl3
  196. - fix postun
  197. * Fri Apr 02 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl2
  198. - drop extrafonts and added hiraprop
  199. - update updmap-otf and *-udvips.map
  200. * Sun Mar 28 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl1
  201. - source update
  202. - added updmap-otf
  203. * Wed Feb 04 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0.9-0vl1
  204. - first release