--- libxml-mini-perl-1.38.orig/debian/control +++ libxml-mini-perl-1.38/debian/control @@ -0,0 +1,27 @@ +Source: libxml-mini-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>= 7.0.50~), quilt +Build-Depends-Indep: perl +Maintainer: Debian Perl Group +Uploaders: Raphaël Hertzog , + gregor herrmann +Standards-Version: 3.8.3 +Homepage: http://minixml.psychogenic.com +Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libxml-mini-perl/ +Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libxml-mini-perl/ + +Package: libxml-mini-perl +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends} +Description: Perl implementation of the MiniXML XML generator and parser + XML::Mini is a set of Perl classes that allow you to access + XML data and create valid XML output with a tree-based hierarchy of + elements. + . + It provides an easy, object-oriented interface for manipulating XML + documents and their elements. It is currently being used to send + requests and understand responses from remote servers in Perl + applications. + . + XML::Mini does not require any external libraries or modules and is pure Perl. --- libxml-mini-perl-1.38.orig/debian/rules +++ libxml-mini-perl-1.38/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f + +%: + dh --with quilt $@ + --- libxml-mini-perl-1.38.orig/debian/copyright +++ libxml-mini-perl-1.38/debian/copyright @@ -0,0 +1,40 @@ +This is the debian package for the XML::Mini perl module. +It was created by Raphael Hertzog . + +Upstream source location: http://minixml.psychogenic.com + +Copyright & License: + +Programs that use this code are bound to the terms and conditions of the GNU GPL (see the LICENSE file). +If you wish to include these modules in non-GPL code, you need prior written authorisation +from the authors. + + +This library is released under the terms of the GNU GPL version 3, making it available only for +free programs ("free" here being used in the sense of the GPL, see http://www.gnu.org for more details). +Anyone wishing to use this library within a proprietary or otherwise non-GPLed program MUST contact psychogenic.com to +acquire a distinct license for their application. This approach encourages the use of free software +while allowing for proprietary solutions that support further development. + + + LICENSE + + XML::Mini XML parser/generator package. + Copyright (C) 2002-2008 Patrick Deegan + All rights reserved + + XML::Mini is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + XML::Mini is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with XML::Mini. If not, see . + +The full text of the GPL is available on Debian systems in +/usr/share/common-licenses/GPL --- libxml-mini-perl-1.38.orig/debian/README.source +++ libxml-mini-perl-1.38/debian/README.source @@ -0,0 +1,5 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +See /usr/share/doc/quilt/README.source for a detailed explanation. --- libxml-mini-perl-1.38.orig/debian/watch +++ libxml-mini-perl-1.38/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://search.cpan.org/dist/XML-Mini/ .*/XML-Mini-v?(\d[\d.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip) --- libxml-mini-perl-1.38.orig/debian/changelog +++ libxml-mini-perl-1.38/debian/changelog @@ -0,0 +1,104 @@ +libxml-mini-perl (1.38-2) unstable; urgency=low + + [ gregor herrmann ] + * Add debian/README.source to document quilt usage, as required by + Debian Policy since 3.8.0. + * debian/control: Changed: Switched Vcs-Browser field to ViewSVN + (source stanza). + + [ Nathan Handler ] + * debian/watch: Update to ignore development releases. + + [ gregor herrmann ] + * Change my email address. + + [ Raphaël Hertzog ] + * Update my name in Uploaders to add the accented character. + * Switch to debhelper 7 tiny rules file. + * Update Standards-Version to 3.8.3 (no changes needed). + * Add DEP-3 compliant headers to all patches. + + -- Raphaël Hertzog Sun, 20 Sep 2009 21:13:24 +0200 + +libxml-mini-perl (1.38-1) unstable; urgency=low + + [ gregor herrmann ] + * New upstream release. + * Ignore conflicting patches directly applied to upstream source, + hopefully not breaking too much. + * debian/copyright: + - add upstream source location + - update copyright & license terms from README + * Refresh patch pod-fixes.diff. + * Add /me to Uploaders. + * debian/rules: + - use $(CURDIR) instead of `pwd` + - let build-stamp depend on quilt's stamp file + - create install-stamp target, depepnding on build-stamp + - use "$@" when touching stamp files + - move dh_clean before make realclean and use dh_clean for removing + stamp files + - use DESTDIR and PREFIX for make install + - simplify removal of /usr/lib/perl5 + - don't install README anymore, it doesn't provide any additional + information + - remove some unneeded dh_* calls + * Add another change to a POD to pod-fixes.diff. + + [ Raphael Hertzog ] + * Drop version mangling in watch file. + * Separate the patches contained in the .diff.gz in independent patches. + Updated them for the new upstream version. + * Remove some cruft in debian/rules. + + -- Raphael Hertzog Sun, 10 Feb 2008 22:20:46 +0100 + +libxml-mini-perl (1.2.8-4) unstable; urgency=low + + [ Raphael Hertzog ] + * Put the team as Maintainer and move myself to Uploaders. + * Updated Standards-Version to 3.7.3: + - Always build with -g and don't check for "debug" in DEB_BUILD_OPTIONS + * Dropped minimal version from dependencies where it's not needed because + oldstable has the right versions already. + * Do not ignore errors of make realclean. + * Switch to debhelper's 6th compatibility level and adjust Build-Depends + accordingly. + * Updated FSF address in copyright file. + * Remove empty /usr/lib/perl5 if present. + * Add a patch to fix POD documentation so that the man pages contain proper + whatis entries. Use quilt to apply it. Thus add quilt to Build-Depends. + + [ gregor herrmann ] + * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser + field (source stanza). Removed: XS-Vcs-Svn fields. + * Add Homepage field to debian/control, too. + * debian/watch: use dist-based URL; work around missing . in current + upstream version number. + + -- Raphael Hertzog Sun, 03 Feb 2008 21:36:50 +0100 + +libxml-mini-perl (1.2.8-3) unstable; urgency=low + + * Include patches from Marc Laue for better + conformance with the XML norm. + Closes: #335841, #335846 + + -- Raphael Hertzog Thu, 27 Oct 2005 21:40:58 +0200 + +libxml-mini-perl (1.2.8-2) unstable; urgency=low + + * Include patch from Eric Bollengier to handle + better parsing of empty attributes or attributes containing "=". + Closes: #278669 + * Fixed myself the bad parsing when nested nodes had leading text in front + of them. Closes: #292987 + + -- Raphael Hertzog Wed, 4 May 2005 17:42:50 +0200 + +libxml-mini-perl (1.2.8-1) unstable; urgency=low + + * Initial Release. + + -- Raphael Hertzog Mon, 9 Jun 2003 13:22:47 +0000 + --- libxml-mini-perl-1.38.orig/debian/compat +++ libxml-mini-perl-1.38/debian/compat @@ -0,0 +1 @@ +6 --- libxml-mini-perl-1.38.orig/debian/patches/pod-fixes.diff +++ libxml-mini-perl-1.38/debian/patches/pod-fixes.diff @@ -0,0 +1,76 @@ +Description: Enhance POD documentation to have proper whatis entries + Without those changes the generated manual pages can't be properly + indexed by man-db as they lack a short description in the NAME section. + Those descriptions are used by the whatis utility in particular. +Author: Raphaël Hertzog + +--- a/lib/XML/Mini/Element/CData.pm ++++ b/lib/XML/Mini/Element/CData.pm +@@ -80,7 +80,7 @@ __END__ + + =head1 NAME + +-XML::Mini::Element::CData ++XML::Mini::Element::CData - represents CDATA blocks in XML::Mini parser + + =head1 DESCRIPTION + +--- a/lib/XML/Mini/Element/Comment.pm ++++ b/lib/XML/Mini/Element/Comment.pm +@@ -83,7 +83,7 @@ __END__ + + =head1 NAME + +-XML::Mini::Element::Comment ++XML::Mini::Element::Comment - represents comments in XML::Mini parser + + =head1 DESCRIPTION + +--- a/lib/XML/Mini/Element/DocType.pm ++++ b/lib/XML/Mini/Element/DocType.pm +@@ -77,7 +77,7 @@ __END__ + + =head1 NAME + +-XML::Mini::Element::DocType ++XML::Mini::Element::DocType - represents DocType header in XML::Mini parser + + =head1 DESCRIPTION + +--- a/lib/XML/Mini/Element/Entity.pm ++++ b/lib/XML/Mini/Element/Entity.pm +@@ -84,7 +84,7 @@ __END__ + + =head1 NAME + +-XML::Mini::Element::Entity ++XML::Mini::Element::Entity - represents XML entities in XML::Mini parser + + =head1 DESCRIPTION + +--- a/lib/XML/Mini/Element/Header.pm ++++ b/lib/XML/Mini/Element/Header.pm +@@ -91,7 +91,7 @@ __END__ + + =head1 NAME + +-XML::Mini::Element::Header ++XML::Mini::Element::Header - represents XML headers in XML::Mini parser + + =head1 DESCRIPTION + +--- a/lib/XML/Mini/Node.pm ++++ b/lib/XML/Mini/Node.pm +@@ -136,7 +136,11 @@ sub toStringNoWhiteSpaces + + __END__ + +-=head1 class XML::Mini::Node ++=head1 NAME ++ ++XML::Mini::Node - XML node for XML::Midi parser/generator ++ ++=head1 DESCRIPTION + + Nodes are used as atomic containers for numerical and text data + and act as leaves in the XML tree. --- libxml-mini-perl-1.38.orig/debian/patches/series +++ libxml-mini-perl-1.38/debian/patches/series @@ -0,0 +1,4 @@ +pod-fixes.diff +header-attributes-sorting.diff +fix-nested-nodes-parsing.diff +fix-attribute-value-parsing.diff --- libxml-mini-perl-1.38.orig/debian/patches/fix-attribute-value-parsing.diff +++ libxml-mini-perl-1.38/debian/patches/fix-attribute-value-parsing.diff @@ -0,0 +1,19 @@ +Description: Fix attribute value parsing + Without this patch it can't parse stuff like + + and +Origin: other, http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=libxml-mini.patch;att=1;bug=278669 +Bug-Debian: http://bugs.debian.org/278669 +Author: Eric Bollengier + +--- a/lib/XML/Mini/Document.pm ++++ b/lib/XML/Mini/Document.pm +@@ -837,7 +837,7 @@ sub _extractAttributesFromString + + return undef unless (defined $attrString); + my $count = 0; +- while ($attrString =~ /([^\s]+)\s*=\s*(['"])([^\2]*?)\2/g) ++ while ($attrString =~ /([^\s=]+)\s*=\s*(['"])([^\2]*?)\2/g) + { + my $attrname = $1; + my $attrval = $3; --- libxml-mini-perl-1.38.orig/debian/patches/header-attributes-sorting.diff +++ libxml-mini-perl-1.38/debian/patches/header-attributes-sorting.diff @@ -0,0 +1,74 @@ +Description: Fix XML header creation and sorting of attributes in XML headers + The patch has been updated for the version 1.38. +Origin: other, http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=fix1.patch;att=2;bug=335841 and http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=fix2.patch;att=2;bug=335846 +Bug-Debian: http://bugs.debian.org/335841 +Bug-Debian: http://bugs.debian.org/335846 +Author: Marc Laue + +--- a/lib/XML/Mini/Element/Header.pm ++++ b/lib/XML/Mini/Element/Header.pm +@@ -39,17 +39,27 @@ sub toString + + my $retString = "$spacesname() ; + +- my $attribString; ++ my $attribString = ''; + +- # make sure version is always first ++ # make sure version/encoding/standalone is always first + if (exists $self->{'_attributes'}->{'version'}) + { +- $attribString = ' version="' . $self->{'_attributes'}->{'version'} . '"'; +- delete $self->{'_attributes'}->{'version'}; ++ $attribString .= ' version="' . $self->{'_attributes'}->{'version'} . '"'; + } + ++ if (exists $self->{'_attributes'}->{'encoding'}) ++ { ++ $attribString .= ' encoding="' . $self->{'_attributes'}->{'encoding'} . '"'; ++ } ++ ++ if (exists $self->{'_attributes'}->{'standalone'}) ++ { ++ $attribString .= ' standalone="' . $self->{'_attributes'}->{'standalone'} . '"'; ++ } ++ + foreach my $atName (sort keys %{$self->{'_attributes'}}) + { ++ next if $atName =~ /^(?:version|encoding|standalone)$/; + $attribString .= qq| $atName="$self->{'_attributes'}->{$atName}"|; + } + +@@ -70,11 +80,29 @@ sub toStringNoWhiteSpaces + { + my $self = shift; + +- my $retString = 'name(); +- my $attribString; ++ my $retString = 'name(); ++ my $attribString = ''; ++ ++ # make sure version/encoding/standalone is always first ++ if (exists $self->{'_attributes'}->{'version'}) ++ { ++ $attribString .= ' version="' . $self->{'_attributes'}->{'version'} . '"'; ++ } ++ ++ if (exists $self->{'_attributes'}->{'encoding'}) ++ { ++ $attribString .= ' encoding="' . $self->{'_attributes'}->{'encoding'} . '"'; ++ } ++ ++ if (exists $self->{'_attributes'}->{'standalone'}) ++ { ++ $attribString .= ' standalone="' . $self->{'_attributes'}->{'standalone'} . '"'; ++ } ++ + foreach my $atName (sort keys %{$self->{'_attributes'}}) + { +- $attribString .= qq|$atName="$self->{'_attributes'}->{$atName}" |; ++ next if $atName =~ /^(?:version|encoding|standalone)$/; ++ $attribString .= qq| $atName="$self->{'_attributes'}->{$atName}"|; + } + if (defined $attribString && $attribString =~ m|\S|) + { --- libxml-mini-perl-1.38.orig/debian/patches/fix-nested-nodes-parsing.diff +++ libxml-mini-perl-1.38/debian/patches/fix-nested-nodes-parsing.diff @@ -0,0 +1,18 @@ +Description: Fix nested node parsing +Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=292987#8 +Bug-Debian: http://bugs.debian.org/292987 +Author: Raphaël Hertzog + +--- a/lib/XML/Mini/Document.pm ++++ b/lib/XML/Mini/Document.pm +@@ -532,7 +532,9 @@ sub fromSubStringBT { + } else { + + $XMLString =~ s/>\s*\n/>/gsm; +- if ($XMLString =~ m/^\s*<\s*([^\s>]+)([^>]*>).*<\s*\/\1\s*>/osm) ++ # Removed the "m" switch here otherwise having text lines ++ # before the first tag was causing an infinite loop ++ if ($XMLString =~ m/^\s*<\s*([^\s>]+)([^>]*>).*<\s*\/\1\s*>/os) + { + # starts with a normal ... but has some ?? in it +