texlive-texmacro-otf-vl.spec 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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. %if %{?_dist_release} == "vl5"
  19. Conflicts: texmacro-otf
  20. %endif
  21. Summary: TeX Live macro packages for "VF for OpenType Fonts" by S. Saito
  22. Summary(ja): TeX Live で使うマクロパッケージ (齋藤修三郎氏による「OpenType Font用VF」)
  23. Name: texlive-texmacro-otf
  24. Version: %{otfver}
  25. Release: 2%{?_dist_release}
  26. BuildArch: noarch
  27. # #Source0: http://psitau.at.infoseek.co.jp/otfstable.zip
  28. # Source0: otfstable-%{version}.tar.bz2
  29. # $ md5sum otfcurrent.zip
  30. # fc38d8384f73ae4b4238698eef4e11fd otfcurrent.zip
  31. # $ unzip otfcurrent.zip
  32. # $ mv otfcurrent otfcurrent-1.5.6.1
  33. # $ tar jcf otfcurrent-1.5.6.1.tar.bz2 otfcurrent-1.5.6.1
  34. #Source0: http://psitau.at.infoseek.co.jp/otfstable.zip
  35. Source0: otfcurrent-%{version}.tar.bz2
  36. #Source1: http://psitau.at.infoseek.co.jp/hiraprop.zip
  37. Source1: hiraprop-%{hirapropver}.tar.bz2
  38. #Source2: http://psitau.at.infoseek.co.jp/kokana.zip
  39. Source2: kokana-%{kokanaver}.tar.bz2
  40. Source3: http://psitau.at.infoseek.co.jp/otfmanual.pdf
  41. Source4: http://psitau.at.infoseek.co.jp/kitunetuki.pdf
  42. Source5: http://psitau.at.infoseek.co.jp/meijinden.pdf
  43. Source10: updmap-otf
  44. Source20: otf-noEmbed.map
  45. Source21: otf-cktx.map
  46. Patch1: texmacro-otf-RmlGbm.patch
  47. URL: http://psitau.at.infoseek.co.jp/otf.html
  48. License: distributable
  49. Group: Applications/Publishing
  50. BuildRequires: texlive = %{tlversion}
  51. BuildRequires: perl, nkf
  52. Requires: texlive = %{tlversion}
  53. Requires: ghostscript
  54. Buildroot: %{_tmppath}/%{name}-%{version}-root
  55. Distribution: Vine Linux
  56. Vendor: Project Vine
  57. %description
  58. TeX Live macro packages of VF for OpenType Fonts by SAITO Shuzaburo
  59. Users can use these macros on platex.
  60. Including
  61. hiraprop.sty ajmacros.sty mlcid.sty mlutf.sty otf.sty
  62. otfaltkana.sty redeffont.sty
  63. %description -l ja
  64. 齋藤修三郎氏作成の TeX Live で用いる追加マクロパッケージです。
  65. LaTeX(pLaTeX2e)でOpen Type Fontを有効に利用するための
  66. VF およびスタイルファイルです。
  67. platex 上で利用できます。
  68. 以下のマクロが含まれています。
  69. hiraprop.sty ajmacros.sty mlcid.sty mlutf.sty otf.sty
  70. otfaltkana.sty redeffont.sty
  71. %prep
  72. %setup -q -c -n %{name}-%{version} -a 1 -a 2
  73. #for i in `grep -l -ir ovp2ovf * | grep -v readme`;
  74. #do
  75. # perl -pi -e "s@ovp2ovf@ovp2ovf-1.11@" $i
  76. #done
  77. ## rename from pltotf to ppltotf
  78. %__sed -i -e "s,^pltotf,ppltotf,g" kokana-%{kokanaver}/makealtkana || exit 1
  79. %build
  80. # ###### otfstable #####
  81. pushd otfcurrent-%{version}
  82. ./makeotf
  83. popd
  84. ###### kokana #####
  85. pushd kokana-%{kokanaver}
  86. nkf -be basepl/base-h.pl > base-h.pl
  87. nkf -be basepl/base-v.pl > base-v.pl
  88. %__mv -f base-[hv].pl basepl
  89. ./makealtkana
  90. popd
  91. %install
  92. %__rm -rf %{buildroot}
  93. %__mkdir fontmap test pdf
  94. %__mkdir_p %{buildroot}%{_bindir}
  95. %__mkdir_p %{build_texmf}/ptex/platex/otf
  96. %__mkdir_p %{build_texmf}-var/updmap-otf
  97. %__mkdir_p %{build_texvf}/otf
  98. %__mkdir_p %{build_textfm}/otf
  99. %__mkdir_p %{build_mapdir}
  100. %__install -m 644 %{SOURCE3} %{SOURCE4} %{SOURCE5} pdf
  101. %__install -m 755 %{SOURCE10} %{buildroot}%{_bindir}/updmap-otf
  102. ### set prefix dir ###
  103. %__perl -pi -e "s@/usr/local@/usr@" %{buildroot}%{_bindir}/updmap-otf
  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. * Fri Dec 31 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-2
  173. - for vl5 + texlive, renamed to texlive-texmacro-otf
  174. * Sat Jul 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-1
  175. - new upstream relase
  176. - TeX Linux 2009
  177. * Fri May 15 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.9-3
  178. - added otf-ps-morisawax{-noEmbed}.map
  179. * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.9-2
  180. - spec in utf8
  181. * Tue Aug 05 2008 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.9-1
  182. - applied new versioning policy
  183. * Sun Apr 07 2007 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.9-0vl1
  184. - new upstream release
  185. * Sat May 27 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.7.1-0vl2
  186. - updmap-otf v0.9: use noEmbed.map instead of noEmbeddedFont.map
  187. * Fri May 12 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.7.1-0vl1
  188. - resync with ptetex3-20060506
  189. * Sun Nov 06 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl3
  190. - resync with ptetex3-20051102
  191. * Wed Aug 31 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl2
  192. - resync with ptetex3-20050830
  193. * Sat Jun 18 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl1
  194. - source update
  195. - modified for teTeX3
  196. * Thu Feb 03 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.6-0vl1
  197. - source update
  198. * Thu Jan 20 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.5-0vl1
  199. - source update
  200. * Sun Nov 07 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl5
  201. - updmap-0.7
  202. * Mon Oct 18 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl4
  203. - updmap-0.6
  204. * Mon Oct 11 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl3
  205. - updmap-0.5
  206. * Thu Sep 30 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl2
  207. - fixed updmap
  208. * Thu Sep 30 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl1
  209. - source update
  210. - updmap-0.4
  211. * Thu Apr 08 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl4
  212. - update updmap-otf: take over before setting in "auto" target
  213. - remove requires texmacro-sfujita
  214. * Sat Apr 03 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl3
  215. - fix postun
  216. * Fri Apr 02 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl2
  217. - drop extrafonts and added hiraprop
  218. - update updmap-otf and *-udvips.map
  219. * Sun Mar 28 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl1
  220. - source update
  221. - added updmap-otf
  222. * Wed Feb 04 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0.9-0vl1
  223. - first release