latex2html.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. ##
  2. ## latex2html.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.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. # package version
  26. %define V_dist 2002-2-1
  27. %define V_opkg 2002.2.1
  28. # package information
  29. Name: latex2html
  30. Summary: LaTeX to HTML Conversion
  31. URL: http://www.latex2html.org/
  32. Vendor: Nikos Drakos
  33. Packager: The OpenPKG Project
  34. Distribution: OpenPKG [PLUS]
  35. Group: Converter
  36. License: GPL
  37. Version: %{V_opkg}
  38. Release: 20030731
  39. # list of sources
  40. Source0: http://saftsack.fs.uni-bayreuth.de/~latex2ht/current/latex2html-%{V_dist}.tar.gz
  41. Patch0: latex2html.patch
  42. # build information
  43. Prefix: %{l_prefix}
  44. BuildRoot: %{l_buildroot}
  45. BuildPreReq: OpenPKG, openpkg >= 20030103, perl, ghostscript, tetex, png, netpbm
  46. PreReq: OpenPKG, openpkg >= 20030103, perl, ghostscript, tetex, png, netpbm
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. LaTeX2HTML is a full-featured conversion utility which transforms
  51. LaTeX print documents into HTML online documents.
  52. %prep
  53. %setup -q -n latex2html-%{V_dist}
  54. %patch -p0
  55. %build
  56. CC="%{l_cc}" \
  57. CXX="%{l_cxx}" \
  58. CFLAGS="%{l_cflags -O}" \
  59. CXXFLAGS="%{l_cxxflags -O}" \
  60. CPPFLAGS="%{l_cppflags}" \
  61. LDFLAGS="%{l_ldflags}" \
  62. ./configure \
  63. --prefix=%{l_prefix} \
  64. --libdir=%{l_prefix}/share/latex2html \
  65. --shlibdir=%{l_prefix}/share/latex2html \
  66. --with-iconpath=/latex2html \
  67. --with-iconstorage=%{l_prefix}/pub/latex2html \
  68. --with-perl=%{l_prefix}/bin/perl \
  69. --with-mktexlsr=true \
  70. --enable-images \
  71. --enable-eps \
  72. --enable-gif \
  73. --enable-png \
  74. --enable-pipes \
  75. --enable-paths \
  76. --enable-wrapper
  77. %{l_make} %{l_mflags -O}
  78. %install
  79. rm -rf $RPM_BUILD_ROOT
  80. %{l_shtool} mkdir -f -p -m 755 \
  81. $RPM_BUILD_ROOT%{l_prefix}/bin \
  82. $RPM_BUILD_ROOT%{l_prefix}/share/latex2html
  83. export DESTDIR=$RPM_BUILD_ROOT
  84. %{l_make} %{l_mflags} install DESTDIR="$DESTDIR"
  85. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/latex2html/docs
  86. rm -rf $RPM_BUILD_ROOT%{l_prefix}/pub/latex2html
  87. ln -s ../share/latex2html/icons $RPM_BUILD_ROOT%{l_prefix}/pub/latex2html
  88. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  89. %{l_files_std} \
  90. '%not %dir %{l_prefix}/share/texmf/tex/latex' \
  91. '%not %dir %{l_prefix}/share/texmf/tex' \
  92. '%not %dir %{l_prefix}/share/texmf'
  93. %files -f files
  94. %clean
  95. rm -rf $RPM_BUILD_ROOT
  96. %post
  97. echo "Running mktexlsr to rebuild teTeX ls-R database..." | %{l_rpmtool} msg -t notice
  98. $RPM_INSTALL_PREFIX/bin/mktexlsr
  99. %preun
  100. if [ $1 -eq 0 ]; then
  101. rm -f $RPM_INSTALL_PREFIX/share/texmf/ls-R >/dev/null 2>&1 || true
  102. fi