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.3
-Release: 3
+Version: 0.5.1
+Release: 1
Epoch: 1
License: MIT-like
Group: Applications/Networking
-Source0: ftp://ftp.sourceforge.net/pub/sourceforge/w3m/%{name}-%{version}.tar.gz
-Patch0: %{name}-dontresetiso2.patch
-Patch1: %{name}-gzip_fallback.patch
+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: imlib-devel
BuildRequires: ncurses-devel >= 5.0
-BuildRequires: openssl-devel >= 0.9.6a
+BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: pkgconfig
Provides: webclient
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Summary: Image display support for w3m
Summary(pl): Wsparcie dla wy¶wietlania obrazków dla w3m
Group: Applications/Networking
-Requires: %{name} = %{version}
+Requires: %{name} = %{epoch}:%{version}
%description imgdisplay
-Install this package if you want to display images in xterm(!!!) w3m
-session.
+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(!!!).
+xtermie lub na linuksowym framebufferze.
%prep
%setup -q
%patch1 -p1
%build
-use_ipv6=y; export use_ipv6
-./configure <<EOF
-%{_bindir}
-%{_libdir}/w3m
-%{_datadir}/w3m
-%{_sysconfdir}/w3m
-2
-y
-5
-y
-y
-y
-y
-n
-y
-y
-y
-y
-y
-y
-/bin/vi
-%{_prefix}/X11R6/bin/netscape
-%{__cc}
-%{rpmcflags}
--lncurses
-%{rpmldflags}
-EOF
+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}
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_mandir}/man1
-%{__make} install install-helpfile 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
+%find_lang %{name}
+
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -f %{name}.lang
%defattr(644,root,root,755)
%doc doc/*.html doc/{README,keymap,menu}.* NEWS
%attr(755,root,root) %{_bindir}/*
%dir %{_libdir}/w3m
-%attr(755,root,root) %{_libdir}/w3m/*.cgi
%attr(755,root,root) %{_libdir}/w3m/inflate
-%attr(755,root,root) %{_libdir}/w3m/w3mbookmark
-%attr(755,root,root) %{_libdir}/w3m/w3mhelperpanel
+%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.*
%lang(ja) %{_datadir}/w3m/w3mhelp*ja.*
%{_datadir}/w3m/w3mhelp-funcname.pl
-%{_mandir}/man1/*
+%{_mandir}/man1/*.1*
+%lang(ja) %{_mandir}/ja/man1/*.1*
%files imgdisplay
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/w3m/w3mimgdisplay
-%attr(755,root,root) %{_libdir}/w3m/w3mimgsize