From 9fbdc5f4441e0d6a0e7d5b92e3affb869f43458c Mon Sep 17 00:00:00 2001 From: Ondrej Vasik Date: Nov 22 2007 15:19:31 +0000 Subject: fix of w3m params while converting to txt --- diff --git a/docbook-utils-w3mtxtconvert.patch b/docbook-utils-w3mtxtconvert.patch new file mode 100644 index 0000000..249af8e --- /dev/null +++ b/docbook-utils-w3mtxtconvert.patch @@ -0,0 +1,12 @@ +diff -urNp original/txt new/txt +--- original/backends/txt 2007-11-05 18:44:52.000000000 +0100 ++++ new/backends/txt 2007-11-22 15:21:36.000000000 +0100 +@@ -13,7 +13,7 @@ then + elif [ -x /usr/bin/w3m ] + then + CONVERT=/usr/bin/w3m +- ARGS="-dump" ++ ARGS="-T text/html -dump" + else + echo >&2 "No way to convert HTML to text found." + exit 1 diff --git a/docbook-utils.spec b/docbook-utils.spec index 17f9d6a..17eb5af 100644 --- a/docbook-utils.spec +++ b/docbook-utils.spec @@ -3,10 +3,10 @@ Version: 0.6.14 Release: 10%{?dist} Group: Applications/Text -Summary: Shell scripts for managing DocBook documents. +Summary: Shell scripts for managing DocBook documents URL: ftp://sources.redhat.com/pub/docbook-tools/new-trials/ -License: GPL +License: GPL+ Requires: docbook-style-dsssl >= 1.72 Requires: docbook-dtds @@ -14,7 +14,7 @@ Requires: perl-SGMLSpm >= 1.03ii Requires: which Requires: text-www-browser -BuildRoot: %{_tmppath}/%{name}-%{version} +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: perl-SGMLSpm, openjade, docbook-style-dsssl BuildArch: noarch @@ -28,6 +28,7 @@ Provides: stylesheets Patch0: docbook-utils-spaces.patch Patch1: docbook-utils-funcsynopsis.patch Patch2: docbook-utils-2ndspaces.patch +Patch3: docbook-utils-w3mtxtconvert.patch %Description This package contains scripts are for easy conversion from DocBook @@ -41,7 +42,7 @@ Requires: tetex-dvips Group: Applications/Text Obsoletes: stylesheets-db2pdf Provides: stylesheets-db2pdf -Summary: A script for converting DocBook documents to PDF format. +Summary: A script for converting DocBook documents to PDF format URL: ftp://sources.redhat.com/pub/docbook-tools/new-trials/ %description pdf @@ -53,6 +54,7 @@ PDF format. %patch0 -p1 -b .spaces %patch1 -p1 -b .0 %patch2 -p1 -b .2ndspaces +%patch3 -p1 -b .w3mtxtconvert %build ./configure --prefix=%{_prefix} --mandir=%{_mandir} @@ -120,6 +122,9 @@ rm -rf $DESTDIR %{_mandir}/*/docbook2ps.* %changelog +* Thu Nov 22 2007 Ondrej Vasik 0.6.14-11 +- fix of w3m params while converting to txt + * Fri Oct 12 2007 Ondrej Vasik 0.6.14-10 - generalized text browser requirement(#174566)