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.2
  35. Release: 20040110
  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;^\(#define JP_CHARSET\);/*\1*/;g' \
  57. fm.h \
  58. regex.c
  59. %build
  60. CC="%{l_cc}" \
  61. CFLAGS="%{l_cflags -O}" \
  62. CPPFLAGS="%{l_cppflags}" \
  63. LDFLAGS="%{l_ldflags}" \
  64. ./configure \
  65. --prefix=%{l_prefix} \
  66. --libdir=%{l_prefix}/libexec/w3m \
  67. --sysconfdir=%{l_prefix}/etc \
  68. --with-termlib=ncurses \
  69. --with-editor=%{l_prefix}/bin/vim \
  70. --with-mailer=%{l_prefix}/bin/mutt \
  71. --with-browser=%{l_prefix}/bin/mozilla \
  72. --with-gc=%{l_prefix} \
  73. --with-ssl=%{l_prefix} \
  74. --enable-sslverify \
  75. --enable-w3mmailer \
  76. --disable-external-uri-loader \
  77. --without-migemo \
  78. --disable-gopher \
  79. --disable-help-cgi \
  80. --disable-ipv6 \
  81. --disable-nntp \
  82. --disable-dict \
  83. --disable-alarm \
  84. --disable-xface \
  85. --enable-history \
  86. --enable-keymap=w3m \
  87. --enable-menu \
  88. --enable-mouse \
  89. --enable-cookie \
  90. --enable-digest-auth \
  91. --enable-image=no \
  92. --enable-color \
  93. --disable-ansi-color \
  94. --disable-bgcolor \
  95. --disable-japanese \
  96. --disable-kanjisymbols
  97. %{l_make} %{l_mflags -O}
  98. %install
  99. rm -rf $RPM_BUILD_ROOT
  100. %{l_make} %{l_mflags} install \
  101. INSTALL="%{l_shtool} install -c" \
  102. DESTDIR=$RPM_BUILD_ROOT
  103. rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/ja
  104. rm -f $RPM_BUILD_ROOT%{l_prefix}/share/w3m/w3mhelp-funcdesc.ja.pl
  105. rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/xface2xpm
  106. rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/w3mimgdisplay
  107. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/w3m
  108. echo "color 1" >$RPM_BUILD_ROOT%{l_prefix}/etc/w3m/config
  109. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  110. %{l_files_std} \
  111. '%config %{l_prefix}/etc/w3m/*'
  112. %files -f files
  113. %clean
  114. rm -rf $RPM_BUILD_ROOT