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