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