html2ps.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ##
  2. ## html2ps.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. # package information
  26. Name: html2ps
  27. Summary: HTML to PostScript converter
  28. URL: http://www.tdb.uu.se/~jan/html2ps.html
  29. Vendor: Jan Kärrman
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [PLUS]
  32. Group: Converter
  33. License: GPL
  34. Version: 1.0b3
  35. Release: 20030704
  36. # list of sources
  37. Source0: http://www.tdb.uu.se/~jan/html2ps-%{version}.tar.gz
  38. Source1: html2psrc
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20030103
  43. PreReq: OpenPKG, openpkg >= 20030103, perl, perl-www, netpbm
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. A command line utility written in Perl, html2ps converts HTML
  48. documents into postscript documents.
  49. %prep
  50. %setup -q
  51. %build
  52. %install
  53. rm -rf $RPM_BUILD_ROOT
  54. %{l_shtool} mkdir -f -p -m 755 \
  55. $RPM_BUILD_ROOT%{l_prefix}/bin \
  56. $RPM_BUILD_ROOT%{l_prefix}/etc/html2ps \
  57. $RPM_BUILD_ROOT%{l_prefix}/share/html2ps \
  58. $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
  59. $RPM_BUILD_ROOT%{l_prefix}/man/man5
  60. %{l_shtool} install -c -m 755 \
  61. -e 's;^:.*;#!%{l_prefix}/bin/perl;' \
  62. -e 's;/usr/local/lib/html2ps/html2psrc;%{l_prefix}/etc/html2ps/html2psrc;g' \
  63. -e 's;/usr/local/lib/html2ps/html2ps.html;%{l_prefix}/share/html2ps/html2ps.html;g' \
  64. html2ps $RPM_BUILD_ROOT%{l_prefix}/bin/
  65. %{l_shtool} install -c -m 644 \
  66. sample $RPM_BUILD_ROOT%{l_prefix}/etc/html2ps/html2psrc.sample
  67. %{l_shtool} install -c -m 644 \
  68. -e 's;@l_prefix@;%{l_prefix};g' \
  69. %{SOURCE html2psrc} $RPM_BUILD_ROOT%{l_prefix}/etc/html2ps/
  70. %{l_shtool} install -c -m 644 \
  71. html2ps.html hyphen.tex \
  72. $RPM_BUILD_ROOT%{l_prefix}/share/html2ps/
  73. %{l_shtool} install -c -m 644 \
  74. html2ps.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  75. %{l_shtool} install -c -m 644 \
  76. html2psrc.5 $RPM_BUILD_ROOT%{l_prefix}/man/man5/
  77. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  78. %{l_files_std} \
  79. '%config %{l_prefix}/etc/html2ps/html2psrc'
  80. %files -f files
  81. %clean
  82. rm -rf $RPM_BUILD_ROOT