w3m.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. ##
  2. ## w3m.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 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
  32. Class: BASE
  33. Group: Web
  34. License: BSD
  35. Version: 0.4.2
  36. Release: 20040203
  37. # list of sources
  38. Source0: http://osdn.dl.sourceforge.net/sourceforge/w3m/w3m-%{version}.tar.gz
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20040130, make
  43. PreReq: OpenPKG, openpkg >= 20040130
  44. BuildPreReq: ncurses, openssl, zlib, gc
  45. PreReq: ncurses, openssl, zlib, gc
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. W3M is a text-based web browser as well as a pager like `more'
  50. or `less'. With w3m you can browse web pages through a terminal
  51. emulator window (xterm, rxvt or something like that). Moreover, w3m
  52. can be used as a text formatting tool which typesets HTML into plain
  53. text.
  54. %track
  55. prog w3m = {
  56. version = 0.4.2
  57. url = http://prdownloads.sourceforge.net/w3m/
  58. regex = w3m-(__VER__)\.tar\.gz
  59. }
  60. %prep
  61. %setup -q
  62. %{l_shtool} subst \
  63. -e 's;^\(#define JP_CHARSET\);/*\1*/;g' \
  64. fm.h \
  65. regex.c
  66. %build
  67. CC="%{l_cc}" \
  68. CFLAGS="%{l_cflags -O}" \
  69. CPPFLAGS="%{l_cppflags}" \
  70. LDFLAGS="%{l_ldflags}" \
  71. ./configure \
  72. --prefix=%{l_prefix} \
  73. --libdir=%{l_prefix}/libexec/w3m \
  74. --sysconfdir=%{l_prefix}/etc \
  75. --with-termlib=ncurses \
  76. --with-editor=%{l_prefix}/bin/vim \
  77. --with-mailer=%{l_prefix}/bin/mutt \
  78. --with-browser=%{l_prefix}/bin/mozilla \
  79. --with-gc=%{l_prefix} \
  80. --with-ssl=%{l_prefix} \
  81. --enable-sslverify \
  82. --enable-w3mmailer \
  83. --disable-external-uri-loader \
  84. --without-migemo \
  85. --disable-gopher \
  86. --disable-ipv6 \
  87. --disable-nntp \
  88. --disable-dict \
  89. --disable-alarm \
  90. --disable-xface \
  91. --enable-history \
  92. --enable-keymap=w3m \
  93. --enable-menu \
  94. --enable-mouse \
  95. --enable-cookie \
  96. --enable-digest-auth \
  97. --enable-image=no \
  98. --enable-color \
  99. --disable-ansi-color \
  100. --disable-bgcolor \
  101. --disable-japanese \
  102. --disable-kanjisymbols
  103. %{l_make} %{l_mflags -O}
  104. %install
  105. rm -rf $RPM_BUILD_ROOT
  106. %{l_make} %{l_mflags} install install-helpfile \
  107. INSTALL="%{l_shtool} install -c" \
  108. DESTDIR=$RPM_BUILD_ROOT
  109. rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/ja
  110. rm -f $RPM_BUILD_ROOT%{l_prefix}/share/w3m/*.ja.pl
  111. rm -f $RPM_BUILD_ROOT%{l_prefix}/share/w3m/*_ja.html
  112. rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/xface2xpm
  113. rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/w3mimgdisplay
  114. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/w3m
  115. echo "color 1" >$RPM_BUILD_ROOT%{l_prefix}/etc/w3m/config
  116. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  117. %{l_files_std} \
  118. '%config %{l_prefix}/etc/w3m/*'
  119. %files -f files
  120. %clean
  121. rm -rf $RPM_BUILD_ROOT