texmacro-otf-vl.spec 10 KB

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