texmacro-otf-vl.spec 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. %define tlversion 2017
  2. %define hirapropver 0.3
  3. %define kokanaver 1.0b2
  4. %define otfver 1.7
  5. %define otfbetaver b6
  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: 9%{?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. #% _tl_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. * Sun Jun 18 2017 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-9.b6
  161. - TeX Live 2017
  162. * Thu Apr 28 2016 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-8.b6
  163. - TeX Live 2016
  164. * Tue Apr 28 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-7.b6
  165. - TeX Live 2015
  166. * Sun May 25 2014 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-6.b6
  167. - updated to 1.7b6
  168. - TeX Live 2014
  169. * Sat Aug 24 2013 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-5.b5
  170. - TeX Live 2013
  171. * Sat Nov 24 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-4.b5
  172. - TeX Live 2012
  173. - add Requires: texlive-collection-langcjk
  174. - it contains otf packages v1.7b5
  175. * Sun Apr 15 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-3.b5
  176. - updated to 1.7b5
  177. * Sun Dec 4 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-2.b3
  178. - defined %%exec_texhash
  179. * Sat Nov 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-1.b3
  180. - new upstream release
  181. - changed Url, License tags
  182. - TeX Linux 2011
  183. * Mon May 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-4
  184. - fixed updmap-otf
  185. - changed $$MAPDIR to $${TEXMF}/fonts/map/dvipdfm/otf
  186. * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-3
  187. - changed %%mapdir to %%{texmf}/fonts/map/dvipdfm/otf
  188. * Sat Jan 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-2
  189. - added Obsoletes: texlive-texmacro-otf <= 1.5.6.1
  190. - for TeX Live 2009 of VinePlus/5, supported texlive-texmacro-otf
  191. * Sat Jul 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-1
  192. - new upstream release
  193. - TeX Linux 2009
  194. * Fri May 15 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.9-3
  195. - added otf-ps-morisawax{-noEmbed}.map
  196. * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.9-2
  197. - spec in utf8
  198. * Tue Aug 05 2008 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.9-1
  199. - applied new versioning policy
  200. * Sun Apr 07 2007 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.9-0vl1
  201. - new upstream release
  202. * Sat May 27 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.7.1-0vl2
  203. - updmap-otf v0.9: use noEmbed.map instead of noEmbeddedFont.map
  204. * Fri May 12 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.7.1-0vl1
  205. - resync with ptetex3-20060506
  206. * Sun Nov 06 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl3
  207. - resync with ptetex3-20051102
  208. * Wed Aug 31 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl2
  209. - resync with ptetex3-20050830
  210. * Sat Jun 18 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl1
  211. - source update
  212. - modified for teTeX3
  213. * Thu Feb 03 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.6-0vl1
  214. - source update
  215. * Thu Jan 20 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.5-0vl1
  216. - source update
  217. * Sun Nov 07 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl5
  218. - updmap-0.7
  219. * Mon Oct 18 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl4
  220. - updmap-0.6
  221. * Mon Oct 11 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl3
  222. - updmap-0.5
  223. * Thu Sep 30 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl2
  224. - fixed updmap
  225. * Thu Sep 30 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl1
  226. - source update
  227. - updmap-0.4
  228. * Thu Apr 08 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl4
  229. - update updmap-otf: take over before setting in "auto" target
  230. - remove requires texmacro-sfujita
  231. * Sat Apr 03 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl3
  232. - fix postun
  233. * Fri Apr 02 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl2
  234. - drop extrafonts and added hiraprop
  235. - update updmap-otf and *-udvips.map
  236. * Sun Mar 28 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl1
  237. - source update
  238. - added updmap-otf
  239. * Wed Feb 04 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0.9-0vl1
  240. - first release