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