]> git.pld-linux.org Git - packages/w3m.git/blobdiff - w3m.spec
- Gettextize.
[packages/w3m.git] / w3m.spec
index 8461b0cab0633dccf0f40ba1a68a80019c03e039..cb5b74d1a87efccdcff5e5d92c79fb405daa3823 100644 (file)
--- a/w3m.spec
+++ b/w3m.spec
@@ -1,24 +1,30 @@
 Summary:       Text based browser for the world wide web
-Summary(de):   Text-Browser für das WWW 
+Summary(de):   Text-Browser für das WWW
+Summary(es):   w3m es un paginador, pero puede usarse también como un navegador WWW
 Summary(fr):   Navigateur en mode texte pour le world wide web
 Summary(pl):   Przegl±darka WWW pracuj±ca w trybie tekstowym
+Summary(pt_BR):        O w3m é um paginador, mas pode ser usado também como um navegador WWW
 Summary(tr):   Metin ekranda WWW tarayýcý
 Name:          w3m
-Version:       0.2.1
-Release:       2
+Version:       0.5.1
+Release:       1
 Epoch:         1
-License:       GPL
+License:       MIT-like
 Group:         Applications/Networking
-Group(de):     Applikationen/Netzwerkwesen
-Group(pl):     Aplikacje/Sieciowe
-Source0:       ftp://ei5nazha.yz.yamagata-u.ac.jp/w3m/%{name}-%{version}.tar.gz
-Patch0:                %{name}-config.patch
-Patch1:                %{name}-dontresetiso2.patch
-Patch2:                %{name}-ssl-segv.patch
-URL:           http://ei5nazha.yz.yamagata-u.ac.jp/~aito/w3m/eng/
-BuildRequires: ncurses-devel >= 5.0
-BuildRequires: openssl-devel >= 0.9.6a
+Source0:       http://dl.sourceforge.net/w3m/%{name}-%{version}.tar.gz
+# Source0-md5: 0678b72e07e69c41709d71ef0fe5da13
+Patch0:                %{name}-gzip_fallback.patch
+Patch1:                %{name}-nolibs.patch
+URL:           http://w3m.sourceforge.net/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gc-devel
+BuildRequires: gdk-pixbuf-devel >= 0.16.0
+BuildRequires: gettext-devel
 BuildRequires: gpm-devel
+BuildRequires: ncurses-devel >= 5.0
+BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: pkgconfig
 Provides:      webclient
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -32,6 +38,11 @@ Dies ist ein WWW-Browser auf Terminal-Basis. W
 unternommen wird, Grafiken darzustellen, so bietet er doch guten
 Support für HTML-Textformatierung, Formulare und Tabellen.
 
+%description -l es
+w3m es un paginador similar a las órdenes more y less. Este paquete
+también puede utilizarse como un visualizador de páginas WWW en modo
+texto.
+
 %description -l fr
 Navigateur WWW en mode texte. Bien qu'il n'affiche aucun graphique, il
 sait bien gérer le formatage HTML du texte, les formulaires et les
@@ -41,64 +52,83 @@ tableaux.
 Przegl±darka WWW dzia³aj±c± w trybie tekstowym. Dobrze formatuje tekst
 w HTML, ale nie pozwala na wy¶wietlanie grafiki.
 
+%description -l pt_BR
+O w3m é um paginador similar aos comandos more e less. Este pacote
+pode ser ainda utilizado como um visualizador de páginas WWW em modo
+texto.
+
 %description -l tr
 Metin ekranda çalýþan bir WWW tarayýcýdýr. Þekil gösteremese de,
 formlar ve tablolar için desteði vardýr.
 
+%package imgdisplay
+Summary:       Image display support for w3m
+Summary(pl):   Wsparcie dla wy¶wietlania obrazków dla w3m
+Group:         Applications/Networking
+Requires:      %{name} = %{epoch}:%{version}
+
+%description imgdisplay
+Install this package if you want to display images in w3m run on xterm
+or Linux framebuffer.
+
+%description imgdisplay -l pl
+Zainstaluj ten pakiet je¶li chcesz aby w3m wy¶wietla³ obrazki w
+xtermie lub na linuksowym framebufferze.
+
 %prep
 %setup -q
-%patch0 -p1 
+%patch0 -p1
 %patch1 -p1
-%patch2 -p1
 
 %build
-find -name CVS -type d |xargs rm -rf 
-./configure <<EOF;
-%{_bindir}
-%{_libdir}/w3m
-%{_datadir}/w3m
-2
-y
-y
-y
-n
-y
-5
-y
-/bin/vi
-/bin/mail
-%/usr/X11R6/bin/netscape
-%{__cc}
-%{rpmcflags}
--lncurses
--lnsl -lssl -lcrypto
-
-EOF
-
-%{__make} 
+cp -f /usr/share/automake/config.sub .
+%{__gettextize}
+%{__aclocal}
+%{__autoconf}
+%configure \
+       --enable-gopher \
+       --enable-keymap=lynx \
+       --with-editor=/bin/vi \
+       --with-mailer=/bin/mail \
+       --with-browser=/usr/bin/mozilla \
+       --with-termlib=ncurses
+
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_mandir}/man1
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install install-helpfile \
+       DESTDIR=$RPM_BUILD_ROOT
 
-mv -f doc/w3m.1 $RPM_BUILD_ROOT%{_mandir}/man1/w3m.1
 # symlink instead of duplicated file
 ln -sf w3mhelp-lynx_en.html $RPM_BUILD_ROOT%{_datadir}/w3m/w3mhelp.html
 
-gzip -9nf doc/*
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc doc/*.gz
+%doc doc/*.html doc/{README,keymap,menu}.* NEWS
 %attr(755,root,root) %{_bindir}/*
-%{_libdir}/w3m
+%dir %{_libdir}/w3m
+%attr(755,root,root) %{_libdir}/w3m/inflate
+%attr(755,root,root) %{_libdir}/w3m/xface2xpm
+%dir %{_libdir}/w3m/cgi-bin
+%attr(755,root,root) %{_libdir}/w3m/cgi-bin/*.cgi
+%attr(755,root,root) %{_libdir}/w3m/cgi-bin/w3mbookmark
+%attr(755,root,root) %{_libdir}/w3m/cgi-bin/w3mhelperpanel
 %dir %{_datadir}/w3m
 %{_datadir}/w3m/w3mhelp.html
-%{_datadir}/w3m/w3mhelp*_en.html
-%lang(ja) %{_datadir}/w3m/w3mhelp*_ja.html
-%{_mandir}/man1/*
+%{_datadir}/w3m/w3mhelp*en.*
+%lang(ja) %{_datadir}/w3m/w3mhelp*ja.*
+%{_datadir}/w3m/w3mhelp-funcname.pl
+%{_mandir}/man1/*.1*
+%lang(ja) %{_mandir}/ja/man1/*.1*
+
+%files imgdisplay
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/w3m/w3mimgdisplay
This page took 0.049609 seconds and 4 git commands to generate.