%define prefix /usr Summary: text based HTML pager and web browser Name: w3m Version: 0.1.11pre5 Release: 1 Source0: w3m-%{version}.tar.gz Group: console/text Copyright: custom URL: http://www.w3m.org BuildRoot: /var/tmp/w3m-%{version}.root %description w3m is a pager with WWW capability. It IS a pager, but it can be used as a text-mode WWW browser. This has been configured: To use the English language not to use Lynx keybindings not to be clever with anon ftp passwords no nntp support the "Little Model" - color, menu, no mouse, no cookie, no SSL %prep %setup %build CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --lang=en --model=little --yes make %install make DESTDIR="$RPM_BUILD_ROOT" SUID_ROOT="" install # This isn't clean, but the makefiles don't do doc installation mkdir -p $RPM_BUILD_ROOT/usr/man/man1/ sh install.sh -m 644 doc/w3m.1 $RPM_BUILD_ROOT/usr/man/man1/w3m.1 %files %attr(4711,root,root) %{prefix}/bin/w3m %defattr(-,root,root) %{prefix}/man/man1/w3m.1.gz %{prefix}/lib/w3m/w3mhelp-w3m_en.html %{prefix}/lib/w3m/w3mhelp-w3m_ja.html %{prefix}/lib/w3m/w3mhelp-lynx_en.html %{prefix}/lib/w3m/w3mhelp-lynx_ja.html %{prefix}/lib/w3m/w3mhelp.html %{prefix}/lib/w3m/w3mbookmark %{prefix}/lib/w3m/w3mhelperpanel %{prefix}/lib/w3m/dirlist.cgi %doc doc doc-jp %doc README ChangeLog %clean rm -rf $RPM_BUILD_ROOT %post