texmacro-otf-vl.spec 7.9 KB

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