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