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.4.1
+Version: 0.5.1
Release: 1
Epoch: 1
License: MIT-like
Group: Applications/Networking
Source0: http://dl.sourceforge.net/w3m/%{name}-%{version}.tar.gz
-# Source0-md5: b496ec119dc9734059035e70988dd470
-Patch0: %{name}-dontresetiso2.patch
-Patch1: %{name}-gzip_fallback.patch
-Patch2: %{name}-nolibs.patch
+# 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.7
+BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: pkgconfig
Provides: webclient
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%setup -q
%patch0 -p1
%patch1 -p1
-%patch2 -p1
%build
-use_ipv6=y; export use_ipv6
-./configure <<EOF
-%{_bindir}
-%{_libdir}/w3m
-%{_libdir}/w3m/cgi-bin
-%{_datadir}/w3m
-%{_mandir}
-%{_sysconfdir}/w3m
-2
-y
-5
-y
-y
-y
-y
-y
-n
-y
-n
-y
-y
-y
-y
-y
-y
-y
-/bin/vi
-/usr/bin/mozilla
-%{__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
# 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}/*