hevea-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. %define tex_destdir %{_datadir}
  2. %define texmf %{tex_destdir}/texmf
  3. Summary: LaTeX to HTML translator
  4. Summary(ja): LaTeXをHTMLに変換
  5. Name: hevea
  6. Version: 1.10
  7. Release: 1%{?_dist_release}
  8. License: QPL
  9. Group: Applications/Publishing
  10. URL: http://hevea.inria.fr/
  11. Source: http://hevea.inria.fr/distri/hevea-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. %if %{?_dist_release} == "vl5"
  16. BuildRequires: tetex
  17. %endif
  18. %if %{?_dist_release} >= "vl6"
  19. BuildRequires: texlive-common
  20. %endif
  21. BuildRequires: ocaml >= 3.0.7
  22. %if %{?_dist_release} == "vl5"
  23. Requires: tetex
  24. %endif
  25. %if %{?_dist_release} >= "vl6"
  26. Requires: texlive-common
  27. %endif
  28. Requires: netpbm-progs ghostscript
  29. %description
  30. HEVEA is a quite complete and fast LATEX to HTML translator.
  31. HEVEA renders symbols by using the so-called HTML "entites", which
  32. modern browsers display correctly most of the time.
  33. %description -l ja
  34. HEVEA は LaTeX を HTML に変換するプログラムです.
  35. %prep
  36. %setup -q
  37. # Set our default paths
  38. %__sed -i -e "s#\(BINDIR=\).*#\\1%{_bindir}#; \
  39. s#\(LIBDIR=\).*#\\1%{_datadir}/%{name}#; \
  40. s#\(LATEXLIBDIR=\).*#\\1%{texmf}/tex/latex/hevea#; \
  41. s#\(DESTDIR=\).*#\\1%{buildroot}#; \
  42. " config.sh
  43. %build
  44. %__make %{?_smp_mflags} \
  45. PREFIX=%{_prefix} \
  46. LIBDIR=%{_datadir}/hevea \
  47. BINDIR=%{_bindir} \
  48. LATEXLIBDIR=%{texmf}/tex/latex/hevea
  49. %install
  50. %__rm -rf %{buildroot}
  51. %__make install \
  52. DESTDIR=%{buildroot} \
  53. PREFIX=%{_prefix} \
  54. LIBDIR=%{_datadir}/hevea \
  55. BINDIR=%{_bindir} \
  56. LATEXLIBDIR=%{texmf}/tex/latex/hevea
  57. %clean
  58. %__rm -rf $RPM_BUILD_ROOT
  59. %post -p %{_bindir}/texhash
  60. %postun -p %{_bindir}/texhash
  61. %files
  62. %defattr(-,root,root,-)
  63. %doc README CHANGES LICENSE
  64. %{_bindir}/*
  65. %{_datadir}/hevea
  66. %{texmf}/tex/latex/hevea/
  67. %changelog
  68. * Sat Feb 4 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.10-1
  69. - update to 1.10
  70. * Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.08-2
  71. - TeX Live 2009
  72. * Sat Aug 30 2008 Shu KONNO <owa@bg.wakwak.com> 1.08-1vl5
  73. - applied new versioning policy, spec in utf-8
  74. - fixed scripts about library path
  75. * Thu Aug 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com>
  76. - rebuilt for VineSeed (4.0)
  77. * Thu May 19 2005 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  78. - Updated to 1.08 with much modification of spec
  79. * Tue Feb 15 2005 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  80. - Initial package for VineLinux 3.0