texmacro-otf-vl.spec 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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_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: 2%{?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. %__sed -i -e "s/ovp2ovf/wovp2ovf/" mkjvf && chmod +x mkjvf || exit 1
  70. for x in script/*.pl; do
  71. %__sed -i -e "s/ovp2ovf/wovp2ovf/" $x && chmod +x $x || exit 1
  72. done
  73. )
  74. ## rename from pltotf to ppltotf
  75. %__sed -i -e "s,^pltotf,ppltotf,g" kokana-%{kokanaver}/makealtkana || exit 1
  76. %build
  77. ###### otf #####
  78. (cd otfbeta
  79. ./makeotf
  80. )
  81. ###### kokana #####
  82. pushd kokana-%{kokanaver}
  83. nkf -be basepl/base-h.pl > base-h.pl
  84. nkf -be basepl/base-v.pl > base-v.pl
  85. %__mv -f base-[hv].pl basepl
  86. ./makealtkana
  87. popd
  88. %install
  89. %__rm -rf %{buildroot}
  90. %__mkdir fontmap test pdf
  91. %__mkdir_p %{buildroot}%{_bindir}
  92. %__mkdir_p %{build_texmf}/tex/platex/otf
  93. #%__mkdir_p %{build_texmf}-var/updmap-otf
  94. %__mkdir_p %{build_texvf}/otf
  95. %__mkdir_p %{build_textfm}/otf
  96. %__mkdir_p %{build_mapdir}
  97. %__install -m 644 %{SOURCE3} %{SOURCE4} %{SOURCE5} pdf
  98. %__install -m 755 %{SOURCE10} %{buildroot}%{_bindir}/updmap-otf
  99. ###### otfstable #####
  100. (cd otfbeta
  101. %__install -m 644 sty/* %{build_texmf}/tex/platex/otf
  102. %__install -m 644 vf/* %{build_texvf}/otf
  103. %__install -m 644 tfm/* %{build_textfm}/otf
  104. %__install -m 644 readme.txt ../readme-otf.txt
  105. %__install -m 644 test/*.tex ../test
  106. )
  107. ###### hiraprop #####
  108. %__mkdir_p %{build_texmf}/tex/platex/hiraprop
  109. %__mkdir_p %{build_texvf}/hiraprop
  110. %__mkdir_p %{build_texofm}/hiraprop
  111. %__mkdir_p %{build_textfm}/hiraprop
  112. pushd hiraprop-%{hirapropver}
  113. %__install -m 644 sty/* %{build_texmf}/tex/platex/hiraprop
  114. %__install -m 644 vf/hiraprop/* %{build_texvf}/hiraprop
  115. %__install -m 644 ofm/hiraprop/* %{build_texofm}/hiraprop
  116. %__install -m 644 tfm/hiraprop/* %{build_textfm}/hiraprop
  117. %__install -m 644 *.tex ../test
  118. %__install -m 644 readme.txt ../readme-hiraprop.txt
  119. popd
  120. ###### kokana #####
  121. pushd kokana-%{kokanaver}
  122. %__install -m 644 otfaltkana.sty %{build_texmf}/tex/platex/otf
  123. %__install -m 644 vf/* %{build_texvf}/otf
  124. %__install -m 644 tfm/* %{build_textfm}/otf
  125. %__install -m 644 sample/kokanatest.tex ../test
  126. %__install -m 644 readme.txt ../readme-kokana.txt
  127. popd
  128. %post
  129. %{exec_texhash}
  130. #%{exec_updmap}
  131. %{exec_updmap_otf}
  132. exit 0
  133. %postun
  134. if [ "$1" = 0 ]; then
  135. #%__rm -rf %{texmf}-var/updmap-otf
  136. %{exec_texhash}
  137. %{exec_updmap}
  138. fi
  139. exit 0
  140. %clean
  141. %__rm -rf %{buildroot}
  142. %files
  143. %defattr(-,root,root)
  144. %doc readme* fontmap test pdf
  145. #%dir %{texmf}-var/updmap-otf
  146. %{_bindir}/updmap-otf
  147. %{texmf}/tex/platex/otf
  148. %{texmf}/tex/platex/hiraprop
  149. %{texvf}
  150. %{textfm}
  151. %{texofm}
  152. %{mapdir}
  153. %changelog
  154. * Sun Dec 4 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-2.b3
  155. - defined %%exec_texhash
  156. * Sat Nov 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.7-1.b3
  157. - new upstream release
  158. - changed Url, License tags
  159. - TeX Linux 2011
  160. * Mon May 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-4
  161. - fixed updmap-otf
  162. - changed $$MAPDIR to $${TEXMF}/fonts/map/dvipdfm/otf
  163. * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-3
  164. - changed %%mapdir to %%{texmf}/fonts/map/dvipdfm/otf
  165. * Sat Jan 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-2
  166. - added Obsoletes: texlive-texmacro-otf <= 1.5.6.1
  167. - for TeX Live 2009 of VinePlus/5, supported texlive-texmacro-otf
  168. * Sat Jul 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-1
  169. - new upstream release
  170. - TeX Linux 2009
  171. * Fri May 15 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.9-3
  172. - added otf-ps-morisawax{-noEmbed}.map
  173. * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.9-2
  174. - spec in utf8
  175. * Tue Aug 05 2008 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.9-1
  176. - applied new versioning policy
  177. * Sun Apr 07 2007 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.9-0vl1
  178. - new upstream release
  179. * Sat May 27 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.7.1-0vl2
  180. - updmap-otf v0.9: use noEmbed.map instead of noEmbeddedFont.map
  181. * Fri May 12 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.7.1-0vl1
  182. - resync with ptetex3-20060506
  183. * Sun Nov 06 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl3
  184. - resync with ptetex3-20051102
  185. * Wed Aug 31 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl2
  186. - resync with ptetex3-20050830
  187. * Sat Jun 18 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl1
  188. - source update
  189. - modified for teTeX3
  190. * Thu Feb 03 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.6-0vl1
  191. - source update
  192. * Thu Jan 20 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.5-0vl1
  193. - source update
  194. * Sun Nov 07 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl5
  195. - updmap-0.7
  196. * Mon Oct 18 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl4
  197. - updmap-0.6
  198. * Mon Oct 11 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl3
  199. - updmap-0.5
  200. * Thu Sep 30 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl2
  201. - fixed updmap
  202. * Thu Sep 30 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl1
  203. - source update
  204. - updmap-0.4
  205. * Thu Apr 08 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl4
  206. - update updmap-otf: take over before setting in "auto" target
  207. - remove requires texmacro-sfujita
  208. * Sat Apr 03 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl3
  209. - fix postun
  210. * Fri Apr 02 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl2
  211. - drop extrafonts and added hiraprop
  212. - update updmap-otf and *-udvips.map
  213. * Sun Mar 28 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl1
  214. - source update
  215. - added updmap-otf
  216. * Wed Feb 04 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0.9-0vl1
  217. - first release