hevea.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ##
  2. ## hevea.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. %define V_dist 2002.09.17
  26. %define V_opkg 20020917
  27. # package information
  28. Name: hevea
  29. Summary: LaTeX to HTML Converter
  30. URL: http://para.inria.fr/~maranget/hevea/
  31. Vendor: Luc Maranget
  32. Packager: The OpenPKG Project
  33. Distribution: OpenPKG [EVAL]
  34. Group: Text
  35. License: QPL
  36. Version: %{V_opkg}
  37. Release: 20020918
  38. # list of sources
  39. Source0: ftp://ftp.inria.fr/INRIA/Projects/para/hevea/unstable/hevea-%{V_dist}.tar.gz
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20020206, ocaml, make, gcc
  44. PreReq: OpenPKG, openpkg >= 20020206
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. HEVEA is a LaTeX to HTML translator. The input language is a fairly
  49. complete subset of LaTeX2e (old LaTeX style is also accepted) and
  50. the output language is HTML that is (hopefully) correct with respect
  51. to version 4.0 (transitional) Exotic symbols are translated into
  52. symbols pertaining to the symbol font of the HTML browser, using the
  53. FACE attribute of the FONT tag. This allows the translation to HTML
  54. of quite a lot of the symbols used in LaTeX. HEVEA understands LaTeX
  55. macro definitions. Simple user style files are understood with
  56. little or no modifications. Furthermore, HEVEA customization is done
  57. by writing LaTeX code.
  58. %prep
  59. %setup -q -n hevea-%{V_dist}
  60. %build
  61. %{l_make} %{l_mflags -O} \
  62. TARGET=opt CPP="%{l_cc} -E -P -x c" \
  63. BINDIR=%{l_prefix}/bin \
  64. LIBDIR=%{l_prefix}/share/hevea
  65. %install
  66. rm -rf $RPM_BUILD_ROOT
  67. %{l_shtool} mkdir -f -p -m 755 \
  68. $RPM_BUILD_ROOT%{l_prefix}/bin \
  69. $RPM_BUILD_ROOT%{l_prefix}/share/hevea
  70. %{l_make} %{l_mflags -O} install \
  71. TARGET=opt CPP="%{l_cc} -E -P -x c" \
  72. BINDIR=$RPM_BUILD_ROOT%{l_prefix}/bin \
  73. LIBDIR=$RPM_BUILD_ROOT%{l_prefix}/share/hevea
  74. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  75. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  76. %files -f files
  77. %clean
  78. rm -rf $RPM_BUILD_ROOT