mathabx-vl.spec 3.7 KB

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