]>
Commit | Line | Data |
---|---|---|
c167b1bd JK |
1 | # Conditional build: |
2 | %bcond_without image # build without image support | |
3 | ||
28077df7 | 4 | Summary: Text based browser for the world wide web |
2bec921b ER |
5 | Summary(de.UTF-8): Text-Browser für das WWW |
6 | Summary(es.UTF-8): w3m es un paginador, pero puede usarse también como un navegador WWW | |
7 | Summary(fr.UTF-8): Navigateur en mode texte pour le world wide web | |
8 | Summary(pl.UTF-8): Przeglądarka WWW pracująca w trybie tekstowym | |
9 | Summary(pt_BR.UTF-8): O w3m é um paginador, mas pode ser usado também como um navegador WWW | |
10 | Summary(tr.UTF-8): Metin ekranda WWW tarayıcı | |
28077df7 | 11 | Name: w3m |
7eaa48a4 | 12 | Version: 0.5.3 |
6d3ee95c | 13 | Release: 10 |
efb95c30 | 14 | Epoch: 1 |
a73ac8b2 | 15 | License: MIT-like |
949ed39e | 16 | Group: Applications/Networking |
8b3799ae | 17 | Source0: http://downloads.sourceforge.net/w3m/%{name}-%{version}.tar.gz |
7eaa48a4 | 18 | # Source0-md5: 1b845a983a50b8dec0169ac48479eacc |
94bcf5c8 JB |
19 | Patch0: %{name}-gzip_fallback.patch |
20 | Patch1: %{name}-nolibs.patch | |
7f31dad6 JB |
21 | Patch2: %{name}-0.5.3-parallel-make.patch |
22 | Patch3: %{name}-0.5.2-fix_gcc_error.patch | |
23 | Patch4: %{name}-gc.patch | |
67d0d95a | 24 | Patch5: format-security.patch |
54e00e3a | 25 | Patch6: ac-gettext.patch |
0f5b2e09 | 26 | Patch7: openssl.patch |
8ebe57a0 | 27 | Patch8: %{name}-configure.patch |
ebc32427 | 28 | Patch9: %{name}-x11.patch |
a73ac8b2 | 29 | URL: http://w3m.sourceforge.net/ |
b4c6dfdc JB |
30 | BuildRequires: autoconf |
31 | BuildRequires: automake | |
32 | BuildRequires: gc-devel | |
6bde12af | 33 | BuildRequires: gettext-tools |
ab142f35 | 34 | BuildRequires: gpm-devel |
c167b1bd | 35 | %if %{with image} |
b22ab8dc | 36 | BuildRequires: imlib2-devel >= 1.0.5 |
ebc32427 | 37 | BuildRequires: xorg-lib-libX11-devel |
c167b1bd | 38 | %endif |
2d807f13 | 39 | BuildRequires: ncurses-devel >= 5.0 |
790f7cde | 40 | BuildRequires: openssl-devel >= 0.9.7d |
0b5572e4 | 41 | BuildRequires: pkgconfig |
8b3799ae | 42 | BuildRequires: sed >= 4.0 |
b17055c8 | 43 | Provides: webclient |
96a811de | 44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28077df7 | 45 | |
46 | %description | |
1df3ce78 | 47 | This a terminal based WWW browser. While it does not make any attempt |
48 | at displaying graphics, it has good support for HTML text formatting, | |
49 | forms, and tables. | |
28077df7 | 50 | |
85fab644 JR |
51 | %description -l de.UTF-8 |
52 | Dies ist ein WWW-Browser auf Terminal-Basis. Während kein Versuch | |
1df3ce78 | 53 | unternommen wird, Grafiken darzustellen, so bietet er doch guten |
85fab644 | 54 | Support für HTML-Textformatierung, Formulare und Tabellen. |
28077df7 | 55 | |
85fab644 JR |
56 | %description -l es.UTF-8 |
57 | w3m es un paginador similar a las órdenes more y less. Este paquete | |
58 | también puede utilizarse como un visualizador de páginas WWW en modo | |
7c2a6418 | 59 | texto. |
60 | ||
85fab644 | 61 | %description -l fr.UTF-8 |
1df3ce78 | 62 | Navigateur WWW en mode texte. Bien qu'il n'affiche aucun graphique, il |
85fab644 | 63 | sait bien gérer le formatage HTML du texte, les formulaires et les |
1df3ce78 | 64 | tableaux. |
28077df7 | 65 | |
85fab644 JR |
66 | %description -l pl.UTF-8 |
67 | Przeglądarka WWW działającą w trybie tekstowym. Dobrze formatuje tekst | |
68 | w HTML, ale nie pozwala na wyświetlanie grafiki. | |
28077df7 | 69 | |
85fab644 JR |
70 | %description -l pt_BR.UTF-8 |
71 | O w3m é um paginador similar aos comandos more e less. Este pacote | |
72 | pode ser ainda utilizado como um visualizador de páginas WWW em modo | |
7c2a6418 | 73 | texto. |
74 | ||
85fab644 JR |
75 | %description -l tr.UTF-8 |
76 | Metin ekranda çalışan bir WWW tarayıcıdır. Şekil gösteremese de, | |
77 | formlar ve tablolar için desteği vardır. | |
28077df7 | 78 | |
c8537d6c | 79 | %package imgdisplay |
c8537d6c | 80 | Summary: Image display support for w3m |
7eff5d49 | 81 | Summary(pl.UTF-8): Wyświetlanie obrazków dla w3m |
c8537d6c | 82 | Group: Applications/Networking |
ac36fd71 | 83 | Requires: %{name} = %{epoch}:%{version}-%{release} |
b22ab8dc | 84 | Requires: imlib2 >= 1.0.5 |
c8537d6c | 85 | |
86 | %description imgdisplay | |
11e72bb5 JB |
87 | Install this package if you want to display images in w3m run on xterm |
88 | or Linux framebuffer. | |
c8537d6c | 89 | |
85fab644 | 90 | %description imgdisplay -l pl.UTF-8 |
7eff5d49 JB |
91 | Ten pakiet pozwala przeglądarce w3m wyświetlać obrazki w xtermie lub |
92 | na 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 | 110 | cp -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 | |
132 | rm -rf $RPM_BUILD_ROOT | |
28077df7 | 133 | install -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 |
139 | ln -sf w3mhelp-lynx_en.html $RPM_BUILD_ROOT%{_datadir}/w3m/w3mhelp.html | |
28077df7 | 140 | |
22403954 | 141 | %find_lang %{name} |
94bcf5c8 | 142 | |
28077df7 | 143 | %clean |
144 | rm -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 |