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