2 # TODO: merge patches (some change the same files in the same places)
4 Summary: Text based browser for the world wide web
5 Summary(de.UTF-8): Text-Browser für das WWW
6 Summary(es.UTF-8): Navegador web modo texto
7 Summary(fr.UTF-8): Navigateur en mode texte pour le world wide web
8 Summary(ja.UTF-8): テキストベースのウェブブラウザ
9 Summary(pl.UTF-8): Przeglądarka WWW pracująca w trybie tekstowym
10 Summary(pt_BR.UTF-8): Navegador web modo texto
11 Summary(tr.UTF-8): Metin ekranda WWW tarayıcı
16 Group: Applications/Networking
17 Source0: http://lynx.isc.org/current/%{name}%{version}.tar.bz2
18 # Source0-md5: 493af4c77ef6761e3f0157cd1be033a0
19 Source1: %{name}.desktop
21 Source3: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
22 # Source3-md5: b5e02f86a8ee7bce4d8b97e4b6491714
23 Patch0: %{name}-pld.patch
24 Patch1: %{name}.cfg.patch
25 Patch2: %{name}-po_DESTDIR.patch
26 Patch3: %{name}-config.hin.patch
27 Patch4: %{name}-autoconf.patch
28 Patch5: %{name}-config.patch
29 Patch6: %{name}-acfix.patch
30 Patch7: %{name}-gzip_fallback.patch
31 Patch8: %{name}-etc_dir.patch
32 URL: http://lynx.browser.org/
33 BuildRequires: autoconf
34 BuildRequires: automake
35 BuildRequires: bzip2-devel
36 BuildRequires: gettext-devel
37 BuildRequires: ncurses-devel
38 BuildRequires: openssl-devel >= 0.9.7d
39 #BuildRequires: socks5-devel
40 BuildRequires: zlib-devel
41 Requires(triggerpostun): sed >= 4.0
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 %define specflags_ia32 -fomit-frame-pointer
49 This a terminal based WWW browser. While it does not make any attempt
50 at displaying graphics, it has good support for HTML text formatting,
53 %description -l de.UTF-8
54 Dies ist ein WWW-Browser auf Terminal-Basis. Während kein Versuch
55 unternommen wird, Grafiken darzustellen, so bietet er doch guten
56 Support für HTML-Textformatierung, Formulare und Tabellen.
58 %description -l es.UTF-8
59 Este es un browser WWW para terminal en modo texto. Mientras no hace
60 ningún intento de enseñar gráficos, posee un buen soporte para el
61 formato de texto HTML, formularios y tablas.
63 %description -l fr.UTF-8
64 Navigateur WWW en mode texte. Bien qu'il n'affiche aucun graphique, il
65 sait bien gérer le formatage HTML du texte, les formulaires et les
68 %description -l ja.UTF-8
69 lynx はテキストベースのウェブブラウザである。lynx は何のイメージも
70 表示しないがフレーム、テーブルそして他の HTML タグをサポートする。
71 グラフィカルなブラウザに対する lynx のアドバンテージはスピードである。
72 lynx はウェブページを表示するのにすばやく即座に開始したり終了したりする。
74 この速い、グラフィカルでないブラウザを試したければインストールしなさい。
77 %description -l pl.UTF-8
78 Lynx jest przeglądarką WWW działającą w trybie tekstowym. Dobrze
79 formatuje tekst w HTML, ale nie pozwala na wyświetlanie grafiki.
81 %description -l pt_BR.UTF-8
82 Este é um browser WWW para terminal em modo texto. Enquanto ele não
83 faz nenhuma tentativa para mostrar gráficos, possui um bom suporte
84 para o formato de texto HTML, formulários e tabelas.
86 %description -l tr.UTF-8
87 Metin ekranda çalışan bir WWW tarayıcıdır. Şekil gösteremese de,
88 formlar ve tablolar için desteği vardır.
91 %setup -q -n %{name}2-8-7
103 cp /usr/share/automake/config.sub .
106 --with-screen=ncursesw \
107 --without-included-gettext \
111 --enable-justify-elts \
112 --enable-nested-tables \
114 --enable-kbd-layout \
115 --enable-addrlist-page \
117 --enable-default-colors \
118 --enable-file-upload \
119 --enable-exec-links \
120 --enable-exec-scripts \
123 --enable-internal-links \
127 --enable-persistent-cookies \
129 --enable-source-cache \
131 # --with-socks5=%{_prefix} \
132 # --enable-color-style \
137 rm -rf $RPM_BUILD_ROOT
138 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \
139 $RPM_BUILD_ROOT%{_datadir}/lynx/help
141 %{__make} install install-help \
142 DESTDIR=$RPM_BUILD_ROOT
144 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
145 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
147 bzip2 -dc %{SOURCE3} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
152 rm -rf $RPM_BUILD_ROOT
154 %triggerpostun -- %{name} < 2.8.6rel.5-4
156 %{__sed} -i -e '/^#TRUSTED_LYNXCGI:/s,^#,,' %{_sysconfdir}/lynx.cfg
158 %files -f %{name}.lang
159 %defattr(644,root,root,755)
160 %doc CHANGES COPYHEADER PROBLEMS README samples test docs/README*
161 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lynx.cfg
162 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lynx.lss
163 %attr(755,root,root) %{_bindir}/*
165 %{_desktopdir}/lynx.desktop
168 %lang(cs) %{_mandir}/cs/man1/*
169 %lang(fi) %{_mandir}/fi/man1/*
170 %lang(pl) %{_mandir}/pl/man1/*