]> git.pld-linux.org Git - packages/w3m.git/blobdiff - w3m.spec
- Gettextize.
[packages/w3m.git] / w3m.spec
index fea6c3f581f3d41eb5ac167083d03f6cc355bd4e..cb5b74d1a87efccdcff5e5d92c79fb405daa3823 100644 (file)
--- a/w3m.spec
+++ b/w3m.spec
@@ -1,6 +1,3 @@
-#
-# TODO: remove imlib support or create two separate versions
-#       (with and without imlib)
 Summary:       Text based browser for the world wide web
 Summary(de):   Text-Browser für das WWW
 Summary(es):   w3m es un paginador, pero puede usarse también como un navegador WWW
@@ -9,18 +6,25 @@ Summary(pl):  Przegl
 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
+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
+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)
 
@@ -57,38 +61,37 @@ texto.
 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
+%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}
 
@@ -96,26 +99,36 @@ EOF
 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
 
-gzip -9nf doc/{README,keymap,menu}.* NEWS
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc doc/*.gz *.gz doc/*.html
+%doc doc/*.html doc/{README,keymap,menu}.* NEWS
 %attr(755,root,root) %{_bindir}/*
 %dir %{_libdir}/w3m
-%attr(755,root,root) %{_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.*
 %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
This page took 0.034814 seconds and 4 git commands to generate.