texmacro-otf-vl.spec 8.5 KB

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