2 %bcond_without image # build without image support
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): w3m es un paginador, pero puede usarse también como un navegador WWW
7 Summary(fr.UTF-8): Navigateur en mode texte pour le world wide web
8 Summary(pl.UTF-8): Przeglądarka WWW pracująca w trybie tekstowym
9 Summary(pt_BR.UTF-8): O w3m é um paginador, mas pode ser usado também como um navegador WWW
10 Summary(tr.UTF-8): Metin ekranda WWW tarayıcı
16 Group: Applications/Networking
17 Source0: http://downloads.sourceforge.net/w3m/%{name}-%{version}.tar.gz
18 # Source0-md5: 1b845a983a50b8dec0169ac48479eacc
19 Patch0: %{name}-gzip_fallback.patch
20 Patch1: %{name}-nolibs.patch
21 Patch2: %{name}-0.5.3-parallel-make.patch
22 Patch3: %{name}-0.5.2-fix_gcc_error.patch
23 Patch4: %{name}-gc.patch
24 Patch5: format-security.patch
25 Patch6: ac-gettext.patch
27 Patch8: %{name}-configure.patch
28 URL: http://w3m.sourceforge.net/
29 BuildRequires: autoconf
30 BuildRequires: automake
31 BuildRequires: gc-devel
32 BuildRequires: gettext-tools
33 BuildRequires: gpm-devel
35 BuildRequires: gtk+2-devel >= 1:2.0
36 BuildRequires: imlib2-devel
38 BuildRequires: ncurses-devel >= 5.0
39 BuildRequires: openssl-devel >= 0.9.7d
40 BuildRequires: pkgconfig
41 BuildRequires: sed >= 4.0
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 This a terminal based WWW browser. While it does not make any attempt
47 at displaying graphics, it has good support for HTML text formatting,
50 %description -l de.UTF-8
51 Dies ist ein WWW-Browser auf Terminal-Basis. Während kein Versuch
52 unternommen wird, Grafiken darzustellen, so bietet er doch guten
53 Support für HTML-Textformatierung, Formulare und Tabellen.
55 %description -l es.UTF-8
56 w3m es un paginador similar a las órdenes more y less. Este paquete
57 también puede utilizarse como un visualizador de páginas WWW en modo
60 %description -l fr.UTF-8
61 Navigateur WWW en mode texte. Bien qu'il n'affiche aucun graphique, il
62 sait bien gérer le formatage HTML du texte, les formulaires et les
65 %description -l pl.UTF-8
66 Przeglądarka WWW działającą w trybie tekstowym. Dobrze formatuje tekst
67 w HTML, ale nie pozwala na wyświetlanie grafiki.
69 %description -l pt_BR.UTF-8
70 O w3m é um paginador similar aos comandos more e less. Este pacote
71 pode ser ainda utilizado como um visualizador de páginas WWW em modo
74 %description -l tr.UTF-8
75 Metin ekranda çalışan bir WWW tarayıcıdır. Şekil gösteremese de,
76 formlar ve tablolar için desteği vardır.
79 Summary: Image display support for w3m
80 Summary(pl.UTF-8): Wyświetlanie obrazków dla w3m
81 Group: Applications/Networking
82 Requires: %{name} = %{epoch}:%{version}-%{release}
84 %description imgdisplay
85 Install this package if you want to display images in w3m run on xterm
88 %description imgdisplay -l pl.UTF-8
89 Ten pakiet pozwala przeglądarce w3m wyświetlać obrazki w xtermie lub
90 na linuksowym framebufferze.
104 %{__sed} '/^AC_PROG_CXX$/d' -i configure.ac
107 cp -f /usr/share/automake/config.sub .
115 --enable-image="x11,fb,fb+s" \
116 --with-imagelib="gdk-pixbuf" \
120 --enable-keymap=lynx \
121 --with-editor=/bin/vi \
122 --with-mailer=/bin/mail \
123 --with-browser=%{_bindir}/mozilla \
124 --with-termlib=ncurses
129 rm -rf $RPM_BUILD_ROOT
130 install -d $RPM_BUILD_ROOT%{_mandir}/man1
132 %{__make} install install-helpfile \
133 DESTDIR=$RPM_BUILD_ROOT
135 # symlink instead of duplicated file
136 ln -sf w3mhelp-lynx_en.html $RPM_BUILD_ROOT%{_datadir}/w3m/w3mhelp.html
141 rm -rf $RPM_BUILD_ROOT
143 %files -f %{name}.lang
144 %defattr(644,root,root,755)
145 %doc doc/*.html doc/{README,keymap,menu}.* NEWS
146 %attr(755,root,root) %{_bindir}/w3m
147 %attr(755,root,root) %{_bindir}/w3mman
148 %dir %{_libexecdir}/w3m
149 %attr(755,root,root) %{_libexecdir}/w3m/inflate
150 %attr(755,root,root) %{_libexecdir}/w3m/xface2xpm
151 %dir %{_libexecdir}/w3m/cgi-bin
152 %attr(755,root,root) %{_libexecdir}/w3m/cgi-bin/*.cgi
153 %attr(755,root,root) %{_libexecdir}/w3m/cgi-bin/w3mbookmark
154 %attr(755,root,root) %{_libexecdir}/w3m/cgi-bin/w3mhelperpanel
156 %{_datadir}/w3m/w3mhelp.html
157 %{_datadir}/w3m/w3mhelp*en.*
158 %lang(ja) %{_datadir}/w3m/w3mhelp*ja.*
159 %{_datadir}/w3m/w3mhelp-funcname.pl
160 %{_mandir}/man1/w3m.1*
161 %{_mandir}/man1/w3mman.1*
162 %lang(ja) %{_mandir}/ja/man1/w3m.1*
166 %defattr(644,root,root,755)
167 %attr(755,root,root) %{_libexecdir}/w3m/w3mimgdisplay