w3m/w3m.spec

changeset 419
0ae439deb6c2
child 420
45a2e4f038b1
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/w3m/w3m.spec	Tue Jul 31 08:36:21 2012 +0200
     1.3 @@ -0,0 +1,126 @@
     1.4 +##
     1.5 +##  w3m.spec -- OpenPKG RPM Package Specification
     1.6 +##  Copyright (c) 2000-2011 OpenPKG Foundation e.V. <http://openpkg.net/>
     1.7 +##
     1.8 +##  Permission to use, copy, modify, and distribute this software for
     1.9 +##  any purpose with or without fee is hereby granted, provided that
    1.10 +##  the above copyright notice and this permission notice appear in all
    1.11 +##  copies.
    1.12 +##
    1.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    1.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    1.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    1.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    1.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    1.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    1.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    1.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    1.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    1.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    1.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.24 +##  SUCH DAMAGE.
    1.25 +##
    1.26 +
    1.27 +#   package information
    1.28 +Name:         w3m
    1.29 +Summary:      Interactive Full-Screen Client for HTTP/HTTPS/FTP Protocols
    1.30 +URL:          http://w3m.sourceforge.net/
    1.31 +Vendor:       Akinori Ito
    1.32 +Packager:     OpenPKG Foundation e.V.
    1.33 +Distribution: OpenPKG Community
    1.34 +Class:        BASE
    1.35 +Group:        Web
    1.36 +License:      BSD
    1.37 +Version:      0.5.3
    1.38 +Release:      20110115
    1.39 +
    1.40 +#   list of sources
    1.41 +Source0:      http://switch.dl.sourceforge.net/sourceforge/w3m/w3m-%{version}.tar.gz
    1.42 +Patch0:       w3m.patch
    1.43 +
    1.44 +#   build information
    1.45 +BuildPreReq:  OpenPKG, openpkg >= 20100101, make
    1.46 +PreReq:       OpenPKG, openpkg >= 20100101
    1.47 +BuildPreReq:  ncurses, openssl, zlib, gc >= 7.2
    1.48 +PreReq:       ncurses, openssl, zlib, gc >= 7.2
    1.49 +
    1.50 +%description
    1.51 +    W3M is a text-based web browser as well as a pager like `more'
    1.52 +    or `less'. With W3M you can browse web pages through a terminal
    1.53 +    emulator window (xterm, rxvt or something like that). Moreover, W3M
    1.54 +    can be used as a text formatting tool which typesets HTML into plain
    1.55 +    text.
    1.56 +
    1.57 +%track
    1.58 +    prog w3m = {
    1.59 +        version   = %{version}
    1.60 +        url       = http://sourceforge.net/projects/w3m/files/
    1.61 +        regex     = w3m-(__VER__)\.tar\.gz
    1.62 +    }
    1.63 +
    1.64 +%prep
    1.65 +    %setup -q
    1.66 +    %patch -p0
    1.67 +
    1.68 +%build
    1.69 +    CC="%{l_cc}" \
    1.70 +    CFLAGS="%{l_cflags -O}" \
    1.71 +    CPPFLAGS="%{l_cppflags}" \
    1.72 +    LDFLAGS="%{l_ldflags}" \
    1.73 +    ./configure \
    1.74 +        --prefix=%{l_prefix} \
    1.75 +        --mandir=%{l_prefix}/man \
    1.76 +        --libdir=%{l_prefix}/libexec/w3m \
    1.77 +        --sysconfdir=%{l_prefix}/etc \
    1.78 +        --with-termlib=ncurses \
    1.79 +        --with-editor=%{l_prefix}/bin/vim \
    1.80 +        --with-mailer=%{l_prefix}/bin/mutt \
    1.81 +        --with-browser=%{l_prefix}/bin/mozilla \
    1.82 +        --with-gc=%{l_prefix} \
    1.83 +        --with-ssl=%{l_prefix} \
    1.84 +        --enable-sslverify \
    1.85 +        --enable-w3mmailer \
    1.86 +        --disable-external-uri-loader \
    1.87 +        --without-migemo \
    1.88 +        --disable-gopher \
    1.89 +        --disable-ipv6 \
    1.90 +        --disable-nntp \
    1.91 +        --disable-dict \
    1.92 +        --disable-alarm \
    1.93 +        --disable-xface \
    1.94 +        --enable-history \
    1.95 +        --enable-keymap=w3m \
    1.96 +        --enable-menu \
    1.97 +        --enable-mouse \
    1.98 +        --enable-cookie \
    1.99 +        --enable-digest-auth \
   1.100 +        --enable-image=no \
   1.101 +        --enable-color \
   1.102 +        --disable-ansi-color \
   1.103 +        --disable-bgcolor \
   1.104 +        --disable-japanese \
   1.105 +        --disable-unicode \
   1.106 +        --disable-m17n \
   1.107 +        --disable-nls
   1.108 +    %{l_make} %{l_mflags}
   1.109 +
   1.110 +%install
   1.111 +    %{l_make} %{l_mflags} install install-helpfile \
   1.112 +        INSTALL="%{l_shtool} install -c" \
   1.113 +        DESTDIR=$RPM_BUILD_ROOT
   1.114 +    rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/ja
   1.115 +    rm -f $RPM_BUILD_ROOT%{l_prefix}/share/w3m/*.ja.pl
   1.116 +    rm -f $RPM_BUILD_ROOT%{l_prefix}/share/w3m/*_ja.html
   1.117 +    rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/xface2xpm
   1.118 +    rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/w3mimgdisplay
   1.119 +    %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/w3m
   1.120 +    echo "color 1" >$RPM_BUILD_ROOT%{l_prefix}/etc/w3m/config
   1.121 +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
   1.122 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
   1.123 +        %{l_files_std} \
   1.124 +        '%config %{l_prefix}/etc/w3m/*'
   1.125 +
   1.126 +%files -f files
   1.127 +
   1.128 +%clean
   1.129 +

mercurial