texmacro-otf-vl.spec 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  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/otf
  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: 4%{?_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. %__sed -i -e "s@/usr/local@/usr@" \
  102. -e "s@/fonts/map/dvipdfm@/fonts/map/dvipdfm/otf@g" \
  103. %{buildroot}%{_bindir}/updmap-otf || exit 1
  104. ###### otfstable #####
  105. pushd otfcurrent-%{version}
  106. %__install -m 644 sty/*.sty %{build_texmf}/ptex/platex/otf
  107. %__install -m 644 vf/* %{build_texvf}/otf
  108. %__install -m 644 tfm/* %{build_textfm}/otf
  109. #install -m 644 fontmap/cktx.map* %{build_mapdir}/otf-cktx.map
  110. #install -m 644 fontmap/hiraginox.map* %{build_mapdir}/otf-hiraginox.map
  111. %__sed -e 's/W.$/&.otf/g' fontmap/hiraginox.map* > %{build_mapdir}/otf-hiraginox.map
  112. %__install -m 644 fontmap/kozukax.map* %{build_mapdir}/otf-kozukax.map
  113. %__install -m 644 fontmap/morisawax.map* %{build_mapdir}/otf-morisawax.map
  114. ## morisawa map files remaped PS Kanji (CIDFont) Name
  115. %__sed -e 's@A-OTF-@@g' %{build_mapdir}/otf-morisawax.map > %{build_mapdir}/otf-ps-morisawax.map
  116. %__sed -e 's@A-OTF-@!@g' %{build_mapdir}/otf-morisawax.map > %{build_mapdir}/otf-ps-morisawax-noEmbed.map
  117. # Install our own noFont map
  118. %__install -m 644 %{SOURCE20} %{build_mapdir}
  119. %__install -m 644 %{SOURCE21} %{build_mapdir}
  120. pushd %{build_mapdir}
  121. patch -p1 < %{PATCH1}
  122. popd
  123. %__install -m 644 fontmap/vfontmap.txt ../fontmap
  124. %__install -m 644 test/*.tex ../test
  125. %__install -m 644 readme.txt ../readme-otfcurrent.txt
  126. popd
  127. ###### hiraprop #####
  128. %__mkdir_p %{build_texmf}/ptex/platex/hiraprop
  129. %__mkdir_p %{build_texvf}/hiraprop
  130. %__mkdir_p %{build_texofm}/hiraprop
  131. %__mkdir_p %{build_textfm}/hiraprop
  132. pushd hiraprop-%{hirapropver}
  133. %__install -m 644 sty/* %{build_texmf}/ptex/platex/hiraprop
  134. %__install -m 644 vf/hiraprop/* %{build_texvf}/hiraprop
  135. %__install -m 644 ofm/hiraprop/* %{build_texofm}/hiraprop
  136. %__install -m 644 tfm/hiraprop/* %{build_textfm}/hiraprop
  137. %__install -m 644 *.tex ../test
  138. %__install -m 644 readme.txt ../readme-hiraprop.txt
  139. popd
  140. ###### kokana #####
  141. pushd kokana-%{kokanaver}
  142. %__install -m 644 otfaltkana.sty %{build_texmf}/ptex/platex/otf
  143. %__install -m 644 vf/* %{build_texvf}/otf
  144. %__install -m 644 tfm/* %{build_textfm}/otf
  145. %__install -m 644 sample/kokanatest.tex ../test
  146. %__install -m 644 readme.txt ../readme-kokana.txt
  147. popd
  148. %post
  149. %{exec_updmap}
  150. %{exec_updmap_otf}
  151. exit 0
  152. %postun
  153. if [ "$1" = 0 ]; then
  154. %__rm -rf %{texmf}-var/updmap-otf
  155. %{exec_updmap}
  156. fi
  157. exit 0
  158. %clean
  159. %__rm -rf %{buildroot}
  160. %files
  161. %defattr(-,root,root)
  162. %doc readme* fontmap test pdf
  163. %dir %{texmf}-var/updmap-otf
  164. %{_bindir}/updmap-otf
  165. %{texmf}/ptex/platex/otf
  166. %{texmf}/ptex/platex/hiraprop
  167. %{texvf}
  168. %{textfm}
  169. %{texofm}
  170. %{mapdir}
  171. %changelog
  172. * Mon May 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-4
  173. - fixed updmap-otf
  174. - changed $$MAPDIR to $${TEXMF}/fonts/map/dvipdfm/otf
  175. * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-3
  176. - changed %%mapdir to %%{texmf}/fonts/map/dvipdfm/otf
  177. * Sat Jan 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-2
  178. - added Obsoletes: texlive-texmacro-otf <= 1.5.6.1
  179. - for TeX Live 2009 of VinePlus/5, supported texlive-texmacro-otf
  180. * Sat Jul 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-1
  181. - new upstream release
  182. - TeX Linux 2009
  183. * Fri May 15 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.9-3
  184. - added otf-ps-morisawax{-noEmbed}.map
  185. * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.9-2
  186. - spec in utf8
  187. * Tue Aug 05 2008 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.9-1
  188. - applied new versioning policy
  189. * Sun Apr 07 2007 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.9-0vl1
  190. - new upstream release
  191. * Sat May 27 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.7.1-0vl2
  192. - updmap-otf v0.9: use noEmbed.map instead of noEmbeddedFont.map
  193. * Fri May 12 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.7.1-0vl1
  194. - resync with ptetex3-20060506
  195. * Sun Nov 06 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl3
  196. - resync with ptetex3-20051102
  197. * Wed Aug 31 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl2
  198. - resync with ptetex3-20050830
  199. * Sat Jun 18 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl1
  200. - source update
  201. - modified for teTeX3
  202. * Thu Feb 03 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.6-0vl1
  203. - source update
  204. * Thu Jan 20 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.5-0vl1
  205. - source update
  206. * Sun Nov 07 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl5
  207. - updmap-0.7
  208. * Mon Oct 18 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl4
  209. - updmap-0.6
  210. * Mon Oct 11 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl3
  211. - updmap-0.5
  212. * Thu Sep 30 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl2
  213. - fixed updmap
  214. * Thu Sep 30 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl1
  215. - source update
  216. - updmap-0.4
  217. * Thu Apr 08 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl4
  218. - update updmap-otf: take over before setting in "auto" target
  219. - remove requires texmacro-sfujita
  220. * Sat Apr 03 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl3
  221. - fix postun
  222. * Fri Apr 02 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl2
  223. - drop extrafonts and added hiraprop
  224. - update updmap-otf and *-udvips.map
  225. * Sun Mar 28 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl1
  226. - source update
  227. - added updmap-otf
  228. * Wed Feb 04 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0.9-0vl1
  229. - first release