mathabx-type1-vl.spec 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. %define pkgname mathabx
  2. %define tex_destdir %{_datadir}
  3. %define texmf %{tex_destdir}/texmf
  4. %define texlive_src %{tex_destdir}/texlive-sources
  5. %define build_tex_destdir %{buildroot}%{tex_destdir}
  6. %define build_texmf %{buildroot}%{texmf}
  7. %define exec_mktexlsr [ -x %{_bindir}/texconfig-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/texconfig-sys rehash
  8. %define exec_texhash [ -x %{_bindir}/texhash ] && PATH=%{_bindir}:$PATH %{_bindir}/texhash
  9. %define exec_updmap [ -x %{_bindir}/updmap-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/updmap-sys --nostop
  10. %define exec_fmtutil [ -x %{_bindir}/fmtutil-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/fmtutil-sys --all >/dev/null 2>&1
  11. %define exec_upddeffont [ -x %{_sbindir}/update-defaultfont ] && %{_sbindir}/update-defaultfont 2> /dev/null
  12. %define vartexfonts %{_var}/lib/texmf
  13. %define mapdir %{texmf}/fonts/map/dvips/mathabx
  14. %define mathabxdate 20050518
  15. Summary: The mathabx font series: extended and extendable series of mathematical symbols for TeX
  16. Summary(ja): mathabx: TeX 用の新しい数式フォント
  17. Name: mathabx-type1
  18. Version: 2005
  19. Release: 4%{?_dist_release}
  20. Source0: mathabx-%{mathabxdate}.tar.bz2
  21. Source1: abxtype1-%{mathabxdate}.tar.bz2
  22. Source2: mathabx_docs-%{mathabxdate}.tar.bz2
  23. URL: http://auemath.aichi-edu.ac.jp/~khotta/ghost/mathabx.html
  24. License: GPL
  25. Buildroot: %{_tmppath}/%{name}-%{version}-root
  26. Group: Applications/Publishing
  27. BuildArch: noarch
  28. PreReq: sed, sh-utils
  29. Requires: texlive-collection-fontsextra
  30. Obsoletes: texlive-mathabx-type1 <= 2005
  31. Obsoletes: mathabx <= 2005-1
  32. Vendor: Project Vine
  33. Distribution: Vine Linux
  34. %description
  35. The mathabx font series is a high quality extended and extendable series of
  36. mathematical symbols.
  37. To use this package, you describe \usepackage{mathabx} at preamble in your
  38. TeX document.
  39. This package provides Type1 fonts of mathabx.
  40. %description -l ja
  41. mathabx は CM + AMS の拡張であると考えられます。 全体的に色々な工夫が見られ,
  42. 例えば、積分記号 \int が CM より垂直に見え、不等号 ≦ は AMS のものより < と
  43. = がくっついているので、日本人が見慣れているものにより近いようです。
  44. TeX 文書の最初の部分へ \usepackage{mathabx} と記述すれば、普通の数式モードに
  45. て mathabx の利用が可能になります。
  46. このパッケージは mathabx の Type1 を提供します。
  47. %prep
  48. %__rm -rf $RPM_BUILD_ROOT
  49. %setup -q -a 1 -a 2 -n %{pkgname}
  50. %build
  51. %install
  52. %__rm -rf $RPM_BUILD_ROOT
  53. # mkdir -p %{build_texmf}/fonts/source/public/mathabx
  54. # cp -p source/* %{build_texmf}/fonts/source/public/mathabx
  55. # mkdir -p %{build_texmf}/tex/latex/mathabx
  56. # cp -p texinputs/* %{build_texmf}/tex/latex/mathabx
  57. %__mkdir_p %{build_texmf}/fonts/type1/mathabx
  58. %__cp -p abxtype1/pfb/*.pfb %{build_texmf}/fonts/type1/mathabx
  59. %__mkdir_p %{buildroot}%{mapdir}
  60. %__cp -p abxtype1/map/mathabx.map %{buildroot}%{mapdir}/mathabx.map
  61. %post
  62. %{exec_texhash}
  63. [ -f %{texmf}/web2c/updmap.cfg ] || exit 0
  64. echo -n " " && \
  65. echo -n "Running updmap: enable mathabx.map ... " && \
  66. %{exec_updmap} --enable Map mathabx.map >/dev/null 2>&1 && \
  67. echo "done."
  68. exit 0
  69. %postun
  70. if [ "$1" = "0" ]; then
  71. %{exec_texhash}
  72. [ -f %{texmf}/web2c/updmap.cfg ] || exit 0
  73. echo -n " " && \
  74. echo -n "Running updmap: disable mathabx.map ... " && \
  75. %{exec_updmap} --disable mathabx.map >/dev/null 2>&1 && \
  76. echo "done."
  77. fi
  78. exit 0
  79. %clean
  80. %__rm -rf $RPM_BUILD_ROOT
  81. %files
  82. %defattr(-,root,root)
  83. # %{texmf}/fonts/source/public/mathabx/*
  84. %{texmf}/fonts/type1/mathabx/*
  85. # %{texmf}/tex/latex/mathabx/*
  86. %{mapdir}/mathabx.map
  87. # %doc mathtest.tex mathtest.dvi mathtest.pdf
  88. %changelog
  89. * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2005-4
  90. - fixed %%mapdir
  91. * Sat Jan 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2005-3
  92. - added Obsoletes: texlive-mathabx-type1 <= 2005
  93. - for TeX Live 2009 of VinePlus/5, supported texlive-mathabx-type1
  94. * Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2005-2
  95. - renamed to mathabx-type1
  96. - TeX Live 2009
  97. - added Requires: texlive-collection-fontsextra
  98. - texlive-collection-fontsextra has mathabx package
  99. * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 2005-1vl5
  100. - applied new versioning policy, spec in utf-8
  101. * Tue May 16 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 2005-0vl4
  102. - fix exec_updmap: added --nostop option
  103. * Fri Dec 02 2005 KOBAYASHI Taizo <tkoba@vinelinux.org> 2005-0vl3
  104. - fix install dir of mathabx.mat
  105. * Thu Nov 17 2005 KOBAYASHI Taizo <tkoba@vinelinux.org> 2005-0vl2
  106. - fix exec_updmap
  107. * Wed Nov 16 2005 KOBAYASHI Taizo <tkoba@vinelinux.org> 2005-0vl1
  108. - source update
  109. - modified for tetex-3.0
  110. * Tue Feb 03 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2003-0vl3
  111. - fix exec_updmap
  112. * Thu Dec 02 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2003-0vl2
  113. - source update
  114. * Fri Aug 01 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2003-0vl1
  115. - source update
  116. * Wed Jun 12 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2002-1vl2
  117. - update Type1 fonts
  118. * Sun Jun 09 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2002-1vl1
  119. - 1st release