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