w3m/w3m.spec

Thu, 04 Oct 2012 20:30:05 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 04 Oct 2012 20:30:05 +0200
changeset 715
c10fb90893b9
parent 419
0ae439deb6c2
permissions
-rw-r--r--

Correct out of date build configuration, porting to Solaris 11 network
link infrastructure and new libpcap logic. This additionally allows for
device drivers in subdirectories of /dev. Correct packaged nmap
personalities and signatures to work out of the box. Finally, hack
arpd logic to properly close sockets and quit on TERM by repeating
signaling in the run command script. Sadly, all this fails to correct
the run time behaviour of honeyd which fails to bind to the IP layer.

     1 ##
     2 ##  w3m.spec -- OpenPKG RPM Package Specification
     3 ##  Copyright (c) 2000-2011 OpenPKG Foundation e.V. <http://openpkg.net/>
     4 ##
     5 ##  Permission to use, copy, modify, and distribute this software for
     6 ##  any purpose with or without fee is hereby granted, provided that
     7 ##  the above copyright notice and this permission notice appear in all
     8 ##  copies.
     9 ##
    10 ##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    11 ##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    12 ##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    13 ##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    14 ##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    15 ##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    16 ##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    17 ##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    18 ##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    19 ##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    20 ##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    21 ##  SUCH DAMAGE.
    22 ##
    24 #   package information
    25 Name:         w3m
    26 Summary:      Interactive Full-Screen Client for HTTP/HTTPS/FTP Protocols
    27 URL:          http://w3m.sourceforge.net/
    28 Vendor:       Akinori Ito
    29 Packager:     OpenPKG Foundation e.V.
    30 Distribution: OpenPKG Community
    31 Class:        BASE
    32 Group:        Web
    33 License:      BSD
    34 Version:      0.5.3
    35 Release:      20120800
    37 #   list of sources
    38 Source0:      http://switch.dl.sourceforge.net/sourceforge/w3m/w3m-%{version}.tar.gz
    39 Patch0:       w3m.patch
    41 #   build information
    42 BuildPreReq:  OpenPKG, openpkg >= 20100101, make
    43 PreReq:       OpenPKG, openpkg >= 20100101
    44 BuildPreReq:  ncurses, openssl, zlib, gc >= 7.2
    45 PreReq:       ncurses, openssl, zlib, gc >= 7.2
    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.
    54 %track
    55     prog w3m = {
    56         version   = %{version}
    57         url       = http://sourceforge.net/projects/w3m/files/
    58         regex     = w3m-(__VER__)\.tar\.gz
    59     }
    61 %prep
    62     %setup -q
    63     %patch -p0
    64     %{l_shtool} subst \
    65         -e 's;file_handle;file_handle_loc;g' \
    66         istream.{c,h}
    68 %build
    69     CC="%{l_cc}" \
    70     CFLAGS="%{l_cflags -O}" \
    71     CPPFLAGS="%{l_cppflags}" \
    72     LDFLAGS="%{l_ldflags}" \
    73     ./configure \
    74         --prefix=%{l_prefix} \
    75         --mandir=%{l_prefix}/man \
    76         --libdir=%{l_prefix}/libexec/w3m \
    77         --sysconfdir=%{l_prefix}/etc \
    78         --with-termlib=ncurses \
    79         --with-editor=%{l_prefix}/bin/vim \
    80         --with-mailer=%{l_prefix}/bin/mutt \
    81         --with-browser=%{l_prefix}/bin/mozilla \
    82         --with-gc=%{l_prefix} \
    83         --with-ssl=%{l_prefix} \
    84         --enable-sslverify \
    85         --enable-w3mmailer \
    86         --disable-external-uri-loader \
    87         --without-migemo \
    88         --disable-gopher \
    89         --disable-ipv6 \
    90         --disable-nntp \
    91         --disable-dict \
    92         --disable-alarm \
    93         --disable-xface \
    94         --enable-history \
    95         --enable-keymap=w3m \
    96         --enable-menu \
    97         --enable-mouse \
    98         --enable-cookie \
    99         --enable-digest-auth \
   100         --enable-image=no \
   101         --enable-color \
   102         --disable-ansi-color \
   103         --disable-bgcolor \
   104         --disable-japanese \
   105         --disable-unicode \
   106         --disable-m17n \
   107         --disable-nls
   108     %{l_make} %{l_mflags}
   110 %install
   111     %{l_make} %{l_mflags} install install-helpfile \
   112         INSTALL="%{l_shtool} install -c" \
   113         DESTDIR=$RPM_BUILD_ROOT
   114     rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/ja
   115     rm -f $RPM_BUILD_ROOT%{l_prefix}/share/w3m/*.ja.pl
   116     rm -f $RPM_BUILD_ROOT%{l_prefix}/share/w3m/*_ja.html
   117     rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/xface2xpm
   118     rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/w3mimgdisplay
   119     %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/w3m
   120     echo "color 1" >$RPM_BUILD_ROOT%{l_prefix}/etc/w3m/config
   121     strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
   122     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
   123         %{l_files_std} \
   124         '%config %{l_prefix}/etc/w3m/*'
   126 %files -f files
   128 %clean

mercurial