w3m.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. ##
  2. ## w3m.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.com>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. %define V_real 0.2.2-inu-1.1
  25. %define V_here 0.2.2.1.1
  26. # package information
  27. Name: w3m
  28. Summary: Interactive Full-Screen Client for HTTP/HTTPS/FTP Protocols
  29. URL: http://w3m.sourceforge.net/
  30. Vendor: Akinori Ito
  31. Packager: The OpenPKG Project
  32. Distribution: OpenPKG [EXP]
  33. Group: Web
  34. License: BSD
  35. Version: %{V_here}
  36. Release: 20011121.0
  37. # list of sources
  38. Source0: http://prdownloads.sourceforge.net/w3m/w3m-%{V_real}.tar.gz
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 0.9-20011025.0, ncurses, openssl, make
  43. PreReq: OpenPKG, openpkg >= 0.9-20011025.0, ncurses
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. W3M is a text-based web browser as well as a pager like `more'
  48. or `less'. With w3m you can browse web pages through a terminal
  49. emulator window (xterm, rxvt or something like that). Moreover, w3m
  50. can be used as a text formatting tool which typesets HTML into plain
  51. text.
  52. %prep
  53. %setup -q -n w3m-%{V_real}
  54. %build
  55. PATH="%{l_prefix}/bin:$PATH"; export PATH
  56. ( echo "# Configuration at `hostname`"
  57. echo "def_bindir='%{l_prefix}/bin'"
  58. echo "def_libdir='%{l_prefix}/libexec/w3m'"
  59. echo "def_helpdir='%{l_prefix}/share/w3m'"
  60. echo "pref_lang=2"
  61. echo "lynx_key=n"
  62. echo "ftppass_hostnamegen=n"
  63. echo "show_params=n"
  64. echo "use_nntp=n"
  65. echo "ansi_color=n"
  66. echo "use_color=y"
  67. echo "use_menu=y"
  68. echo "use_mouse=y"
  69. echo "use_cookie=y"
  70. echo "use_ssl=y"
  71. echo "dmodel=5"
  72. echo "use_ssl_verify=n"
  73. echo "dcc='%{l_cc}'"
  74. echo "dcflags='%{l_cflags -O} -I%{l_prefix}/include -I%{l_prefix}/include/openssl'"
  75. echo "dldflags='-L%{l_prefix}/lib'"
  76. echo "dtermlib='-lncurses'"
  77. ) >config.param
  78. ( echo "%{l_prefix}/include"
  79. echo "%{l_prefix}/lib"
  80. ) | ./configure -yes
  81. %{l_make} %{l_mflags}
  82. %install
  83. rm -rf $RPM_BUILD_ROOT
  84. %{l_shtool} mkdir -f -p -m 755 \
  85. $RPM_BUILD_ROOT%{l_prefix}/bin \
  86. $RPM_BUILD_ROOT%{l_prefix}/share/w3m \
  87. $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m
  88. %{l_shtool} install -c -s -m 755 w3m $RPM_BUILD_ROOT%{l_prefix}/bin/
  89. %{l_shtool} install -c -s -m 755 \
  90. w3mbookmark w3mhelperpanel \
  91. $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/
  92. %{l_shtool} install -c -m 755 \
  93. scripts/dirlist.cgi $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/
  94. %{l_shtool} install -c -m 644 w3mhelp-w3m_en.html \
  95. $RPM_BUILD_ROOT%{l_prefix}/share/w3m/w3mhelp.html
  96. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  97. %files -f files
  98. %clean
  99. rm -rf $RPM_BUILD_ROOT