texmacro-otf-vl.spec 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. %define tlversion 2013
  2. %define hirapropver 0.3
  3. %define kokanaver 1.0b2
  4. %define otfver 1.7
  5. %define otfbetaver b5
  6. %define texmf %{_tl_texmfvine}
  7. %define texvf %{texmf}/fonts/vf/public
  8. %define texofm %{texmf}/fonts/ofm/public
  9. %define textfm %{texmf}/fonts/tfm/public
  10. %define mapdir %{texmf}/fonts/map/dvipdfmx
  11. %define build_texmf %{buildroot}%{texmf}
  12. %define build_texvf %{buildroot}%{texvf}
  13. %define build_texofm %{buildroot}%{texofm}
  14. %define build_textfm %{buildroot}%{textfm}
  15. %define build_mapdir %{buildroot}%{mapdir}
  16. Summary: TeX Live macro packages for "VF for OpenType Fonts" by S. Saito
  17. Summary(ja): TeX Live で使うマクロパッケージ (齋藤修三郎氏による「OpenType Font用VF」)
  18. Name: texmacro-otf
  19. Version: %{otfver}
  20. Release: 5%{?otfbetaver:.%otfbetaver}%{?_dist_release}
  21. Source0: http://psitau.kitunebi.com/otf%{version}%{?otfbetaver:%otfbetaver}.zip
  22. #Source1: http://psitau.at.infoseek.co.jp/hiraprop.zip
  23. Source1: hiraprop-%{hirapropver}.tar.bz2
  24. #Source2: http://psitau.at.infoseek.co.jp/kokana.zip
  25. Source2: kokana-%{kokanaver}.tar.bz2
  26. Source3: http://psitau.at.infoseek.co.jp/otfmanual.pdf
  27. Source4: http://psitau.at.infoseek.co.jp/kitunetuki.pdf
  28. Source5: http://psitau.at.infoseek.co.jp/meijinden.pdf
  29. URL: http://psitau.kitunebi.com/otf.html
  30. License: BSD
  31. Group: Applications/Publishing
  32. BuildRequires: texlive-vtlpkg = %{tlversion}
  33. BuildRequires: texlive-common = %{tlversion}
  34. BuildRequires: perl, nkf
  35. Requires: texlive-common = %{tlversion}
  36. Requires: ghostscript
  37. ## NOTE: texlive-collection-langcjk-2012 has otf.sty:
  38. ## /usr/share/texmf-dist/tex/platex/japanese-otf-uptex/otf.sty
  39. Requires: texlive-collection-langcjk = %{tlversion}
  40. BuildArch: noarch
  41. Buildroot: %{_tmppath}/%{name}-%{version}-root
  42. Obsoletes: texlive-texmacro-otf <= 1.5.6.1
  43. Distribution: Vine Linux
  44. Vendor: Project Vine
  45. %description
  46. TeX Live macro packages of VF for OpenType Fonts by SAITO Shuzaburo
  47. Users can use these macros on platex.
  48. Including
  49. hiraprop.sty ajmacros.sty mlcid.sty mlutf.sty otf.sty
  50. otfaltkana.sty redeffont.sty
  51. %description -l ja
  52. 齋藤修三郎氏作成の TeX Live で用いる追加マクロパッケージです。
  53. LaTeX(pLaTeX2e)でOpen Type Fontを有効に利用するための
  54. 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. ##
  62. (cd otfbeta
  63. chmod +x makeotf
  64. %__sed -i -e "s/ovp2ovf/wovp2ovf/" mkjvf && chmod +x mkjvf || exit 1
  65. for x in script/*.pl; do
  66. %__sed -i -e "s/ovp2ovf/wovp2ovf/" $x && chmod +x $x || exit 1
  67. done
  68. )
  69. ## rename from pltotf to ppltotf
  70. %__sed -i -e "s,^pltotf,ppltotf,g" kokana-%{kokanaver}/makealtkana || exit 1
  71. %build
  72. ###### otf #####
  73. (cd otfbeta
  74. ./makeotf
  75. )
  76. ###### kokana #####
  77. pushd kokana-%{kokanaver}
  78. nkf -be basepl/base-h.pl > base-h.pl
  79. nkf -be basepl/base-v.pl > base-v.pl
  80. %__mv -f base-[hv].pl basepl
  81. ./makealtkana
  82. popd
  83. %install
  84. %__rm -rf %{buildroot}
  85. %__mkdir_p fontmap test pdf
  86. %__mkdir_p %{buildroot}%{_bindir}
  87. %__mkdir_p %{build_texmf}/tex/platex/japanese-otf
  88. %__mkdir_p %{build_texvf}/japanese-otf
  89. %__mkdir_p %{build_textfm}/japanese-otf
  90. %__mkdir_p %{build_mapdir}/japanese-otf
  91. %__install -m 644 %{SOURCE3} %{SOURCE4} %{SOURCE5} pdf
  92. ###### otfstable #####
  93. (cd otfbeta
  94. # %__install -m 644 sty/* %{build_texmf}/tex/platex/japanese-otf
  95. # %__install -m 644 vf/* %{build_texvf}/japanese-otf
  96. # %__install -m 644 tfm/* %{build_textfm}/japanese-otf
  97. %__install -m 644 readme.txt ../readme-otf.txt
  98. %__install -m 644 test/*.tex ../test
  99. )
  100. ###### hiraprop #####
  101. %__mkdir_p %{build_texmf}/tex/platex/hiraprop
  102. %__mkdir_p %{build_texvf}/hiraprop
  103. %__mkdir_p %{build_texofm}/hiraprop
  104. %__mkdir_p %{build_textfm}/hiraprop
  105. pushd hiraprop-%{hirapropver}
  106. %__install -m 644 sty/* %{build_texmf}/tex/platex/hiraprop
  107. %__install -m 644 vf/hiraprop/* %{build_texvf}/hiraprop
  108. %__install -m 644 ofm/hiraprop/* %{build_texofm}/hiraprop
  109. %__install -m 644 tfm/hiraprop/* %{build_textfm}/hiraprop
  110. %__install -m 644 *.tex ../test
  111. %__install -m 644 readme.txt ../readme-hiraprop.txt
  112. popd
  113. ###### kokana #####
  114. pushd kokana-%{kokanaver}
  115. %__install -m 644 otfaltkana.sty %{build_texmf}/tex/platex/japanese-otf
  116. %__install -m 644 vf/* %{build_texvf}/japanese-otf
  117. %__install -m 644 tfm/* %{build_textfm}/japanese-otf
  118. %__install -m 644 sample/kokanatest.tex ../test
  119. %__install -m 644 readme.txt ../readme-kokana.txt
  120. popd
  121. ## remove duplicated files
  122. %__rm -f \
  123. %{build_texmf}/fonts/ofm/public/japanese-otf/hirakaku-w3-h.ofm \
  124. %{build_texmf}/fonts/ofm/public/japanese-otf/hirakaku-w6-h.ofm \
  125. %{build_texmf}/fonts/ofm/public/japanese-otf/hiramaru-w4-h.ofm \
  126. %{build_texmf}/fonts/ofm/public/japanese-otf/hiramin-w3-h.ofm \
  127. %{build_texmf}/fonts/ofm/public/japanese-otf/hiramin-w6-h.ofm \
  128. %{build_texmf}/fonts/tfm/public/japanese-otf/hirakaku-w3-h.tfm \
  129. %{build_texmf}/fonts/tfm/public/japanese-otf/hirakaku-w6-h.tfm \
  130. %{build_texmf}/fonts/tfm/public/japanese-otf/hiramaru-w4-h.tfm \
  131. %{build_texmf}/fonts/tfm/public/japanese-otf/hiramin-w3-h.tfm \
  132. %{build_texmf}/fonts/tfm/public/japanese-otf/hiramin-w6-h.tfm \
  133. || exit 1
  134. %post
  135. %_tl_touch_run texhash
  136. #% touch_run updmap
  137. exit 0
  138. %postun
  139. if [ "$1" = 0 ]; then
  140. %_tl_touch_run texhash
  141. #% _tl_touch_run updmap
  142. fi
  143. exit 0
  144. %posttrans
  145. %{_tl_exec_texhash}
  146. #% {_tl_exec_updmap}
  147. exit 0
  148. %clean
  149. %__rm -rf %{buildroot}
  150. %files
  151. %defattr(-,root,root)
  152. %doc readme* fontmap test pdf
  153. %{texmf}/tex/platex/japanese-otf
  154. %{texmf}/tex/platex/hiraprop
  155. %{texvf}
  156. %{textfm}
  157. %{texofm}
  158. # %{mapdir}/japanese-otf
  159. %changelog
  160. * Sat Aug 24 2013 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-5.b5
  161. - TeX Live 2013
  162. * Sat Nov 24 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-4.b5
  163. - TeX Live 2012
  164. - add Requires: texlive-collection-langcjk
  165. - it contains otf packages v1.7b5
  166. * Sun Apr 15 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-3.b5
  167. - updated to 1.7b5
  168. * Sun Dec 4 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-2.b3
  169. - defined %%exec_texhash
  170. * Sat Nov 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-1.b3
  171. - new upstream release
  172. - changed Url, License tags
  173. - TeX Linux 2011
  174. * Mon May 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-4
  175. - fixed updmap-otf
  176. - changed $$MAPDIR to $${TEXMF}/fonts/map/dvipdfm/otf
  177. * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-3
  178. - changed %%mapdir to %%{texmf}/fonts/map/dvipdfm/otf
  179. * Sat Jan 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-2
  180. - added Obsoletes: texlive-texmacro-otf <= 1.5.6.1
  181. - for TeX Live 2009 of VinePlus/5, supported texlive-texmacro-otf
  182. * Sat Jul 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-1
  183. - new upstream release
  184. - TeX Linux 2009
  185. * Fri May 15 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.9-3
  186. - added otf-ps-morisawax{-noEmbed}.map
  187. * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.9-2
  188. - spec in utf8
  189. * Tue Aug 05 2008 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.9-1
  190. - applied new versioning policy
  191. * Sun Apr 07 2007 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.9-0vl1
  192. - new upstream release
  193. * Sat May 27 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.7.1-0vl2
  194. - updmap-otf v0.9: use noEmbed.map instead of noEmbeddedFont.map
  195. * Fri May 12 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.7.1-0vl1
  196. - resync with ptetex3-20060506
  197. * Sun Nov 06 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl3
  198. - resync with ptetex3-20051102
  199. * Wed Aug 31 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl2
  200. - resync with ptetex3-20050830
  201. * Sat Jun 18 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl1
  202. - source update
  203. - modified for teTeX3
  204. * Thu Feb 03 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.6-0vl1
  205. - source update
  206. * Thu Jan 20 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.5-0vl1
  207. - source update
  208. * Sun Nov 07 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl5
  209. - updmap-0.7
  210. * Mon Oct 18 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl4
  211. - updmap-0.6
  212. * Mon Oct 11 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl3
  213. - updmap-0.5
  214. * Thu Sep 30 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl2
  215. - fixed updmap
  216. * Thu Sep 30 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl1
  217. - source update
  218. - updmap-0.4
  219. * Thu Apr 08 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl4
  220. - update updmap-otf: take over before setting in "auto" target
  221. - remove requires texmacro-sfujita
  222. * Sat Apr 03 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl3
  223. - fix postun
  224. * Fri Apr 02 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl2
  225. - drop extrafonts and added hiraprop
  226. - update updmap-otf and *-udvips.map
  227. * Sun Mar 28 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl1
  228. - source update
  229. - added updmap-otf
  230. * Wed Feb 04 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0.9-0vl1
  231. - first release