Sync from SUSE:SLFO:Main xmlto revision 0438c94b923b148127b08bb4fcae4dba
This commit is contained in:
commit
860256bee7
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
24
README.SUSE
Normal file
24
README.SUSE
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
Limitation Producing PDF Output
|
||||||
|
===============================
|
||||||
|
|
||||||
|
For PDF output "xmlto" relies on "pdfxmltex" (passivetex)
|
||||||
|
resp. texlive-xmltex which currently do not support the complete FO
|
||||||
|
standard. If you encounter problems within this tool chain, use a FO
|
||||||
|
processor such as "fop":
|
||||||
|
|
||||||
|
1/ Produce FO using "xmlto":
|
||||||
|
|
||||||
|
xmlto fo file.xml
|
||||||
|
|
||||||
|
2/ Run "fop" on the .fo file:
|
||||||
|
|
||||||
|
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
|
BIN
xmlto-0.0.28.tar.bz2
(Stored with Git LFS)
Normal file
BIN
xmlto-0.0.28.tar.bz2
(Stored with Git LFS)
Normal file
Binary file not shown.
44
xmlto-codecleanup.patch
Normal file
44
xmlto-codecleanup.patch
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
--- a/xmlif/xmlif.l
|
||||||
|
+++ b/xmlif/xmlif.l
|
||||||
|
@@ -43,7 +43,7 @@
|
||||||
|
|
||||||
|
static char **selections; /* selection tokens */
|
||||||
|
static int nselections; /* number of selections */
|
||||||
|
-static ifsense; /* sense of last `if' or unless seen */
|
||||||
|
+static int ifsense; /* sense of last `if' or unless seen */
|
||||||
|
static char *attribute; /* last attribute scanned */
|
||||||
|
|
||||||
|
struct stack_t {
|
||||||
|
@@ -84,7 +84,7 @@ static void pop_level(void)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
-static void stash_attribute(char *attr)
|
||||||
|
+static void stash_attribute(const char *attr)
|
||||||
|
/* stash an attribute away for comparison */
|
||||||
|
{
|
||||||
|
#ifdef DEBUG
|
||||||
|
@@ -176,7 +176,7 @@ static void process_value(char *val)
|
||||||
|
end->suppressed = suppress(attribute, val);
|
||||||
|
}
|
||||||
|
|
||||||
|
-static void process_else()
|
||||||
|
+static void process_else(void)
|
||||||
|
/* process <?xmlif else> tag */
|
||||||
|
{
|
||||||
|
end->suppressed = end->matched;
|
||||||
|
@@ -230,9 +230,12 @@ WS [ \t\n]*
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
|
-int yywrap() {exit(0);};
|
||||||
|
+int yywrap(void)
|
||||||
|
+{
|
||||||
|
+ exit(0);
|
||||||
|
+}
|
||||||
|
|
||||||
|
-main(int argc, char *argv[])
|
||||||
|
+int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
|
20
xmlto-nonvoid.patch
Normal file
20
xmlto-nonvoid.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
--- a/xmlif/xmlif.c
|
||||||
|
+++ b/xmlif/xmlif.c
|
||||||
|
@@ -2435,6 +2435,7 @@ main(int argc, char *argv[])
|
||||||
|
}
|
||||||
|
|
||||||
|
yylex();
|
||||||
|
+ return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
--- a/xmlif/xmlif.l
|
||||||
|
+++ b/xmlif/xmlif.l
|
||||||
|
@@ -259,6 +259,7 @@ main(int argc, char *argv[])
|
||||||
|
}
|
||||||
|
|
||||||
|
yylex();
|
||||||
|
+ return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
30
xmlto-xsltopts.patch
Normal file
30
xmlto-xsltopts.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
--- a/xmlto.in 2014-06-11 10:16:55.661844817 +0200
|
||||||
|
+++ b/xmlto.in 2014-06-11 10:18:02.362850985 +0200
|
||||||
|
@@ -39,6 +39,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
|
||||||
|
--noautosize do not autodetect paper size via locales or paperconf
|
||||||
|
--noclean temp files are not deleted automatically
|
||||||
|
@@ -282,7 +282,7 @@
|
||||||
|
|
||||||
|
# Process any options
|
||||||
|
ARGS=$(${GETOPT} \
|
||||||
|
- --longoptions=help,version,extensions,searchpath:,skip-validation,stringparam:,noclean,noautosize,noextensions,profile,with-fop,with-dblatex \
|
||||||
|
+ --longoptions=help,version,extensions,searchpath:,skip-validation,stringparam:,noclean,noautosize,noextensions,profile,with-fop,with-dblatex,xsltopts: \
|
||||||
|
-n xmlto -- x:m:o:p:v "$@")
|
||||||
|
[ $? != 0 ] && { usage; exit 1; }
|
||||||
|
eval set -- "$ARGS"
|
||||||
|
@@ -391,6 +391,10 @@
|
||||||
|
PROFILE=1
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
+ --xsltopts)
|
||||||
|
+ XSLTOPTS="$XSLTOPTS $2"
|
||||||
|
+ shift 2
|
||||||
|
+ ;;
|
||||||
|
--)
|
||||||
|
shift
|
||||||
|
break
|
191
xmlto.changes
Normal file
191
xmlto.changes
Normal file
@ -0,0 +1,191 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 18 15:42:45 UTC 2019 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Suggest instead of recommend texlive: most users are not
|
||||||
|
interested in texlive specific tooling- unless they install
|
||||||
|
texlive. xmlto is also useful without the texlice stack. So
|
||||||
|
instead of recommending (and this installing by default)
|
||||||
|
textlive, we switch to suggesting it.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 6 09:45:26 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
|
||||||
|
|
||||||
|
- Simplify spec file
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 13 16:50:16 UTC 2018 - avindra@opensuse.org
|
||||||
|
|
||||||
|
- update to 0.0.28:
|
||||||
|
- fix broken temp files removal
|
||||||
|
- do not detect links browser as elinks
|
||||||
|
- includes 0.0.27:
|
||||||
|
- remove several bashisms in scripts
|
||||||
|
- new option --profile for preprocessing documents with
|
||||||
|
profiling stylesheet
|
||||||
|
- fix several potential crashes in xmlif
|
||||||
|
- cleanup with spec-cleaner
|
||||||
|
- switch urls to new fedora upstream
|
||||||
|
- patches:
|
||||||
|
* rebase xmlto-xsltopts.patch
|
||||||
|
* format xmlto-codecleanup.patch for -p1
|
||||||
|
* format xmlto-nonvoid.patch for -p1
|
||||||
|
* drop xmlto-overflow.patch (xmlif.c is regenerated anyway)
|
||||||
|
* drop xmlto-lynx-empty-file.patch (obsolete)
|
||||||
|
* renumber patches
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 19 21:19:00 UTC 2014 - Led <ledest@gmail.com>
|
||||||
|
|
||||||
|
- fix shebang of xmlto
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 11 08:24:10 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Version bump to 0.0.26:
|
||||||
|
- --searchpath option no longer produces warning
|
||||||
|
about local builtin used outside the function
|
||||||
|
(debian #652974)
|
||||||
|
- fix build with automake 1.13+
|
||||||
|
- fix noextensions option recognition
|
||||||
|
- handle used css list in epub format
|
||||||
|
- Rename SUSE readme to xmlto-README.SUSE to fix capitalization
|
||||||
|
- Rebase xmlto-xsltopts.patch to apply to latest release.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 6 07:21:10 UTC 2012 - pascal.bleser@opensuse.org
|
||||||
|
|
||||||
|
- fixed xsltproc buildrequires and requires for other versions
|
||||||
|
- more consistent spec file
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 5 23:17:29 UTC 2012 - pascal.bleser@opensuse.org
|
||||||
|
|
||||||
|
- add explicit requires for libxslt-tools or libxslt1 in order to
|
||||||
|
fix "have choice" in several repos
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 18 16:47:31 UTC 2012 - chris@computersalat.de
|
||||||
|
|
||||||
|
- update to 0.0.25
|
||||||
|
- 2011-11-28 Ondrej Vasik <ovasik@redhat.com>
|
||||||
|
* configure.in: detect grep location
|
||||||
|
* xmlto.in: use (fop/fop1).extensions parameter based on real
|
||||||
|
fop version
|
||||||
|
- 2011-07-14 Ondrej Vasik <ovasik@redhat.com>
|
||||||
|
* format/docbook/epub: initial experimental support for
|
||||||
|
docbook to epub conversion
|
||||||
|
* configure.in: detect zip location
|
||||||
|
* xmlto.in: provide detected zip location to epub convertor
|
||||||
|
- 2011-07-07 Ondrej Vasik <ovasik@redhat.com>
|
||||||
|
* README: Improve the readme file, create online manual
|
||||||
|
pages on project wiki
|
||||||
|
* xmlto.in: use backend extensions by default, provide
|
||||||
|
--noextensions to disable this
|
||||||
|
* doc/xmlto.xml: mention --noextensions option in documentation
|
||||||
|
- 2011-03-03 Ondrej Vasik <ovasik@redhat.com>
|
||||||
|
* format/{docbook,xhtml}/txt: show the text-web-browser
|
||||||
|
converting command in verbose mode
|
||||||
|
- 2010-07-13 Ondrej Vasik <ovasik@redhat.com>
|
||||||
|
* format/fo/{ps,dvi,pdf}: workaround passivetex limitation
|
||||||
|
for chapters titles starting with L (rhbz#526273)
|
||||||
|
- rebase patches (xmlto-overflow.patch, xmlto-xsltopts.patch).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 19 14:01:53 UTC 2011 - idonmez@suse.com
|
||||||
|
|
||||||
|
- Add xmlto-lynx-empty-file.patch to fix problems with lynx on
|
||||||
|
empty files, upstream commit 57
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 8 09:42:34 CEST 2011 - ke@suse.de
|
||||||
|
|
||||||
|
- Install missing %doc files such as COPYING; bnc#695072.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 18 16:27:04 UTC 2011 - giecrilj@stegny.2a.pl
|
||||||
|
|
||||||
|
- Recommends texlive (bnc#688032)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Dec 19 18:20:07 CET 2009 - jengelh@medozas.de
|
||||||
|
|
||||||
|
- Enable parallel build
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 16 15:46:37 CET 2009 - ke@suse.de
|
||||||
|
|
||||||
|
- Update to version 0.0.23; reported by Andreas Schwab.
|
||||||
|
- Drop obsolete patch.
|
||||||
|
- Rebuild old patches.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 28 19:50:22 CEST 2009 - pth@suse.de
|
||||||
|
|
||||||
|
- Fix comiler warnings.
|
||||||
|
- BuildRequire flex and remove xmlif.c to get it regenerated.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 9 09:48:19 CEST 2008 - ke@suse.de
|
||||||
|
|
||||||
|
- Improve README.SUSE; bnc#67190.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 17 11:33:29 2008 - werner@suse.de
|
||||||
|
|
||||||
|
- Use texlive-xmltex instead of passivetex
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 14 13:24:44 CET 2007 - ke@suse.de
|
||||||
|
|
||||||
|
- Require libxslt again.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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
|
||||||
|
|
||||||
|
- Fix find argument sequence; reported by Marcus Rueckert [#201749].
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 25 21:43:15 CET 2006 - mls@suse.de
|
||||||
|
|
||||||
|
- converted neededforbuild to BuildRequires
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 29 03:04:28 CEST 2005 - dmueller@suse.de
|
||||||
|
|
||||||
|
- add norootforbuild
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 6 13:33:54 CEST 2005 - ke@suse.de
|
||||||
|
|
||||||
|
- xmlto-0.0.18-overflow.patch: Include more *.h to avoid potential
|
||||||
|
buffer overflows.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 3 12:01:19 CET 2005 - ke@suse.de
|
||||||
|
|
||||||
|
- Add README.SuSE to address issues producing PDF output; [# 67190].
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 13 13:47:26 CEST 2004 - ke@suse.de
|
||||||
|
|
||||||
|
- Add libgpg-error and libgcrypt to neededforbuild.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 19 02:12:06 CEST 2004 - ro@suse.de
|
||||||
|
|
||||||
|
- added return to non-void function (main)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 24 13:18:09 CET 2004 - ke@suse.de
|
||||||
|
|
||||||
|
- New package: version 0.0.18. Proposed by Richard Bos [# 34918].
|
||||||
|
|
||||||
|
|
79
xmlto.spec
Normal file
79
xmlto.spec
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
#
|
||||||
|
# spec file for package xmlto
|
||||||
|
#
|
||||||
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: xmlto
|
||||||
|
Version: 0.0.28
|
||||||
|
Release: 0
|
||||||
|
Summary: Tool for Converting XML Files to Various Formats
|
||||||
|
License: GPL-2.0-or-later
|
||||||
|
Group: Productivity/Publishing/XML
|
||||||
|
URL: https://pagure.io/xmlto/
|
||||||
|
Source0: https://releases.pagure.org/%{name}/%{name}-%{version}.tar.bz2
|
||||||
|
Source10: README.SUSE
|
||||||
|
Patch0: xmlto-nonvoid.patch
|
||||||
|
Patch1: xmlto-xsltopts.patch
|
||||||
|
Patch2: xmlto-codecleanup.patch
|
||||||
|
BuildRequires: docbook-xsl-stylesheets
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: flex
|
||||||
|
BuildRequires: libxslt-tools
|
||||||
|
BuildRequires: sgml-skel
|
||||||
|
# We rely entirely on the DocBook XSL stylesheets!
|
||||||
|
Requires: docbook-xsl-stylesheets >= 1.56.0
|
||||||
|
Requires: docbook_4
|
||||||
|
Requires: libxslt-tools
|
||||||
|
# For full functionality, we need passivetex; but since most users are not happy with
|
||||||
|
# getting texlive installed, we only suggest it.
|
||||||
|
Suggests: texlive-xmltex >= 2007
|
||||||
|
|
||||||
|
%description
|
||||||
|
This is a package for converting XML files to various formats using XSL
|
||||||
|
stylesheets. As a processor it depends on xsltproc and as a formatter
|
||||||
|
for print output it makes use of passivetex.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
|
cp %{SOURCE10} .
|
||||||
|
rm -f xmlif/xmlif.c
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure BASH=/bin/bash
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%check
|
||||||
|
make check %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
install -d %{buildroot}%{_datadir}/xmlto/xsl
|
||||||
|
%fdupes %{buildroot}%{_datadir}/xmlto
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.SUSE
|
||||||
|
%license COPYING
|
||||||
|
%doc AUTHORS README ChangeLog FAQ THANKS NEWS
|
||||||
|
%{_bindir}/xmlto
|
||||||
|
%{_bindir}/xmlif
|
||||||
|
%{_mandir}/man1/xmlto.1%{?ext_man}
|
||||||
|
%{_mandir}/man1/xmlif.1%{?ext_man}
|
||||||
|
%{_datadir}/xmlto
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user