texmacro-otf-vl.spec 8.2 KB

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