From 4c6dcd8241126ca8a149dd1db2756a785708f804 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Fri, 7 Nov 2008 04:42:22 +0000 Subject: [PATCH 1/5] Initialize branch F-10 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..dc32377 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-10 From 89af92cdda1c2407b5a8364a125987de7f19f4cf Mon Sep 17 00:00:00 2001 From: Ondrej Vasik Date: Wed, 28 Jan 2009 12:22:22 +0000 Subject: [PATCH 2/5] fix cleaning up of temporary files with libpaper, fix xmllint postvalid (added noent option), fix stringparam functionality, ship documentation files, spec file cleanup(merge review) --- xmlto-libpaper.patch | 28 ++++++++++++++++++++++++++++ xmlto-stringparam.patch | 22 ++++++++++++++++++++++ xmlto-xmllintoptions.patch | 16 ++++++++++++++++ xmlto.spec | 35 +++++++++++++++++++++++++---------- 4 files changed, 91 insertions(+), 10 deletions(-) create mode 100644 xmlto-libpaper.patch create mode 100644 xmlto-stringparam.patch create mode 100644 xmlto-xmllintoptions.patch diff --git a/xmlto-libpaper.patch b/xmlto-libpaper.patch new file mode 100644 index 0000000..51c3c56 --- /dev/null +++ b/xmlto-libpaper.patch @@ -0,0 +1,28 @@ +diff -urNp xmlto-0.0.21-orig/xmlto.in xmlto-0.0.21/xmlto.in +--- xmlto-0.0.21-orig/xmlto.in 2009-01-28 12:32:29.000000000 +0100 ++++ xmlto-0.0.21/xmlto.in 2009-01-28 12:35:10.000000000 +0100 +@@ -1,5 +1,5 @@ + #!@BASH@ +-# ++# + # @PACKAGE@ - apply an XSL stylesheet to an XML document + # Copyright (C) 2001, 2002, 2003 Tim Waugh + +@@ -106,6 +106,8 @@ then + if [ -n "$paperheight" -a -n "$paperwidth" ] + then + papersizemod=$(${MKTEMP} ${TMPDIR:-/tmp}/@PACKAGE@-xsl.XXXXXX) ++ CLEANFILES[$CLEANFILE_COUNT]="$papersizemod" ++ CLEANFILE_COUNT=$(($CLEANFILE_COUNT + 1)) + cat << EOF > "$papersizemod" + + + Braden McDaniel + Andreas Hoenen + Graham Wilson ++Joseph Parmelee +diff -urNp xmlto-0.0.21-orig/xmlto.in xmlto-0.0.21/xmlto.in +--- xmlto-0.0.21-orig/xmlto.in 2008-05-30 15:41:31.000000000 +0200 ++++ xmlto-0.0.21/xmlto.in 2009-01-05 17:55:12.000000000 +0100 +@@ -273,8 +273,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) diff --git a/xmlto-xmllintoptions.patch b/xmlto-xmllintoptions.patch new file mode 100644 index 0000000..8a59ee5 --- /dev/null +++ b/xmlto-xmllintoptions.patch @@ -0,0 +1,16 @@ +diff -urNp xmlto-0.0.21-orig/xmlto.in xmlto-0.0.21/xmlto.in +--- xmlto-0.0.21-orig/xmlto.in 2009-01-28 12:51:19.000000000 +0100 ++++ xmlto-0.0.21/xmlto.in 2009-01-28 12:54:35.000000000 +0100 +@@ -427,8 +427,10 @@ 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 0c5b461..67a063a 100644 --- a/xmlto.spec +++ b/xmlto.spec @@ -1,25 +1,29 @@ Summary: A tool for converting XML files to various formats Name: xmlto Version: 0.0.21 -Release: 2%{?dist} -License: GPLv2 +Release: 3%{?dist} +#xmlto is released under GPLv2+ license, xmlif under GPL+ license +License: GPLv2+ and GPL+ Group: Applications/System #Older versions up to xmlto-0.0.20 #URL: http://cyberelk.net/tim/xmlto/ #Source0: http://cyberelk.net/tim/data/xmlto/stable/%{name}-%{version}.tar.bz2 URL: https://fedorahosted.org/xmlto/ Source0: http://svn.fedorahosted.org/svn/%{name}/%{name}-%{version}.tar.bz2 +Patch0: xmlto-stringparam.patch +Patch1: xmlto-libpaper.patch +Patch2: xmlto-xmllintoptions.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: docbook-xsl >= 1.56.0 -BuildRequires: /usr/bin/xsltproc +BuildRequires: libxslt BuildRequires: util-linux, flex # We rely heavily on the DocBook XSL stylesheets! Requires: docbook-xsl >= 1.56.0 Requires: text-www-browser -Requires: /usr/bin/xsltproc +Requires: libxslt Requires: docbook-dtds Requires: util-linux, flex @@ -30,7 +34,7 @@ stylesheets. %package tex Group: Applications/System License: GPLv2 -Summary: A set of xmlto backends with TeX requirements +Summary: A set of xmlto backends with TeX requirements # For full functionality, we need passivetex. Requires: passivetex >= 1.11 # We require main package @@ -42,24 +46,28 @@ PassiveTeX/TeX for functionality. %prep %setup -q +%patch0 -p1 -b .stringparam +%patch1 -p1 -b .libpapercleanup +%patch2 -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 @@ -68,14 +76,21 @@ rm -rf $RPM_BUILD_ROOT %exclude %{_datadir}/xmlto/format/fo/pdf %files tex -%defattr(-,root,root) +%defattr(-,root,root,-) %{_datadir}/xmlto/format/fo/dvi %{_datadir}/xmlto/format/fo/ps %{_datadir}/xmlto/format/fo/pdf %changelog +* Wed Jan 28 2009 Ondrej Vasik - 0.0.21-3 +- fix cleaning up of temporary files with libpaper(Debian) +- fix xmllint postvalid (added noent option) +- fix stringparam option functionality +- correct doc filelist attributes, fix license, ship + documentation files, spec file cleanup + * Fri Jul 11 2008 Ondrej Vasik - 0.0.21-2 -- xmlto-tex subpackage to prevent requirements for +- xmlto-tex subpackage to prevent requirements for passivetex/tex for all backends(#454341) * Mon Jun 20 2008 Ondrej Vasik - 0.0.21-1 From 9ad4baedcfcb3dfc79a37a227b796794f061729e Mon Sep 17 00:00:00 2001 From: Ondrej Vasik Date: Mon, 2 Mar 2009 17:19:28 +0000 Subject: [PATCH 3/5] 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 67a063a..6bc79c6 100644 --- a/xmlto.spec +++ b/xmlto.spec @@ -1,7 +1,7 @@ Summary: A tool for converting XML files to various formats Name: xmlto Version: 0.0.21 -Release: 3%{?dist} +Release: 4%{?dist} #xmlto is released under GPLv2+ license, xmlif under GPL+ license License: GPLv2+ and GPL+ Group: Applications/System @@ -12,7 +12,7 @@ URL: https://fedorahosted.org/xmlto/ Source0: http://svn.fedorahosted.org/svn/%{name}/%{name}-%{version}.tar.bz2 Patch0: xmlto-stringparam.patch Patch1: xmlto-libpaper.patch -Patch2: xmlto-xmllintoptions.patch +#Patch2: xmlto-xmllintoptions.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -48,7 +48,7 @@ PassiveTeX/TeX for functionality. %setup -q %patch0 -p1 -b .stringparam %patch1 -p1 -b .libpapercleanup -%patch2 -p1 -b .xmllintoptions +#%patch2 -p1 -b .xmllintoptions %build touch doc/xmlto.xml doc/xmlif.xml @@ -82,6 +82,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/xmlto/format/fo/pdf %changelog +* Mon Mar 02 2009 Ondrej Vasik - 0.0.21-4 +- temporarily revert xmllint noent change (#488093) + * Wed Jan 28 2009 Ondrej Vasik - 0.0.21-3 - fix cleaning up of temporary files with libpaper(Debian) - fix xmllint postvalid (added noent option) From 14da689b9edb9f95c35a5618eff4dd4d9fa5b899 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:34:31 +0000 Subject: [PATCH 4/5] 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 b0172f4a388235ec54da33f16fc6a66791c1ec37 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 15:57:55 +0000 Subject: [PATCH 5/5] 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 dc32377..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-10