| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- ##
- ## w3m.spec -- OpenPKG RPM Specification
- ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
- ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
- ## Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.com/>
- ##
- ## Permission to use, copy, modify, and distribute this software for
- ## any purpose with or without fee is hereby granted, provided that
- ## the above copyright notice and this permission notice appear in all
- ## copies.
- ##
- ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
- ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- ## SUCH DAMAGE.
- ##
- # package information
- Name: w3m
- Summary: Interactive Full-Screen Client for HTTP/HTTPS/FTP Protocols
- URL: http://w3m.sourceforge.net/
- Vendor: Akinori Ito
- Packager: The OpenPKG Project
- Distribution: OpenPKG [BASE]
- Group: Web
- License: BSD
- Version: 0.4.2
- Release: 20040110
- # list of sources
- Source0: http://osdn.dl.sourceforge.net/sourceforge/w3m/w3m-%{version}.tar.gz
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20020206, make
- PreReq: OpenPKG, openpkg >= 20020206
- BuildPreReq: ncurses, openssl, zlib, gc
- PreReq: ncurses, openssl, zlib, gc
- AutoReq: no
- AutoReqProv: no
- %description
- W3M is a text-based web browser as well as a pager like `more'
- or `less'. With w3m you can browse web pages through a terminal
- emulator window (xterm, rxvt or something like that). Moreover, w3m
- can be used as a text formatting tool which typesets HTML into plain
- text.
- %prep
- %setup -q
- %{l_shtool} subst \
- -e 's;^\(#define JP_CHARSET\);/*\1*/;g' \
- fm.h \
- regex.c
- %build
- CC="%{l_cc}" \
- CFLAGS="%{l_cflags -O}" \
- CPPFLAGS="%{l_cppflags}" \
- LDFLAGS="%{l_ldflags}" \
- ./configure \
- --prefix=%{l_prefix} \
- --libdir=%{l_prefix}/libexec/w3m \
- --sysconfdir=%{l_prefix}/etc \
- --with-termlib=ncurses \
- --with-editor=%{l_prefix}/bin/vim \
- --with-mailer=%{l_prefix}/bin/mutt \
- --with-browser=%{l_prefix}/bin/mozilla \
- --with-gc=%{l_prefix} \
- --with-ssl=%{l_prefix} \
- --enable-sslverify \
- --enable-w3mmailer \
- --disable-external-uri-loader \
- --without-migemo \
- --disable-gopher \
- --disable-help-cgi \
- --disable-ipv6 \
- --disable-nntp \
- --disable-dict \
- --disable-alarm \
- --disable-xface \
- --enable-history \
- --enable-keymap=w3m \
- --enable-menu \
- --enable-mouse \
- --enable-cookie \
- --enable-digest-auth \
- --enable-image=no \
- --enable-color \
- --disable-ansi-color \
- --disable-bgcolor \
- --disable-japanese \
- --disable-kanjisymbols
- %{l_make} %{l_mflags -O}
- %install
- rm -rf $RPM_BUILD_ROOT
- %{l_make} %{l_mflags} install \
- INSTALL="%{l_shtool} install -c" \
- DESTDIR=$RPM_BUILD_ROOT
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/ja
- rm -f $RPM_BUILD_ROOT%{l_prefix}/share/w3m/w3mhelp-funcdesc.ja.pl
- rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/xface2xpm
- rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/w3mimgdisplay
- %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/w3m
- echo "color 1" >$RPM_BUILD_ROOT%{l_prefix}/etc/w3m/config
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
- %{l_files_std} \
- '%config %{l_prefix}/etc/w3m/*'
- %files -f files
- %clean
- rm -rf $RPM_BUILD_ROOT
|