From cf8acc660aa173f61f0098746d3453f7d440611f Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 22 Apr 2008 02:59:39 +0000 Subject: [PATCH 1/6] Initialize branch F-9 for xmlto --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..1c26f78 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-9 From 580469bf8ae7e3ac380151b8bdaae4e9d94e5ea6 Mon Sep 17 00:00:00 2001 From: Ondrej Vasik Date: Tue, 13 May 2008 10:16:58 +0000 Subject: [PATCH 2/6] fixed errorneus handling of backend stylesheet(#446092) --- xmlto-backendstylesheet.patch | 11 ++++++ xmlto-basename.patch | 71 ----------------------------------- xmlto-findwarning.patch | 12 ------ xmlto.spec | 10 ++++- 4 files changed, 20 insertions(+), 84 deletions(-) create mode 100644 xmlto-backendstylesheet.patch delete mode 100644 xmlto-basename.patch delete mode 100644 xmlto-findwarning.patch diff --git a/xmlto-backendstylesheet.patch b/xmlto-backendstylesheet.patch new file mode 100644 index 0000000..d40028e --- /dev/null +++ b/xmlto-backendstylesheet.patch @@ -0,0 +1,11 @@ +diff -urNp xmlto-0.0.20-orig/xmlto.in xmlto-0.0.20/xmlto.in +--- xmlto-0.0.20-orig/xmlto.in 2008-01-17 10:39:02.000000000 +0100 ++++ xmlto-0.0.20/xmlto.in 2008-05-13 12:08:35.000000000 +0200 +@@ -326,6 +326,7 @@ fi + # Ask the format script what stylesheet to use. + XSLT_PROCESSOR=xsltproc # We only know about xsltproc right now. + export XSLT_PROCESSOR ++export USE_BACKEND + if [ -z "$STYLESHEET" ] + then + STYLESHEET="$(${BASH} "$FORMAT" stylesheet)" || exit 1 diff --git a/xmlto-basename.patch b/xmlto-basename.patch deleted file mode 100644 index 8fa182f..0000000 --- a/xmlto-basename.patch +++ /dev/null @@ -1,71 +0,0 @@ ---- xmlto-0.0.18/format/docbook/fo.basename 2005-08-08 14:00:24.000000000 +0100 -+++ xmlto-0.0.18/format/docbook/fo 2005-08-08 14:01:13.000000000 +0100 -@@ -7,6 +7,6 @@ - echo "http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl" - ;; - post-process) -- cp "$XSLT_PROCESSED" "$OUTPUT_DIR/$(basename ${XSLT_PROCESSED%.*}).fo" -+ cp "$XSLT_PROCESSED" "$OUTPUT_DIR/$(basename "${XSLT_PROCESSED%.*}").fo" - ;; - esac ---- xmlto-0.0.18/format/docbook/html-nochunks.basename 2005-08-08 14:01:39.000000000 +0100 -+++ xmlto-0.0.18/format/docbook/html-nochunks 2005-08-08 14:01:49.000000000 +0100 -@@ -7,6 +7,6 @@ - echo "http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl" - ;; - post-process) -- cp "$XSLT_PROCESSED" "$OUTPUT_DIR/$(basename ${XSLT_PROCESSED%.*}).html" -+ cp "$XSLT_PROCESSED" "$OUTPUT_DIR/$(basename "${XSLT_PROCESSED%.*}").html" - ;; - esac ---- xmlto-0.0.18/format/docbook/txt.basename 2005-08-08 14:02:16.000000000 +0100 -+++ xmlto-0.0.18/format/docbook/txt 2005-08-08 14:02:26.000000000 +0100 -@@ -29,6 +29,6 @@ - echo >&2 "Convert HTML to ASCII" - fi - ${CONVERT} ${ARGS} ${POSTARGS} ${XSLT_PROCESSED} > \ -- "$OUTPUT_DIR/$(basename ${XSLT_PROCESSED%.*}).txt" -+ "$OUTPUT_DIR/$(basename "${XSLT_PROCESSED%.*}").txt" - ;; - esac ---- xmlto-0.0.18/format/fo/dvi.basename 2005-08-08 14:02:39.000000000 +0100 -+++ xmlto-0.0.18/format/fo/dvi 2005-08-08 14:02:48.000000000 +0100 -@@ -29,6 +29,6 @@ - [ "$VERBOSE" -ge 3 ] && cat $OUT - fi - fi -- cp -- *.dvi "$OUTPUT_DIR/$(basename ${XSLT_PROCESSED%.*}).dvi" -+ cp -- *.dvi "$OUTPUT_DIR/$(basename "${XSLT_PROCESSED%.*}").dvi" - ;; - esac ---- xmlto-0.0.18/format/fo/pdf.basename 2005-08-08 14:03:01.000000000 +0100 -+++ xmlto-0.0.18/format/fo/pdf 2005-08-08 14:03:08.000000000 +0100 -@@ -29,6 +29,6 @@ - [ "$VERBOSE" -ge 3 ] && cat $OUT - fi - fi -- cp -- *.pdf "$OUTPUT_DIR/$(basename ${XSLT_PROCESSED%.*}).pdf" -+ cp -- *.pdf "$OUTPUT_DIR/$(basename "${XSLT_PROCESSED%.*}").pdf" - ;; - esac ---- xmlto-0.0.18/format/fo/ps.basename 2005-08-08 14:03:14.000000000 +0100 -+++ xmlto-0.0.18/format/fo/ps 2005-08-08 14:03:23.000000000 +0100 -@@ -33,6 +33,6 @@ - then - echo >&2 "Post-process DVI to PS" - fi -- dvips -R -q ${POSTPOSTARGS} -o "$OUTPUT_DIR/$(basename ${XSLT_PROCESSED%.*}).ps" *.dvi -+ dvips -R -q ${POSTPOSTARGS} -o "$OUTPUT_DIR/$(basename "${XSLT_PROCESSED%.*}").ps" *.dvi - ;; - esac ---- xmlto-0.0.18/xmlto.in.basename 2005-08-08 14:03:38.000000000 +0100 -+++ xmlto-0.0.18/xmlto.in 2005-08-08 14:03:52.000000000 +0100 -@@ -339,7 +339,7 @@ - XSLT_PROCESSED="$INPUT_FILE" - else - [ "$VERBOSE" -ge 1 ] && echo >&2 "Stylesheet: ${STYLESHEET}" -- XSLT_PROCESSED="$XSLT_PROCESSED_DIR/$(basename ${INPUT_FILE%.*}).proc" -+ XSLT_PROCESSED="$XSLT_PROCESSED_DIR/$(basename "${INPUT_FILE%.*}").proc" - - if [ "$VERBOSE" -gt 2 ] - then diff --git a/xmlto-findwarning.patch b/xmlto-findwarning.patch deleted file mode 100644 index 9454831..0000000 --- a/xmlto-findwarning.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -urNp xmlto-0.0.18.orig/xmlto.in xmlto-0.0.18/xmlto.in ---- xmlto-0.0.18.orig/xmlto.in 2004-01-02 13:03:24.000000000 +0100 -+++ xmlto-0.0.18/xmlto.in 2007-10-08 13:48:22.000000000 +0200 -@@ -47,7 +47,7 @@ determined automatically). - EOF - if [ -d "$FORMAT_DIR" ] - then -- for source in $(${FIND} "$FORMAT_DIR" -type d -maxdepth 1) -+ for source in $(${FIND} "$FORMAT_DIR" -maxdepth 1 -type d) - do - if [ "$source" = "$FORMAT_DIR" ]; then continue; fi - diff --git a/xmlto.spec b/xmlto.spec index cc944e5..97f800e 100644 --- a/xmlto.spec +++ b/xmlto.spec @@ -3,11 +3,14 @@ Summary: A tool for converting XML files to various formats. Name: xmlto Version: 0.0.20 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2 Group: Applications/System URL: http://cyberelk.net/tim/xmlto/ Source0: http://cyberelk.net/tim/data/xmlto/stable/%{name}-%{version}.tar.bz2 + +Patch1: xmlto-backendstylesheet.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: docbook-xsl >= 1.56.0 @@ -33,6 +36,7 @@ stylesheets. %prep %setup -q +%patch1 -p1 -b .backendstylesheet %build touch doc/xmlto.xml doc/xmlif.xml @@ -54,6 +58,10 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/xmlto %changelog +* Tue May 13 2008 Ondrej Vasik - 0.0.20-3 +- fixed errorneus handling of backend stylesheet(#446092) +- removed unused patches + * Mon Feb 11 2008 Ondrej Vasik - 0.0.20-2 - gcc4.3 rebuild From 310a2403f19db81dd21a305467a8829bb2c1ddee Mon Sep 17 00:00:00 2001 From: Ondrej Vasik Date: Mon, 2 Feb 2009 12:32:22 +0000 Subject: [PATCH 3/6] fix xmllint postvalid (added noent option), fix stringparam option functionality, ship documentation files, spec file cleanup --- xmlto-stringparam.patch | 23 +++++++++++++++++++++++ xmlto-xmllintoptions.patch | 15 +++++++++++++++ xmlto.spec | 28 +++++++++++++++++++++------- 3 files changed, 59 insertions(+), 7 deletions(-) create mode 100644 xmlto-stringparam.patch create mode 100644 xmlto-xmllintoptions.patch diff --git a/xmlto-stringparam.patch b/xmlto-stringparam.patch new file mode 100644 index 0000000..cd0da71 --- /dev/null +++ b/xmlto-stringparam.patch @@ -0,0 +1,23 @@ +diff -urNp xmlto-0.0.20-orig/THANKS xmlto-0.0.20/THANKS +--- xmlto-0.0.20-orig/THANKS 2008-01-15 13:56:45.000000000 +0100 ++++ xmlto-0.0.20/THANKS 2009-02-02 13:03:10.000000000 +0100 +@@ -9,3 +9,4 @@ Tommy Reynolds + Shlomi Fish + Braden McDaniel ++Joseph Parmelee +diff -urNp xmlto-0.0.20-orig/xmlto.in xmlto-0.0.20/xmlto.in +--- xmlto-0.0.20-orig/xmlto.in 2009-02-02 13:00:17.000000000 +0100 ++++ xmlto-0.0.20/xmlto.in 2009-02-02 13:02:41.000000000 +0100 +@@ -241,8 +241,8 @@ while [ "$#" -gt "0" ]; do + ;; + --stringparam) + MYPARAM="$2" +- XSLTPARAMS="XSLTPARAMS --stringparam ${MYPARAM%=*}" +- XSLTPARAMS="XSLTPARAMS $MYPARAM#*=}" ++ XSLTPARAMS="$XSLTPARAMS --stringparam ${MYPARAM%=*}" ++ XSLTPARAMS="$XSLTPARAMS ${MYPARAM#*=}" + shift 2 + ;; + --noclean) +Binární soubory xmlto-0.0.20-orig/.xmlto.in.swp a xmlto-0.0.20/.xmlto.in.swp jsou různé diff --git a/xmlto-xmllintoptions.patch b/xmlto-xmllintoptions.patch new file mode 100644 index 0000000..e5c57da --- /dev/null +++ b/xmlto-xmllintoptions.patch @@ -0,0 +1,15 @@ +diff -urNp xmlto-0.0.20-orig/xmlto.in xmlto-0.0.20/xmlto.in +--- xmlto-0.0.20-orig/xmlto.in 2009-02-02 13:23:06.000000000 +0100 ++++ xmlto-0.0.20/xmlto.in 2009-02-02 13:27:50.000000000 +0100 +@@ -372,8 +372,9 @@ if [ "$SKIP_VALIDATION" -eq 0 ] && [ "$S + then + VALIDATION="${XSLT_PROCESSED_DIR}/validation-errors" + [ "$VERBOSE" -ge 1 ] && \ +- echo >&2 "xmllint >/dev/null --xinclude --postvalid \"$INPUT_FILE\"" +- xmllint >/dev/null --xinclude --postvalid "$INPUT_FILE" 2>"${VALIDATION}" ++ echo >&2 "xmllint >/dev/null --xinclude --postvalid --noent \"$INPUT_FILE\"" ++ xmllint >/dev/null --xinclude --postvalid --noent \ ++ "$INPUT_FILE" 2>"${VALIDATION}" + xmllint_status=$? + if [ $xmllint_status -ne 0 ] + then diff --git a/xmlto.spec b/xmlto.spec index 97f800e..549b9ba 100644 --- a/xmlto.spec +++ b/xmlto.spec @@ -1,15 +1,19 @@ %{!?tetex:%define tetex 1} -Summary: A tool for converting XML files to various formats. +Summary: A tool for converting XML files to various formats Name: xmlto Version: 0.0.20 -Release: 3%{?dist} -License: GPLv2 +Release: 4%{?dist} +#xmlto is released under GPLv2+ license, xmlif under GPL+ license +License: GPLv2+ and GPL+ Group: Applications/System +#Newer versions above xmlto-0.0.20 at https://fedorahosted.org/xmlto/ URL: http://cyberelk.net/tim/xmlto/ Source0: http://cyberelk.net/tim/data/xmlto/stable/%{name}-%{version}.tar.bz2 Patch1: xmlto-backendstylesheet.patch +Patch2: xmlto-stringparam.patch +Patch3: xmlto-xmllintoptions.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -37,27 +41,37 @@ stylesheets. %prep %setup -q %patch1 -p1 -b .backendstylesheet +%patch2 -p1 -b .stringparam +%patch3 -p1 -b .xmllintoptions %build touch doc/xmlto.xml doc/xmlif.xml %configure -make +make %{?_smp_mflags} + +%check make check %install rm -rf $RPM_BUILD_ROOT -%makeinstall +make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files -%defattr(-,root,root) +%defattr(-,root,root,-) +%doc COPYING ChangeLog README AUTHORS NEWS %{_bindir}/* %{_mandir}/*/* %{_datadir}/xmlto %changelog +* Mon Feb 02 2009 Ondrej Vasik - 0.0.20-4 +- fix xmllint postvalid (added noent option) +- fix stringparam option functionality +- ship documentation files, spec file cleanup + * Tue May 13 2008 Ondrej Vasik - 0.0.20-3 - fixed errorneus handling of backend stylesheet(#446092) - removed unused patches @@ -70,7 +84,7 @@ rm -rf $RPM_BUILD_ROOT - added experimental fop support(additional output formats) - possibility to read stylesheet from STDIN, using recursive cp in docbook formats, updated man pages - + * Wed Nov 28 2007 Ondrej Vasik - 0.0.19-1 - new version 0.0.19 - added dist tag From d6ff1841e2d05fe1cabcbc991546aa1803d0705f Mon Sep 17 00:00:00 2001 From: Ondrej Vasik Date: Mon, 2 Mar 2009 17:21:43 +0000 Subject: [PATCH 4/6] temporarily revert xmllint noent change (#488093) --- xmlto.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xmlto.spec b/xmlto.spec index 549b9ba..4c22e50 100644 --- a/xmlto.spec +++ b/xmlto.spec @@ -3,7 +3,7 @@ Summary: A tool for converting XML files to various formats Name: xmlto Version: 0.0.20 -Release: 4%{?dist} +Release: 5%{?dist} #xmlto is released under GPLv2+ license, xmlif under GPL+ license License: GPLv2+ and GPL+ Group: Applications/System @@ -13,7 +13,7 @@ Source0: http://cyberelk.net/tim/data/xmlto/stable/%{name}-%{version}.tar.bz2 Patch1: xmlto-backendstylesheet.patch Patch2: xmlto-stringparam.patch -Patch3: xmlto-xmllintoptions.patch +#Patch3: xmlto-xmllintoptions.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -42,7 +42,7 @@ stylesheets. %setup -q %patch1 -p1 -b .backendstylesheet %patch2 -p1 -b .stringparam -%patch3 -p1 -b .xmllintoptions +#%patch3 -p1 -b .xmllintoptions %build touch doc/xmlto.xml doc/xmlif.xml @@ -67,6 +67,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/xmlto %changelog +* Mon Mar 02 2009 Ondrej Vasik - 0.0.20-5 +- temporarily revert xmllint noent change (#488093) + * Mon Feb 02 2009 Ondrej Vasik - 0.0.20-4 - fix xmllint postvalid (added noent option) - fix stringparam option functionality From 49ddd9ea01b2488c37b87ca98f4fbd951912a305 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:34:32 +0000 Subject: [PATCH 5/6] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index adf4280..98f8070 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ # Makefile for source rpm: xmlto -# $Id: Makefile,v 1.1 2004/09/09 14:53:32 cvsdist Exp $ +# $Id: Makefile,v 1.2 2007/10/15 19:32:30 notting Exp $ NAME := xmlto SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From e5e4ebff9e8f0ddff9f9f3fb94aac9b3f96005a4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 15:58:00 +0000 Subject: [PATCH 6/6] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 98f8070..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: xmlto -# $Id: Makefile,v 1.2 2007/10/15 19:32:30 notting Exp $ -NAME := xmlto -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attempt a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index 1c26f78..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-9