This commit is contained in:
parent
1e2bd24010
commit
e6293cf10b
32
xmlto-0.0.18-xsltopts.diff
Normal file
32
xmlto-0.0.18-xsltopts.diff
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
--- xmlto-0.0.18/xmlto.in.~1~ 2004-01-02 13:03:24.000000000 +0100
|
||||||
|
+++ xmlto-0.0.18/xmlto.in 2007-12-12 15:39:19.000000000 +0100
|
||||||
|
@@ -37,6 +37,7 @@
|
||||||
|
-o directory put output in the specified directory instead of
|
||||||
|
the current working directory
|
||||||
|
-p postprocopts pass option to postprocessor
|
||||||
|
+ --xsltopts use xsltproc command line options
|
||||||
|
--extensions turn on stylesheet extensions for this tool chain
|
||||||
|
--searchpath colon-separated list of fallback directories
|
||||||
|
--skip-validation
|
||||||
|
@@ -156,7 +157,7 @@
|
||||||
|
|
||||||
|
# Process any options
|
||||||
|
ARGS=$(${GETOPT} \
|
||||||
|
- --longoptions=help,version,extensions,searchpath:,skip-validation \
|
||||||
|
+ --longoptions=help,version,extensions,searchpath:,skip-validation,xsltopts: \
|
||||||
|
-n xmlto -- x:m:o:p:v "$@")
|
||||||
|
[ $? != 0 ] && { usage; exit 1; }
|
||||||
|
eval set -- "$ARGS"
|
||||||
|
@@ -222,6 +223,10 @@
|
||||||
|
SKIP_VALIDATION=1
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
+ --xsltopts)
|
||||||
|
+ XSLTOPTS="$XSLTOPTS $2"
|
||||||
|
+ shift 2
|
||||||
|
+ ;;
|
||||||
|
--)
|
||||||
|
shift
|
||||||
|
break
|
||||||
|
|
||||||
|
Diff finished. Wed Dec 12 15:39:29 2007
|
@ -12,3 +12,12 @@ problems within this tool chain, try another FO processor like "fop".
|
|||||||
2. Run "fop" on the .fo file:
|
2. Run "fop" on the .fo file:
|
||||||
|
|
||||||
fop file.fo
|
fop file.fo
|
||||||
|
|
||||||
|
|
||||||
|
Specifying HTML output encoding
|
||||||
|
===============================
|
||||||
|
|
||||||
|
Make use of the --xsltopts switch to specify the HTML output encoding:
|
||||||
|
|
||||||
|
xmlto --xsltopts '--stringparam chunker.output.encoding "ISO-8859-1"' \
|
||||||
|
html file.xml
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 12 16:21:14 CET 2007 - ke@suse.de
|
||||||
|
|
||||||
|
- Cleanup spec file.
|
||||||
|
- Apply xmlto-0.0.18-xsltopts.diff to provide a command line switch for
|
||||||
|
specifying the HTML output encoding; see # 197484 (thanks to Thomas
|
||||||
|
Schraitle).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 28 11:37:03 CEST 2006 - ke@suse.de
|
Mon Aug 28 11:37:03 CEST 2006 - ke@suse.de
|
||||||
|
|
||||||
|
23
xmlto.spec
23
xmlto.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package xmlto (Version 0.0.18)
|
# spec file for package xmlto (Version 0.0.18)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
# This file and all modifications and additions to the pristine
|
# This file and all modifications and additions to the pristine
|
||||||
# package are under the same license as the package itself.
|
# package are under the same license as the package itself.
|
||||||
#
|
#
|
||||||
@ -14,21 +14,23 @@ Name: xmlto
|
|||||||
BuildRequires: docbook-xsl-stylesheets libxslt sgml-skel
|
BuildRequires: docbook-xsl-stylesheets libxslt sgml-skel
|
||||||
Summary: Tool for Converting XML Files to Various Formats
|
Summary: Tool for Converting XML Files to Various Formats
|
||||||
Version: 0.0.18
|
Version: 0.0.18
|
||||||
Release: 43
|
Release: 119
|
||||||
License: GPL
|
License: GPL v2 or later
|
||||||
Group: Productivity/Publishing/XML
|
Group: Productivity/Publishing/XML
|
||||||
URL: http://cyberelk.net/tim/xmlto/
|
Url: http://cyberelk.net/tim/xmlto/
|
||||||
Source0: ftp://cyberelk.net/tim/data/xmlto/stable/%{name}-%{version}.tar.bz2
|
Source0: ftp://cyberelk.net/tim/data/xmlto/stable/%{name}-%{version}.tar.bz2
|
||||||
Source10: %{name}-README.SuSE
|
Source10: %{name}-README.SuSE
|
||||||
Patch: xmlto-nonvoid.patch
|
Patch: xmlto-nonvoid.patch
|
||||||
Patch1: xmlto-0.0.18-overflow.patch
|
Patch1: xmlto-0.0.18-overflow.patch
|
||||||
Patch2: xmlto-find-cmd.diff
|
Patch2: xmlto-find-cmd.diff
|
||||||
|
Patch3: xmlto-0.0.18-xsltopts.diff
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
# We rely entirely on the DocBook XSL stylesheets!
|
# We rely entirely on the DocBook XSL stylesheets!
|
||||||
Requires: docbook-xsl-stylesheets >= 1.56.0
|
Requires: docbook-xsl-stylesheets >= 1.56.0
|
||||||
# For full functionality, we need passivetex.
|
# For full functionality, we need passivetex.
|
||||||
Requires: passivetex >= 1.11
|
Requires: passivetex >= 1.11
|
||||||
Requires: libxslt
|
Requires: /usr/bin/xsltproc
|
||||||
|
Requires: /usr/bin/xmllint
|
||||||
Requires: docbook_4
|
Requires: docbook_4
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -41,12 +43,14 @@ for print output it makes use of passivetex.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch
|
%patch
|
||||||
%patch -p 1 -P 1 -p 1 -P 2
|
%patch -p 1 -P 1 -p 1 -P 2 -p 1 -P 3
|
||||||
cp %{S:10} README.SuSE
|
cp %{S:10} README.SuSE
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
make
|
make
|
||||||
|
|
||||||
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -65,7 +69,12 @@ rm -rf %{buildroot}
|
|||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
%{_datadir}/xmlto
|
%{_datadir}/xmlto
|
||||||
|
|
||||||
%changelog -n xmlto
|
%changelog
|
||||||
|
* Wed Dec 12 2007 - ke@suse.de
|
||||||
|
- Cleanup spec file.
|
||||||
|
- Apply xmlto-0.0.18-xsltopts.diff to provide a command line switch for
|
||||||
|
specifying the HTML output encoding; see # 197484 (thanks to Thomas
|
||||||
|
Schraitle).
|
||||||
* Mon Aug 28 2006 - ke@suse.de
|
* Mon Aug 28 2006 - ke@suse.de
|
||||||
- Fix find argument sequence; reported by Marcus Rueckert [#201749].
|
- Fix find argument sequence; reported by Marcus Rueckert [#201749].
|
||||||
* Wed Jan 25 2006 - mls@suse.de
|
* Wed Jan 25 2006 - mls@suse.de
|
||||||
|
Loading…
x
Reference in New Issue
Block a user