]> git.pld-linux.org Git - packages/w3m.git/blob - w3m.spec
2a903a2596964000e67f3a474c527ecfb9c4c5a3
[packages/w3m.git] / w3m.spec
1 Summary:        Text based browser for the world wide web
2 Summary(de.UTF-8):      Text-Browser für das WWW
3 Summary(es.UTF-8):      w3m es un paginador, pero puede usarse también como un navegador WWW
4 Summary(fr.UTF-8):      Navigateur en mode texte pour le world wide web
5 Summary(pl.UTF-8):      Przeglądarka WWW pracująca w trybie tekstowym
6 Summary(pt_BR.UTF-8):   O w3m é um paginador, mas pode ser usado também como um navegador WWW
7 Summary(tr.UTF-8):      Metin ekranda WWW tarayıcı
8 Name:           w3m
9 Version:        0.5.3
10 Release:        5
11 Epoch:          1
12 License:        MIT-like
13 Group:          Applications/Networking
14 Source0:        http://downloads.sourceforge.net/w3m/%{name}-%{version}.tar.gz
15 # Source0-md5:  1b845a983a50b8dec0169ac48479eacc
16 Patch0:         %{name}-gzip_fallback.patch
17 Patch1:         %{name}-nolibs.patch
18 Patch2:         %{name}-0.5.3-parallel-make.patch
19 Patch3:         %{name}-0.5.2-fix_gcc_error.patch
20 Patch4:         %{name}-gc.patch
21 Patch5:         format-security.patch
22 URL:            http://w3m.sourceforge.net/
23 BuildRequires:  autoconf
24 BuildRequires:  automake
25 BuildRequires:  gc-devel
26 BuildRequires:  gettext-tools
27 BuildRequires:  gpm-devel
28 BuildRequires:  gtk+2-devel >= 1:2.0
29 BuildRequires:  imlib2-devel
30 BuildRequires:  ncurses-devel >= 5.0
31 BuildRequires:  openssl-devel >= 0.9.7d
32 BuildRequires:  pkgconfig
33 BuildRequires:  sed >= 4.0
34 Provides:       webclient
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 This a terminal based WWW browser. While it does not make any attempt
39 at displaying graphics, it has good support for HTML text formatting,
40 forms, and tables.
41
42 %description -l de.UTF-8
43 Dies ist ein WWW-Browser auf Terminal-Basis. Während kein Versuch
44 unternommen wird, Grafiken darzustellen, so bietet er doch guten
45 Support für HTML-Textformatierung, Formulare und Tabellen.
46
47 %description -l es.UTF-8
48 w3m es un paginador similar a las órdenes more y less. Este paquete
49 también puede utilizarse como un visualizador de páginas WWW en modo
50 texto.
51
52 %description -l fr.UTF-8
53 Navigateur WWW en mode texte. Bien qu'il n'affiche aucun graphique, il
54 sait bien gérer le formatage HTML du texte, les formulaires et les
55 tableaux.
56
57 %description -l pl.UTF-8
58 Przeglądarka WWW działającą w trybie tekstowym. Dobrze formatuje tekst
59 w HTML, ale nie pozwala na wyświetlanie grafiki.
60
61 %description -l pt_BR.UTF-8
62 O w3m é um paginador similar aos comandos more e less. Este pacote
63 pode ser ainda utilizado como um visualizador de páginas WWW em modo
64 texto.
65
66 %description -l tr.UTF-8
67 Metin ekranda çalışan bir WWW tarayıcıdır. Şekil gösteremese de,
68 formlar ve tablolar için desteği vardır.
69
70 %package imgdisplay
71 Summary:        Image display support for w3m
72 Summary(pl.UTF-8):      Wyświetlanie obrazków dla w3m
73 Group:          Applications/Networking
74 Requires:       %{name} = %{epoch}:%{version}-%{release}
75
76 %description imgdisplay
77 Install this package if you want to display images in w3m run on xterm
78 or Linux framebuffer.
79
80 %description imgdisplay -l pl.UTF-8
81 Ten pakiet pozwala przeglądarce w3m wyświetlać obrazki w xtermie lub
82 na linuksowym framebufferze.
83
84 %prep
85 %setup -q
86 %patch0 -p1
87 %patch1 -p1
88 %patch2 -p1
89 %patch3 -p1
90 %patch4 -p1
91 %patch5 -p1
92
93 %{__sed} '/^AC_PROG_CXX$/d' -i configure.ac
94
95 %build
96 cp -f /usr/share/automake/config.sub .
97 %{__gettextize}
98 %{__aclocal}
99 %{__autoconf}
100 %configure \
101         --enable-gopher \
102         --enable-image="x11,fb,fb+s" \
103         --enable-keymap=lynx \
104         --with-editor=/bin/vi \
105         --with-imagelib="gdk-pixbuf" \
106         --with-mailer=/bin/mail \
107         --with-browser=%{_bindir}/mozilla \
108         --with-termlib=ncurses
109
110 %{__make}
111
112 %install
113 rm -rf $RPM_BUILD_ROOT
114 install -d $RPM_BUILD_ROOT%{_mandir}/man1
115
116 %{__make} install install-helpfile \
117         DESTDIR=$RPM_BUILD_ROOT
118
119 # symlink instead of duplicated file
120 ln -sf w3mhelp-lynx_en.html $RPM_BUILD_ROOT%{_datadir}/w3m/w3mhelp.html
121
122 %find_lang %{name}
123
124 %clean
125 rm -rf $RPM_BUILD_ROOT
126
127 %files -f %{name}.lang
128 %defattr(644,root,root,755)
129 %doc doc/*.html doc/{README,keymap,menu}.* NEWS
130 %attr(755,root,root) %{_bindir}/w3m
131 %attr(755,root,root) %{_bindir}/w3mman
132 %dir %{_libdir}/w3m
133 %attr(755,root,root) %{_libdir}/w3m/inflate
134 %attr(755,root,root) %{_libdir}/w3m/xface2xpm
135 %dir %{_libdir}/w3m/cgi-bin
136 %attr(755,root,root) %{_libdir}/w3m/cgi-bin/*.cgi
137 %attr(755,root,root) %{_libdir}/w3m/cgi-bin/w3mbookmark
138 %attr(755,root,root) %{_libdir}/w3m/cgi-bin/w3mhelperpanel
139 %dir %{_datadir}/w3m
140 %{_datadir}/w3m/w3mhelp.html
141 %{_datadir}/w3m/w3mhelp*en.*
142 %lang(ja) %{_datadir}/w3m/w3mhelp*ja.*
143 %{_datadir}/w3m/w3mhelp-funcname.pl
144 %{_mandir}/man1/w3m.1*
145 %{_mandir}/man1/w3mman.1*
146 %lang(ja) %{_mandir}/ja/man1/w3m.1*
147
148 %files imgdisplay
149 %defattr(644,root,root,755)
150 %attr(755,root,root) %{_libdir}/w3m/w3mimgdisplay
This page took 0.075165 seconds and 3 git commands to generate.