texmacro-otf-vl.spec 8.2 KB

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