Summary: Text based browser for the world wide web
-Name: lynx
-Version: 2.8.2dev.15
-Release: 1d
-Copyright: GPL
-URL: http://lynx.browser.org
-Group: Applications/Networking
-Group(pl): Aplikacje/Sieæ
-Source: ftp://www.slcc.edu/pub/lynx/current/%{name}%{version}.tar.bz2
-Source1: %{name}.wmconfig
-Patch: %{name}-pld.patch
-Patch1: %{name}-overflow.patch
-Buildroot: /tmp/%{name}-%{version}-root
-Summary(de): Text-Browser für das WWW
+Summary(de): Text-Browser für das WWW
+Summary(es): Navegador web modo texto
Summary(fr): Navigateur en mode texte pour le world wide web
+Summary(ja): ¥Æ¥¥¹¥È¥Ù¡¼¥¹¤Î¥¦¥§¥Ö¥Ö¥é¥¦¥¶
Summary(pl): Przegl±darka WWW pracuj±ca w trybie tekstowym
+Summary(pt_BR): Navegador web modo texto
Summary(tr): Metin ekranda WWW tarayýcý
+Name: lynx
+Version: 2.8.5dev.16
+Release: 2
+License: GPL
+Group: Applications/Networking
+# Source0-md5: d5c50ea7334ee3256a82722be2f0d9a3
+Source0: http://lynx.isc.org/current/%{name}%{version}.tar.bz2
+Source1: %{name}.desktop
+Source2: %{name}.png
+# Source3-md5: b5e02f86a8ee7bce4d8b97e4b6491714
+Source3: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
+Patch0: %{name}-pld.patch
+Patch1: %{name}.cfg.patch
+Patch2: %{name}-po_DESTDIR.patch
+Patch3: %{name}-config.hin.patch
+Patch4: %{name}-autoconf.patch
+Patch5: %{name}-config.patch
+Patch6: %{name}-acfix.patch
+Patch7: %{name}-gzip_fallback.patch
+Patch8: %{name}-etc_dir.patch
+URL: http://lynx.browser.org/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gettext-devel
+BuildRequires: ncurses-devel
+BuildRequires: openssl-devel >= 0.9.7c
+#BuildRequires: socks5-devel
+BuildRequires: zlib-devel
+Provides: webclient
+Obsoletes: lynx-ssl
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define specflags_ia32 "-fomit-frame-pointer"
%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.
-%description -l pl
-Lynx jest przegl±dark± WWW dzia³aj±c± w trybie tekstowym. Dobrze
-formatuje tekst w HTML ale nie pozwala na wy¶wietlanie grafiki.
-
%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.
+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.
+
+%description -l es
+Este es un browser WWW para terminal en modo texto. Mientras no hace
+ningún intento de enseñar gráficos, posee un buen soporte para el
+formato de texto HTML, formularios y tablas.
%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.
+sait bien gérer le formatage HTML du texte, les formulaires et les
+tableaux.
+
+%description -l ja
+lynx ¤Ï¥Æ¥¥¹¥È¥Ù¡¼¥¹¤Î¥¦¥§¥Ö¥Ö¥é¥¦¥¶¤Ç¤¢¤ë¡£lynx ¤Ï²¿¤Î¥¤¥á¡¼¥¸¤â
+ɽ¼¨¤·¤Ê¤¤¤¬¥Õ¥ì¡¼¥à¡¢¥Æ¡¼¥Ö¥ë¤½¤·¤Æ¾¤Î HTML ¥¿¥°¤ò¥µ¥Ý¡¼¥È¤¹¤ë¡£
+¥°¥é¥Õ¥£¥«¥ë¤Ê¥Ö¥é¥¦¥¶¤ËÂФ¹¤ë lynx ¤Î¥¢¥É¥Ð¥ó¥Æ¡¼¥¸¤Ï¥¹¥Ô¡¼¥É¤Ç¤¢¤ë¡£
+lynx ¤Ï¥¦¥§¥Ö¥Ú¡¼¥¸¤òɽ¼¨¤¹¤ë¤Î¤Ë¤¹¤Ð¤ä¤¯Â¨ºÂ¤Ë³«»Ï¤·¤¿¤ê½ªÎ»¤·¤¿¤ê¤¹¤ë¡£
+
+¤³¤Î®¤¤¡¢¥°¥é¥Õ¥£¥«¥ë¤Ç¤Ê¤¤¥Ö¥é¥¦¥¶¤ò»î¤·¤¿¤±¤ì¤Ð¥¤¥ó¥¹¥È¡¼¥ë¤·¤Ê¤µ¤¤¡£
+(¤½¤ÎĹ½ê¤Î¤è¤µ¤¬¤ï¤«¤ë¤Ç¤¢¤í¤¦)
+
+%description -l pl
+Lynx jest przegl±dark± WWW dzia³aj±c± w trybie tekstowym. Dobrze
+formatuje tekst w HTML, ale nie pozwala na wy¶wietlanie grafiki.
+
+%description -l pt_BR
+Este é um browser WWW para terminal em modo texto. Enquanto ele não
+faz nenhuma tentativa para mostrar gráficos, possui um bom suporte
+para o formato de texto HTML, formulários e tabelas.
%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.
%prep
-%setup -q -n %{name}2-8-2
-%patch -p1
+%setup -q -n %{name}2-8-5
+%patch0 -p1
%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
%build
-CFLAGS="-w" LDFLAGS=-s ./configure --prefix=/usr --libdir=/etc \
- --with-screen=slang --enable-warnings \
- --enable-default-colors --enable-externs \
- --enable-internal-links --enable-nsl-fork \
- --enable-persistent-cookies --with-zlib
-make
+cp /usr/share/automake/config.sub .
+%{__autoconf}
+%configure \
+ --with-screen=ncurses \
+ --without-included-gettext \
+ --with-zlib \
+ --with-ssl \
+ --enable-justify-elts \
+ --enable-nested-tables \
+ --enable-read-eta \
+ --enable-kbd-layout \
+ --enable-addrlist-page \
+ --enable-cgi-links \
+ --enable-default-colors \
+ --enable-exec-links \
+ --enable-exec-scripts \
+ --enable-externs \
+ --enable-gzip-help \
+ --enable-internal-links \
+ --enable-ipv6 \
+ --enable-libjs \
+ --enable-nls \
+ --enable-nsl-fork \
+ --enable-persistent-cookies \
+ --enable-prettysrc \
+ --enable-source-cache \
+ --enable-warnings
+# --with-socks5=%{_prefix} \
+# --enable-color-style \
+
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \
+ $RPM_BUILD_ROOT%{_datadir}/lynx/help
-install -d $RPM_BUILD_ROOT/etc/X11/wmconfig
-
-make install prefix=$RPM_BUILD_ROOT/usr libdir=$RPM_BUILD_ROOT/etc
+%{__make} install install-help \
+ DESTDIR=$RPM_BUILD_ROOT
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/wmconfig/lynx
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
-strip $RPM_BUILD_ROOT/usr/bin/lynx
+bzip2 -dc %{SOURCE3} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
-bzip2 -9 $RPM_BUILD_ROOT/usr/man/man1/*
+%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc docs README samples
-%doc test lynx.hlp lynx_help
-
-%config %verify(not size mtime md5) /etc/lynx.cfg
-%config(missingok) /etc/X11/wmconfig/lynx
-
-%attr(711,root,root) /usr/bin/*
-%attr(644,root, man) /usr/man/man1/*
-
-%changelog
-* Sun Jan 10 1999 Artur Frysiak <wiget@usa.net>
-[2.8.2dev.12-1d]
-- added URL and Group(pl) tags
-
-* Mon Sep 01 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-[2.8-5d]
-- build against glibc-2.1,
-- changed Buildroot to /var/tmp/%%{name}-%%{version}-%%{release}-root,
-- changed permission of lynx to 711,
-- translation modified for pl.
-
-* Sun Aug 30 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-[2.8-5]
-- added -q %setup parameter,
-- changed Buildroot to /tmp/%%{name}-%%{version}-root,
-- URL in HELPFILE in /etc/lynx.cfh changed to localhost,
-- removed INSTALLATION from %doc,
-- added %attr and %defattr macros in %files (allow build package from
- non-root account).
-
-* Fri May 08 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Mon May 04 1998 Cristian Gafton <gafton@redhat.com>
-- upgraded to 2.8rel3
-- fixed mailto: buffer overflow (used Alan's patch)
-
-* Fri Mar 20 1998 Cristian Gafton <gafton@redhat.com>
-- updated to 2.8
-- added buildroot
-
-* Tue Jan 13 1998 Erik Troan <ewt@redhat.com>
-- updated to 2.7.2
-- enabled lynxcgi
-
-* Thu Oct 23 1997 Donnie Barnes <djb@redhat.com>
-- updated from 2.6 to 2.7.1
-- moved /usr/lib/lynx.cfg to /etc/lynx.cfg
-- build with slang instead of ncurses
-- made default startup file be file:/usr/doc/HTML/index.html
+%doc CHANGES COPYHEADER PROBLEMS README samples test docs/README*
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lynx.cfg
+%attr(755,root,root) %{_bindir}/*
+%{_datadir}/lynx
+%{_desktopdir}/lynx.desktop
+%{_pixmapsdir}/*
+%{_mandir}/man1/*
+%lang(cs) %{_mandir}/cs/man1/*
+%lang(fi) %{_mandir}/fi/man1/*
+%lang(pl) %{_mandir}/pl/man1/*