Summary: Text based browser for the world wide web
-Summary(de): Text-Browser für das WWW
+Summary(de): Text-Browser für das WWW
+Summary(es): w3m es un paginador, pero puede usarse también como un navegador WWW
Summary(fr): Navigateur en mode texte pour le world wide web
Summary(pl): Przegl±darka WWW pracuj±ca w trybie tekstowym
+Summary(pt_BR): O w3m é um paginador, mas pode ser usado também como um navegador WWW
Summary(tr): Metin ekranda WWW tarayýcý
Name: w3m
-Version: 0.1.6
-Epoch: 1
+Version: 0.5.1
Release: 1
-License: GPL
+Epoch: 1
+License: MIT-like
Group: Applications/Networking
-Group(pl): Aplikacje/Sieciowe
-Group(pl): Aplikacje/Sieciowe
-Source0: ftp://ei5nazha.yz.yamagata-u.ac.jp/w3m/%{name}-%{version}.tar.gz
-Patch0: w3m-config.patch
-Patch1: w3m-perl.patch
-URL: http://ei5nazha.yz.yamagata-u.ac.jp/~aito/w3m/eng/
+Source0: http://dl.sourceforge.net/w3m/%{name}-%{version}.tar.gz
+# Source0-md5: 0678b72e07e69c41709d71ef0fe5da13
+Patch0: %{name}-gzip_fallback.patch
+Patch1: %{name}-nolibs.patch
+URL: http://w3m.sourceforge.net/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gc-devel
+BuildRequires: gdk-pixbuf-devel >= 0.16.0
+BuildRequires: gettext-devel
+BuildRequires: gpm-devel
BuildRequires: ncurses-devel >= 5.0
-BuildRequires: openssl-devel >= 0.9.4-2
+BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: pkgconfig
Provides: webclient
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-This a terminal based WWW browser. While it does not make any attempt at
-displaying graphics, it has good support for HTML text formatting, forms,
-and tables.
+This a terminal based WWW browser. While it does not make any attempt
+at displaying graphics, it has good support for HTML text formatting,
+forms, and tables.
%description -l de
Dies ist ein WWW-Browser auf Terminal-Basis. Während kein Versuch
-unternommen wird, Grafiken darzustellen, so bietet er doch guten Support
-für HTML-Textformatierung, Formulare und Tabellen.
+unternommen wird, Grafiken darzustellen, so bietet er doch guten
+Support für HTML-Textformatierung, Formulare und Tabellen.
+
+%description -l es
+w3m es un paginador similar a las órdenes more y less. Este paquete
+también puede utilizarse como un visualizador de páginas WWW en modo
+texto.
%description -l fr
-Navigateur WWW en mode texte. Bien qu'il n'affiche aucun graphique, il sait
-bien gérer le formatage HTML du texte, les formulaires et les tableaux.
+Navigateur WWW en mode texte. Bien qu'il n'affiche aucun graphique, il
+sait bien gérer le formatage HTML du texte, les formulaires et les
+tableaux.
%description -l pl
-Przegl±darka WWW dzia³aj±c± w trybie tekstowym. Dobrze formatuje tekst w
-HTML, ale nie pozwala na wy¶wietlanie grafiki.
+Przegl±darka WWW dzia³aj±c± w trybie tekstowym. Dobrze formatuje tekst
+w HTML, ale nie pozwala na wy¶wietlanie grafiki.
+
+%description -l pt_BR
+O w3m é um paginador similar aos comandos more e less. Este pacote
+pode ser ainda utilizado como um visualizador de páginas WWW em modo
+texto.
%description -l tr
-Metin ekranda çalýþan bir WWW tarayýcýdýr. Þekil gösteremese de, formlar ve
-tablolar için desteði vardýr.
+Metin ekranda çalýþan bir WWW tarayýcýdýr. Þekil gösteremese de,
+formlar ve tablolar için desteði vardýr.
+
+%package imgdisplay
+Summary: Image display support for w3m
+Summary(pl): Wsparcie dla wy¶wietlania obrazków dla w3m
+Group: Applications/Networking
+Requires: %{name} = %{epoch}:%{version}
+
+%description imgdisplay
+Install this package if you want to display images in w3m run on xterm
+or Linux framebuffer.
+
+%description imgdisplay -l pl
+Zainstaluj ten pakiet je¶li chcesz aby w3m wy¶wietla³ obrazki w
+xtermie lub na linuksowym framebufferze.
%prep
-%setup -q -n %{name}
-%patch0 -p1
-%patch1 -p1
+%setup -q
+%patch0 -p1
+%patch1 -p1
%build
-find -name CVS -type d |xargs rm -rf
-./configure <<EOF;
-%{_bindir}
-%{_libdir}/w3m
-%{_datadir}/w3m
-2
-y
-5
-/bin/vi
-/bin/mail
-%{_bindir}/netscape
-gcc
-$RPM_OPT_FLAGS
--lncurses
--lnsl -lssl -lcrypto
-
-EOF
-
-LDFLAGS="-s"; export LDFLAGS
-
-make
+cp -f /usr/share/automake/config.sub .
+%{__gettextize}
+%{__aclocal}
+%{__autoconf}
+%configure \
+ --enable-gopher \
+ --enable-keymap=lynx \
+ --with-editor=/bin/vi \
+ --with-mailer=/bin/mail \
+ --with-browser=/usr/bin/mozilla \
+ --with-termlib=ncurses
+
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-
install -d $RPM_BUILD_ROOT%{_mandir}/man1
-make install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install install-helpfile \
+ DESTDIR=$RPM_BUILD_ROOT
-mv doc/w3m.1 $RPM_BUILD_ROOT%{_mandir}/man1/w3m.1
+# symlink instead of duplicated file
+ln -sf w3mhelp-lynx_en.html $RPM_BUILD_ROOT%{_datadir}/w3m/w3mhelp.html
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* doc/*
+%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc doc/*.gz
+%doc doc/*.html doc/{README,keymap,menu}.* NEWS
%attr(755,root,root) %{_bindir}/*
-%{_libdir}/w3m
-%{_datadir}/w3m
-%{_mandir}/man1/*
+%dir %{_libdir}/w3m
+%attr(755,root,root) %{_libdir}/w3m/inflate
+%attr(755,root,root) %{_libdir}/w3m/xface2xpm
+%dir %{_libdir}/w3m/cgi-bin
+%attr(755,root,root) %{_libdir}/w3m/cgi-bin/*.cgi
+%attr(755,root,root) %{_libdir}/w3m/cgi-bin/w3mbookmark
+%attr(755,root,root) %{_libdir}/w3m/cgi-bin/w3mhelperpanel
+%dir %{_datadir}/w3m
+%{_datadir}/w3m/w3mhelp.html
+%{_datadir}/w3m/w3mhelp*en.*
+%lang(ja) %{_datadir}/w3m/w3mhelp*ja.*
+%{_datadir}/w3m/w3mhelp-funcname.pl
+%{_mandir}/man1/*.1*
+%lang(ja) %{_mandir}/ja/man1/*.1*
+
+%files imgdisplay
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/w3m/w3mimgdisplay