w3m.spec 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. ##
  2. ## w3m.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 information
  26. Name: w3m
  27. Summary: Interactive Full-Screen Client for HTTP/HTTPS/FTP Protocols
  28. URL: http://w3m.sourceforge.net/
  29. Vendor: Akinori Ito
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [BASE]
  32. Group: Web
  33. License: BSD
  34. Version: 0.4.1
  35. Release: 20030731
  36. # list of sources
  37. Source0: http://osdn.dl.sourceforge.net/sourceforge/w3m/w3m-%{version}.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20020206, make
  42. PreReq: OpenPKG, openpkg >= 20020206
  43. BuildPreReq: ncurses, openssl, zlib, gc
  44. PreReq: ncurses, openssl, zlib, gc
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. W3M is a text-based web browser as well as a pager like `more'
  49. or `less'. With w3m you can browse web pages through a terminal
  50. emulator window (xterm, rxvt or something like that). Moreover, w3m
  51. can be used as a text formatting tool which typesets HTML into plain
  52. text.
  53. %prep
  54. %setup -q
  55. %{l_shtool} subst \
  56. -e 's;for tlibdir in;& $prefix/lib;g' \
  57. -e 's;for inc in;& $prefix/include;g' \
  58. configure
  59. %build
  60. ( echo "# Configuration at `hostname`"
  61. echo "use_help_cgi=n"
  62. echo "pref_lang=2"
  63. echo "lynx_key=n"
  64. echo "ftppass_hostnamegen=n"
  65. echo "show_params=n"
  66. echo "use_nntp=n"
  67. echo "ansi_color=n"
  68. echo "use_color=y"
  69. echo "use_menu=y"
  70. echo "use_mouse=y"
  71. echo "use_cookie=y"
  72. echo "use_ssl=y"
  73. echo "customized=y"
  74. echo "use_ssl_verify=y"
  75. echo "use_digest_auth=y"
  76. echo "use_bundled_gclib=n"
  77. ) >config.param
  78. CC="%{l_cc}" \
  79. CFLAGS="%{l_cflags -O}" \
  80. LDFLAGS="%{l_ldflags} -lncurses" \
  81. ./configure \
  82. -prefix="%{l_prefix}" \
  83. -libdir="%{l_prefix}/libexec/w3m" \
  84. -helpdir="%{l_prefix}/share/w3m" \
  85. -sysconfdir="%{l_prefix}/etc/w3m" \
  86. -model=monster \
  87. -lang=en \
  88. -yes \
  89. --ssl-includedir="%{l_prefix}/include" \
  90. --ssl-libdir="%{l_prefix}/lib" \
  91. --mimetypes="%{l_prefix}/etc/w3m/mime.types"
  92. %{l_shtool} subst -e 's;-L/usr/lib; ;g' config.h
  93. %{l_make} %{l_mflags}
  94. %install
  95. rm -rf $RPM_BUILD_ROOT
  96. %{l_shtool} mkdir -f -p -m 755 \
  97. $RPM_BUILD_ROOT%{l_prefix}/etc/w3m \
  98. $RPM_BUILD_ROOT%{l_prefix}/bin \
  99. $RPM_BUILD_ROOT%{l_prefix}/share/w3m \
  100. $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m
  101. %{l_shtool} install -c -s -m 755 w3m $RPM_BUILD_ROOT%{l_prefix}/bin/
  102. %{l_shtool} install -c -s -m 755 \
  103. w3mbookmark w3mhelperpanel \
  104. $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/
  105. %{l_shtool} install -c -m 755 \
  106. scripts/dirlist.cgi \
  107. scripts/w3mmail.cgi \
  108. $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/
  109. %{l_shtool} install -c -m 644 w3mhelp-w3m_en.html \
  110. $RPM_BUILD_ROOT%{l_prefix}/share/w3m/w3mhelp.html
  111. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  112. %files -f files
  113. %clean
  114. rm -rf $RPM_BUILD_ROOT