Compare commits

...
Sign in to create a new pull request.

3 commits

Author SHA1 Message Date
Ondřej Vašík
fdc824bde2 fix typo in changelog 2011-11-29 13:00:29 +01:00
Ondřej Vašík
55f6cb082a fix the functionality of fop.extensions (#757035) 2011-11-29 12:59:57 +01:00
Ondřej Vašík
abf0884880 Requested by #681909 - new release 0.0.24, basic support for docbook->epub, conversion, use backend extensions by default 2011-09-15 11:09:09 +02:00
5 changed files with 65 additions and 51 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
xmlto-0.0.23.tar.bz2
/xmlto-0.0.24.tar.bz2

View file

@ -1 +1 @@
3001d6bb2bbc2c8f6c2301f05120f074 xmlto-0.0.23.tar.bz2
9d45bbe43f7c66c6bf585ba6635df31a xmlto-0.0.24.tar.bz2

View file

@ -1,45 +0,0 @@
diff -urNp xmlto-0.0.23-orig/format/fo/dvi xmlto-0.0.23/format/fo/dvi
--- xmlto-0.0.23-orig/format/fo/dvi 2009-09-18 12:06:23.000000000 +0200
+++ xmlto-0.0.23/format/fo/dvi 2009-10-13 14:08:46.000000000 +0200
@@ -13,7 +13,10 @@ post-process)
fi
# Work around stupid tetex bug with '_' in filenames
# Also work around stupid tetex limitation with long lines (bug #101055)
- sed -e "s,/>,\n/>,g" "$XSLT_PROCESSED" >tmp.fo
+ # and workaround passivetex limitation for chapter titles starting with L
+ # (#526273)
+ sed -e "s,/>,/>\n,g" \
+ -e "s,block>,&\n,g" "$XSLT_PROCESSED" >tmp.fo
OUT=output
TEXINPUTS="$(dirname "$INPUT_FILE")::$SEARCHPATH"
export TEXINPUTS
diff -urNp xmlto-0.0.23-orig/format/fo/pdf xmlto-0.0.23/format/fo/pdf
--- xmlto-0.0.23-orig/format/fo/pdf 2009-09-18 12:06:23.000000000 +0200
+++ xmlto-0.0.23/format/fo/pdf 2009-10-13 14:09:08.000000000 +0200
@@ -15,7 +15,10 @@ DEFAULT|DBLATEX)
fi
# Work around stupid tetex bug with '_' in filenames
# Also work around stupid tetex limitation with long lines (bug #101055)
- sed -e "s,/>,\n/>,g" "$XSLT_PROCESSED" >tmp.fo
+ # and workaround passivetex limitation for chapter titles starting with L
+ # (#526273)
+ sed -e "s,/>,/>\n,g" \
+ -e "s,block>,&\n,g" "$XSLT_PROCESSED" >tmp.fo
OUT=output
TEXINPUTS="$(dirname "$INPUT_FILE")::$SEARCHPATH"
export TEXINPUTS
diff -urNp xmlto-0.0.23-orig/format/fo/ps xmlto-0.0.23/format/fo/ps
--- xmlto-0.0.23-orig/format/fo/ps 2009-03-17 17:39:52.000000000 +0100
+++ xmlto-0.0.23/format/fo/ps 2009-10-13 14:01:39.000000000 +0200
@@ -10,7 +10,10 @@ DEFAULT|DBLATEX)
fi
# Work around stupid tetex bug with '_' in filenames
# Also work around stupid tetex limitation with long lines (bug #101055)
- sed -e "s,/>,\n/>,g" "$XSLT_PROCESSED" >tmp.fo
+ # and workaround passivetex limitation for chapter titles starting with L
+ # (#526273)
+ sed -e "s,/>,/>\n,g" \
+ -e "s,block>,&\n,g" "$XSLT_PROCESSED" >tmp.fo
OUT=output
TEXINPUTS="$(dirname "$INPUT_FILE")::$SEARCHPATH"
export TEXINPUTS

49
xmlto-fopextensions.patch Normal file
View file

@ -0,0 +1,49 @@
diff -urNp xmlto-0.0.24-orig/configure.in xmlto-0.0.24/configure.in
--- xmlto-0.0.24-orig/configure.in 2011-07-14 12:50:47.000000000 +0200
+++ xmlto-0.0.24/configure.in 2011-11-29 12:53:50.614481739 +0100
@@ -109,6 +109,9 @@ AC_PATH_PROG([W3M], [w3m], [w3m])
AC_ARG_VAR([TAIL], [Name and path of a tail binary that supports -n.])
AC_PATH_PROG([TAIL], [tail], [tail])
+AC_ARG_VAR([GREP], [Name and path of a GNU grep binary.])
+AC_PATH_PROG([GREP], [grep], [grep])
+
AC_ARG_VAR([GCP], [Name and path of a GNU cp binary (need at least -P)])
AC_PATH_PROG([GCP], [cp], [cp])
Binary files xmlto-0.0.24-orig/.configure.in.swp and xmlto-0.0.24/.configure.in.swp differ
diff -urNp xmlto-0.0.24-orig/xmlto.in xmlto-0.0.24/xmlto.in
--- xmlto-0.0.24-orig/xmlto.in 2011-07-14 12:41:25.000000000 +0200
+++ xmlto-0.0.24/xmlto.in 2011-11-29 12:53:02.105195055 +0100
@@ -22,6 +22,7 @@ MKTEMP=@MKTEMP@ # See http://www.mktemp.
BASH=@BASH@ # GNU bash, for running the format scripts
GETOPT=@GETOPT@ # a getopt that supports --longoptions
TAIL=@TAIL@ # a tail that supports -n (posix)
+GREP=@GREP@ # GNU grep, for searching patterns
version () {
echo "@PACKAGE@ version @VERSION@"
@@ -236,6 +237,14 @@ then
echo >&2 "@PACKAGE@: Warning: fop not found or not executable."
echo >&2 "@PACKAGE@: Using default backend..."
USE_BACKEND=DEFAULT
+else
+ # we should enable fop.extensions for fop 0_17,0_18 and 0_20*,
+ # fop1.extensions for the rest
+ if [ x`$FOP_PATH -v 2>/dev/null | $GREP 0_[12]` = x ]; then
+ FOPVERSION="fop1"
+ else
+ FOPVERSION="fop"
+ fi
fi
if [ x"$USE_BACKEND" = xDBLATEX ] && \
[ -z "`type -t $DBLATEX_PATH`" ]
@@ -385,7 +394,7 @@ if [ "$BACKEND_EXTENSIONS" -eq 1 ]
then
case "$USE_BACKEND" in
FOP)
- XSLTOPTS="$XSLTOPTS --param fop.extensions '1' --param fop1.extensions '1'" ;;
+ XSLTOPTS="$XSLTOPTS --param $FOPVERSION.extensions '1'" ;;
DBLATEX)
;;
DEFAULT)

View file

@ -1,7 +1,7 @@
Summary: A tool for converting XML files to various formats
Name: xmlto
Version: 0.0.23
Release: 4%{?dist}
Version: 0.0.24
Release: 2%{?dist}
License: GPLv2+
Group: Applications/System
#Older versions up to xmlto-0.0.20
@ -9,6 +9,7 @@ Group: Applications/System
#Source0: http://cyberelk.net/tim/data/xmlto/stable/%{name}-%{version}.tar.bz2
URL: https://fedorahosted.org/xmlto/
Source0: https://fedorahosted.org/releases/x/m/%{name}/%{name}-%{version}.tar.bz2
Patch1: xmlto-fopextensions.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -17,12 +18,11 @@ BuildRequires: libxslt
BuildRequires: util-linux, flex
# We rely heavily on the DocBook XSL stylesheets!
Requires: docbook-xsl >= 1.56.0
Requires: docbook-xsl >= 1.74.2
Requires: text-www-browser
Requires: libxslt
Requires: docbook-dtds
Requires: util-linux, flex
Patch1: xmlto-0.0.23-Lchapterpassivetex.patch
%description
This is a package for converting XML files to various formats using XSL
@ -59,9 +59,10 @@ xhtml1 source format.
%prep
%setup -q
%patch1 -p1
%patch1 -p1 -b .extensions
%build
autoreconf
%configure BASH=/bin/bash
make %{?_smp_mflags}
@ -101,6 +102,14 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Tue Nov 29 2011 Ondrej Vasik <ovasik@redhat.com> - 0.0.24-2
- fix the functionality of fop.extensions (#757035)
* Thu Jul 14 2011 Ondrej Vasik <ovasik@redhat.com> - 0.0.24-1
- new release 0.0.24, basic support for docbook->epub
conversion, use backend extensions by default
(--noextensions) to disable it
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.23-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild