mathabx-type1-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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}-dist/fonts/map/dvips/misc
  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: 2%{?_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: mathabx <= 2005-1
  31. Vendor: Project Vine
  32. Distribution: Vine Linux
  33. %description
  34. The mathabx font series is a high quality extended and extendable series of
  35. mathematical symbols.
  36. To use this package, you describe \usepackage{mathabx} at preamble in your
  37. TeX document.
  38. This package provides Type1 fonts of mathabx.
  39. %description -l ja
  40. mathabx は CM + AMS の拡張であると考えられます。 全体的に色々な工夫が見られ,
  41. 例えば、積分記号 \int が CM より垂直に見え、不等号 ≦ は AMS のものより < と
  42. = がくっついているので、日本人が見慣れているものにより近いようです。
  43. TeX 文書の最初の部分へ \usepackage{mathabx} と記述すれば、普通の数式モードに
  44. て mathabx の利用が可能になります。
  45. このパッケージは mathabx の Type1 を提供します。
  46. %prep
  47. %__rm -rf $RPM_BUILD_ROOT
  48. %setup -q -a 1 -a 2 -n %{pkgname}
  49. %build
  50. %install
  51. %__rm -rf $RPM_BUILD_ROOT
  52. # mkdir -p %{build_texmf}/fonts/source/public/mathabx
  53. # cp -p source/* %{build_texmf}/fonts/source/public/mathabx
  54. # mkdir -p %{build_texmf}/tex/latex/mathabx
  55. # cp -p texinputs/* %{build_texmf}/tex/latex/mathabx
  56. %__mkdir_p %{build_texmf}/fonts/type1/mathabx
  57. %__cp -p abxtype1/pfb/*.pfb %{build_texmf}/fonts/type1/mathabx
  58. %__mkdir_p %{buildroot}%{mapdir}
  59. %__cp -p abxtype1/map/mathabx.map %{buildroot}%{mapdir}/mathabx.map
  60. %post
  61. %{exec_texhash}
  62. [ -f %{texmf}/web2c/updmap.cfg ] || exit 0
  63. echo -n " " && \
  64. echo -n "Running updmap: enable mathabx.map ... " && \
  65. %{exec_updmap} --enable Map mathabx.map >/dev/null 2>&1 && \
  66. echo "done."
  67. exit 0
  68. %postun
  69. if [ "$1" = "0" ]; then
  70. %{exec_texhash}
  71. [ -f %{texmf}/web2c/updmap.cfg ] || exit 0
  72. echo -n " " && \
  73. echo -n "Running updmap: disable mathabx.map ... " && \
  74. %{exec_updmap} --disable mathabx.map >/dev/null 2>&1 && \
  75. echo "done."
  76. fi
  77. exit 0
  78. %clean
  79. %__rm -rf $RPM_BUILD_ROOT
  80. %files
  81. %defattr(-,root,root)
  82. # %{texmf}/fonts/source/public/mathabx/*
  83. %{texmf}/fonts/type1/mathabx/*
  84. # %{texmf}/tex/latex/mathabx/*
  85. %{mapdir}/mathabx.map
  86. # %doc mathtest.tex mathtest.dvi mathtest.pdf
  87. %changelog
  88. * Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2005-2
  89. - renamed to mathabx-type1
  90. - TeX Live 2009
  91. - added Requires: texlive-collection-fontsextra
  92. - texlive-collection-fontsextra has mathabx package
  93. * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 2005-1vl5
  94. - applied new versioning policy, spec in utf-8
  95. * Tue May 16 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 2005-0vl4
  96. - fix exec_updmap: added --nostop option
  97. * Fri Dec 02 2005 KOBAYASHI Taizo <tkoba@vinelinux.org> 2005-0vl3
  98. - fix install dir of mathabx.mat
  99. * Thu Nov 17 2005 KOBAYASHI Taizo <tkoba@vinelinux.org> 2005-0vl2
  100. - fix exec_updmap
  101. * Wed Nov 16 2005 KOBAYASHI Taizo <tkoba@vinelinux.org> 2005-0vl1
  102. - source update
  103. - modified for tetex-3.0
  104. * Tue Feb 03 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2003-0vl3
  105. - fix exec_updmap
  106. * Thu Dec 02 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2003-0vl2
  107. - source update
  108. * Fri Aug 01 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2003-0vl1
  109. - source update
  110. * Wed Jun 12 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2002-1vl2
  111. - update Type1 fonts
  112. * Sun Jun 09 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2002-1vl1
  113. - 1st release