# # html2text - an advanced HTML-to-text converter # # Thu Jan 16 18:55:40 EDT 2003 - Durval Menezes # Wed Aug 28 13:17:10 CEST 2002 - Martin Bayer # %define version 1.3.2a %define name html2text Summary: An advanced HTML-to-text converter Name: %{name} Version: %{version} Release: 1dm1 Source: ftp://ftp.ibiblio.org/pub/linux/apps/www/converters/%{name}-%{version}.tar.gz Patch0: html2text-1.3.2a-prefix.patch URL: http://www.mbayer.de/html2text/ Copyright: GPL Group: Utilities/Text Packager: Durval Menezes (based on a specfile by Martin Bayer ) Provides: html2text BuildRoot: /var/tmp/%{name} %description html2text is a command line utility that converts HTML documents into plain text. Each HTML document is read from standard input or a (local or remote) URI, and formated into a stream of plain text characters that is written to standard output or into an output-file. The program preserves the original positions of table fields and accepts also syntactically incorrect input, attempting to interpret it "reasonably". The rendering is largely customisable through an RC file. %prep %setup %patch %build ./configure make %install rm -rf %{buildroot}; mkdir -p %{buildroot}; (cd %{buildroot}; mkdir -p ./usr/{bin,man{,/man1,/man5},doc}) make PREFIX=%{buildroot} BINDIR=/usr/bin MANDIR=/usr/man DOCDIR=/usr/share/doc install %files %attr(-,root,root) /usr/bin/html2text /usr/man/man1/html2text.1.gz /usr/man/man5/html2textrc.5.gz /usr/share/doc/html2text-%{version} %changelog * Sun Jan 21 2007 Durval Menezes 1.3.2a-1dm1 - upgraded to upstream version 1.3.2a * Thu Jan 16 2003 Durval Menezes 1.3.1-1dm1 - migrated files to standard directories instead of /usr/local #Eof html2text.spec