debian/0000755000000000000000000000000012262457760007201 5ustar debian/compat0000644000000000000000000000000211641632267010374 0ustar 8 debian/docs0000644000000000000000000000000711641632267010046 0ustar README debian/xml-twig-tools.docs0000644000000000000000000000000711641636672012757 0ustar README debian/libxml-twig-perl.install0000644000000000000000000000004711641635275013770 0ustar usr/share/man/man3 usr/share/perl5/XML debian/watch0000644000000000000000000000042411641632345010224 0ustar version=3 opts="uversionmangle=s/^v(\d)/$1/;s/^\.(\d)/0.$1/" \ http://search.cpan.org/dist/XML-Twig/ \ .*/XML-Twig-(v?[\d\._]+(?:a|b|b\d+|RC\d+)?).(?:tar\.gz|tgz|tar\.bz2|zip|pm\.gz|jar|shar\.gz|shar\.Z) # generated with: # watchupstream --noextract --export libxml-twig-perl debian/copyright0000644000000000000000000000522311641633062011125 0ustar This package was debianized by Ardo van Rangelrooij on Sat, 23 Oct, 1999, 14:50:11 +0200. It was maintained by Kenneth J. Pronovici until Fri, 7 Oct 2005 16:37:16 +0200 and later by Florian Ernst . It was downloaded from . Upstream Author: Michel Rodriguez Copyright and license: | Copyright (c) 1999-2010, Michel Rodriguez. All Rights Reserved. | This library is free software; you can redistribute it and/or modify | it under the same terms as Perl itself. License of Perl itself, as found here: http://packages.debian.org/changelogs/pool/main/p/perl/current/copyright | This program is free software; you can redistribute it and/or modify | it under the terms of either: | | a) the GNU General Public License as published by the Free Software | Foundation; either version 1, or (at your option) any later | version, or | | b) the "Artistic License" which comes with Perl. | | On Debian GNU/Linux systems, the complete text of the GNU General | Public License can be found in `/usr/share/common-licenses/GPL' and | the Artistic Licence in `/usr/share/common-licenses/Artistic'. The file tools/xml_spellcheck/xml_spellcheck has this copyright and license: | This program is Copyright 2003 by Michel Rodriguez | | This program is free software; you can redistribute it and/or modify | it under the terms of the Perl Artistic License or the GNU General | Public License as published by the Free Software Foundation either | version 2 of the License, or (at your option) any later version. | | This program is distributed in the hope that it will be useful, but | WITHOUT ANY WARRANTY; without even the implied warranty of MER- | CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | Public License for more details. | | If you do not have a copy of the GNU General Public License write to | the Free Software Foundation, Inc. The current address of the Free Software Foundation is: Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian systems the complete text of the GNU General Public License version 2 can be found in /usr/share/common-licenses/GPL-2. The Debian packaging is Copyright (c) 1999-2003 Ardo van Rangelrooij Copyright (c) 2003-2005 Kenneth J. Pronovici Copyright (c) 2005-2006 Florian Ernst Copyright (c) 2006-2011 Bart Martens and is licensed under the terms of the GPL version 2, see above. debian/control0000644000000000000000000000412712262355571010605 0ustar Source: libxml-twig-perl Section: perl Priority: optional Maintainer: Bart Martens Standards-Version: 3.9.5 Build-Depends-Indep: perl (>= 5.6.0-16), libxml-parser-perl, libunicode-map8-perl, libunicode-string-perl, libtie-ixhash-perl, libxml-xpathengine-perl | libxml-xpath-perl, libtest-pod-perl, libtest-pod-coverage-perl (>= 1.00), libxml-handler-yawriter-perl, libxml-sax-machines-perl, libxml-simple-perl, libyaml-perl Build-Depends: debhelper (>= 8.0.0), expat Homepage: http://www.xmltwig.org/ Package: libxml-twig-perl Section: perl Priority: optional Architecture: all Depends: ${perl:Depends}, libxml-parser-perl, ${misc:Depends} Recommends: libtext-iconv-perl, libtie-ixhash-perl, libxml-xpathengine-perl | libxml-xpath-perl, libwww-perl, libhtml-parser-perl Suggests: libunicode-map8-perl, libunicode-string-perl, xml-twig-tools Description: Perl module for processing huge XML documents in tree mode This module provides a way to process XML documents. It is built on top of XML::Parser. . The module offers a tree interface to the document, while allowing to output the parts of it that have been completely processed. . It allows minimal resource (CPU and memory) usage by building the tree only for the parts of the documents that need actual processing, through the use of the twig_roots and twig_print_outside_roots options. The finish and finish_print methods also help to increase performance. . XML::Twig tries to make simple things easy so it tries its best to takes care of a lot of the (usually) annoying (but sometimes necessary) features that come with XML and XML::Parser. Package: xml-twig-tools Section: perl Priority: optional Architecture: all Depends: ${perl:Depends}, libxml-parser-perl, libxml-twig-perl (>= 1:3.34), ${misc:Depends} Description: Command line tools for processing XML documents These tools are included: * xml_spellcheck : spellcheck XML files skipping tags * xml_merge : merge back files created by xml_split * xml_pp : XML pretty printer * xml_grep : grep XML files using XML::Twig's subset of XPath * xml_split : split big XML files debian/changelog0000644000000000000000000002726412262457403011060 0ustar libxml-twig-perl (1:3.44-1) unstable; urgency=medium * New upstream release. Closes: #720457, #721395, #694523. * debian/control: Updated Homepage. Closes: #720616. * debian/patches/series: Added. Enables patches. * debian/patches/07_691028.diff: Added. Closes: #691028. -- Bart Martens Sun, 05 Jan 2014 22:58:27 +0100 libxml-twig-perl (1:3.39-1) unstable; urgency=low * New upstream release. * Switch to dpkg-source 3.0 (quilt) format. * No longer using cdbs. Fixes debian-rules-uses-deprecated-makefile. -- Bart Martens Sat, 01 Oct 2011 17:41:39 +0200 libxml-twig-perl (1:3.37-1) unstable; urgency=low * New upstream release. * debian/patches/02_perl_path.diff: Removed. * debian/patches/05_firstlast.diff: Removed. * debian/rules: Completed clean rule. * debian/control: xml-twig-tools Depends: libxml-twig-perl (>= 1:3.34). Closes: #584569. -- Bart Martens Sun, 13 Feb 2011 10:35:13 +0000 libxml-twig-perl (1:3.34-1) unstable; urgency=low * New upstream release. * debian/patches/05_firstlast.diff: Added. Closes: #565206. * debian/patches/06_spelling.diff: Added. Fixes spelling errors. -- Bart Martens Sat, 13 Feb 2010 19:24:43 +0100 libxml-twig-perl (1:3.32-3) unstable; urgency=low * debian/control: Build-Depends: expat. Closes: #501217. * debian/copyright: Updated. * debian/watch: Updated. -- Bart Martens Sat, 02 May 2009 15:38:06 +0200 libxml-twig-perl (1:3.32-2) unstable; urgency=low * debian/control: Added libxml-xpathengine-perl to Build-Depends-Indep and Recommends as alternative for libxml-xpath-perl. Closes: #459581. -- Bart Martens Thu, 28 Aug 2008 20:39:14 +0200 libxml-twig-perl (1:3.32-1) unstable; urgency=low * New upstream release. * debian/patches/04_test_with_lwp.diff: Removed obsolete patch. * debian/control: Edited description. Closes: #427225. -- Bart Martens Sat, 17 Nov 2007 09:08:59 +0100 libxml-twig-perl (1:3.29-1) unstable; urgency=low * New upstream release. Closes: #414746, #408383. * debian/control: Added "Suggests: xml-twig-tools". Closes: #399704. * debian/patches/01_dont_ask.diff: Removed. * debian/patches/02_perl_path.diff: Updated. * debian/patches/04_test_with_lwp.diff: Added. * debian/rules: Build programs and their manpages with "Makefile.PL -y" and move them to the build directory tree of xml-twig-tools. * debian/xml-twig-tools.dirs: Added. * debian/xml-twig-tools.install: Removed. -- Bart Martens Thu, 26 Apr 2007 19:28:01 +0200 libxml-twig-perl (1:3.26-2) unstable; urgency=low * debian/*: Repackaged with cdbs. * debian/xml-twig-tools.install: Install tools/xml*/* in /usr/bin via a separate package xml-twig-tools. Closes: #398616. -- Bart Martens Tue, 14 Nov 2006 20:06:13 +0100 libxml-twig-perl (1:3.26-1) unstable; urgency=low * New upstream release. -- Bart Martens Thu, 17 Aug 2006 22:02:08 +0200 libxml-twig-perl (1:3.25-1) unstable; urgency=low * New upstream release. * debian/README.Debian-source: Removed. * debian/control: Standards version. -- Bart Martens Fri, 26 May 2006 21:02:22 +0200 libxml-twig-perl (1:3.24-1) unstable; urgency=low * New upstream release. * debian/control: Changed my e-mail address. -- Bart Martens Sat, 13 May 2006 19:16:54 +0200 libxml-twig-perl (1:3.23+d060123-1) unstable; urgency=low * New upstream version. The filename of the latest upstream stable version is still XML-Twig-3.23.tar.gz but the file has been changed on 2006-01-23. * New maintainer. Closes: #360944. * debian/rules: Completed clean rule. * debian/README.Debian-source: Added. * debian/control: Fixed homepage. * debian/watch: Adjusted. * Twig.pm, Twig.pm.slow: Fixed lintian manpage-has-errors-from-man. * debian/copyright: Updated. -- Bart Martens Sat, 8 Apr 2006 10:58:51 +0200 libxml-twig-perl (3.23+final-1) unstable; urgency=low * New upstream release (well, actually identical to 3.23+d060111, but uploading anyway for the sake of clarity) -- Florian Ernst Tue, 7 Feb 2006 12:51:33 +0100 libxml-twig-perl (3.23+d060111-1) unstable; urgency=low * New upstream development version * debian/watch: adjusted -- Florian Ernst Thu, 12 Jan 2006 10:44:45 +0100 libxml-twig-perl (3.23-1) unstable; urgency=low * New upstream release * Rename debian/*.{docs,examples} to just {docs,examples} * debian/control: + move debhelper to Build-Depends + add libtest-pod-coverage-perl, libxml-simple-perl and libyaml-perl to Build-Depends-Indep for testing purposes during build -- Florian Ernst Thu, 27 Oct 2005 11:13:47 +0200 libxml-twig-perl (3.22-1) unstable; urgency=low * New upstream release * debian/copyright, debian/watch: point to http://xmltwig.com/xmltwig/ -- Florian Ernst Sat, 8 Oct 2005 00:06:50 +0200 libxml-twig-perl (3.21-2) unstable; urgency=low * New maintainer. (Closes: #331102: ITA: libxml-twig-perl -- Perl module for processing huge XML documents in tree mode) * debian/copyright: extend note about previous and current maintainer * Minor adjustments to follow latest Perl Policy -- Florian Ernst Fri, 7 Oct 2005 16:37:16 +0200 libxml-twig-perl (3.21-1) unstable; urgency=low * New upstream release. * Bumped Standards-Version to 3.6.2 (no packaging changes). -- Kenneth J. Pronovici Sun, 14 Aug 2005 20:49:26 -0500 libxml-twig-perl (3.17-1) unstable; urgency=low * New upstream release. -- Kenneth J. Pronovici Thu, 17 Mar 2005 10:04:02 -0600 libxml-twig-perl (3.16-1) unstable; urgency=low * New upstream release. -- Kenneth J. Pronovici Sun, 13 Feb 2005 11:15:59 -0600 libxml-twig-perl (3.15-2) unstable; urgency=low * Bumped standards version to 3.6.1 (no package changes). * Removed broken Suggests entry on libweakref-perl. * Fixed comment typo in debian/rules. -- Kenneth J. Pronovici Fri, 13 Aug 2004 11:00:38 -0500 libxml-twig-perl (3.15-1) unstable; urgency=low * New upstream release. -- Kenneth J. Pronovici Mon, 5 Apr 2004 18:41:14 -0500 libxml-twig-perl (3.14-1) unstable; urgency=low * New upstream release. -- Kenneth J. Pronovici Sun, 21 Mar 2004 12:25:18 -0600 libxml-twig-perl (3.13-1) unstable; urgency=low * New upstream release. - Reworked Build-Depends-Indep so that all regression tests can run and pass - Modified Depends, Recommends and Suggests to match latest upstream README - Updated debian/copyright to include latest contact and copyright info - Added upstream URL to description in debian/control -- Kenneth J. Pronovici Mon, 2 Feb 2004 11:35:58 -0600 libxml-twig-perl (3.11-1) unstable; urgency=low * New upstream release. -- Kenneth J. Pronovici Sat, 27 Sep 2003 21:07:14 -0500 libxml-twig-perl (3.10-2) unstable; urgency=low * New maintainer. * Added debian/watch file for my own housekeeping. * Fixed minor typo in debian/control description. * Reworked debian/rules for consistency with my other Perl packages. * Removed debian/libxml-twig-perl.install along with rules rework. * Clarified need for 'dh_perl -V' in debian/rules. -- Kenneth J. Pronovici Wed, 10 Sep 2003 15:09:19 -0500 libxml-twig-perl (3.10-1) unstable; urgency=low * New upstream release - added examples * debian/control: removed obsolete (build) dependency on 'libweakref-perl' (closes: Bug#202163) * debian/rules: moved debhelper compatibility level setting to 'debian/compat' per latest debhelper best practices * debian/control: updated sections according to latest archive changes: - 'libxml-twig-perl' from 'interpreters' to 'perl' * debian/control: changed build dependency on 'debhelper' to '(>= 4.1)' * debian/control: upgraded to Debian Policy 3.6.0 (no changes) -- Ardo van Rangelrooij Fri, 22 Aug 2003 14:40:56 -0500 libxml-twig-perl (3.09-1) unstable; urgency=low * New upstream release - Added '1;' right before '__END__' in Twig.pm so 'eval "use XML::Twig"' works correctly (closes: Bug#160008) -- Ardo van Rangelrooij Sun, 3 Nov 2002 12:39:12 -0600 libxml-twig-perl (3.08-1) unstable; urgency=low * New upstream release * debian/copyright: added pointer to license (closes: Bug#157680) -- Ardo van Rangelrooij Sat, 21 Sep 2002 12:54:47 -0500 libxml-twig-perl (3.05-2) unstable; urgency=low * debian/rules: upgraded to debhelper v4 * debian/control: changed build dependency on debhelper accordingly * debian/rules: migrated from 'dh_movefiles' to 'dh_install' * debian/rules: split off 'install' target from 'binary-indep' target -- Ardo van Rangelrooij Sun, 21 Jul 2002 18:06:09 -0500 libxml-twig-perl (3.05-1) unstable; urgency=low * New upstream release -- Ardo van Rangelrooij Sun, 21 Jul 2002 12:35:20 -0500 libxml-twig-perl (3.04-1) unstable; urgency=low * New upstream release -- Ardo van Rangelrooij Sat, 27 Apr 2002 14:47:58 -0500 libxml-twig-perl (3.02-1) unstable; urgency=low * New upstream release * debian/control: added (build) dependencies on 'libweakref-perl' and 'libtext-iconv-perl' * debian/copyright: updated -- Ardo van Rangelrooij Wed, 20 Feb 2002 20:56:24 -0600 libxml-twig-perl (2.02-4) unstable; urgency=low * debian/control: upgraded to Debian Policy 3.5.5 -- Ardo van Rangelrooij Sun, 23 Dec 2001 20:51:51 -0600 libxml-twig-perl (2.02-3) unstable; urgency=low * debian/control: upgraded to Debian Policy 3.5.5 * debian/control: upgraded to Debian Perl Policy 1.20 -- Ardo van Rangelrooij Sun, 2 Sep 2001 17:56:04 -0500 libxml-twig-perl (2.02-2) unstable; urgency=low * debian/control: updated debhelper dependency to remove dh_testversion * debian/control: upgraded to Debian Policy 3.5.2 * debian/control: upgraded to Debian Perl Policy 1.17 * debian/rules: upgraded to Debian Perl Policy 1.17 -- Ardo van Rangelrooij Sun, 15 Apr 2001 19:31:06 -0500 libxml-twig-perl (2.02-1) unstable; urgency=low * New upstream release -- Ardo van Rangelrooij Wed, 17 Jan 2001 14:04:59 -0600 libxml-twig-perl (2.01-2) unstable; urgency=low * debian/control: upgraded to Debian Policy 3.2.1 * debian/rules: upgraded to debhelper v3 -- Ardo van Rangelrooij Wed, 17 Jan 2001 14:00:23 -0600 libxml-twig-perl (2.01-1) unstable; urgency=low * New upstream release -- Ardo van Rangelrooij Fri, 8 Sep 2000 12:31:01 +0200 libxml-twig-perl (2.00-1) unstable; urgency=low * New upstream release * debian/control: updated short description * debian/control: updated long description * debian/control: added missing Build-Depends * debian/copyright: updated -- Ardo van Rangelrooij Sat, 17 Jun 2000 15:19:30 +0200 libxml-twig-perl (1.8-1) unstable; urgency=low * New upstream release -- Ardo van Rangelrooij Fri, 17 Dec 1999 20:51:39 +0100 libxml-twig-perl (1.7-1) unstable; urgency=low * New upstream release * Upgraded to Debian Policy 3.1.1 -- Ardo van Rangelrooij Mon, 13 Dec 1999 20:13:19 +0100 libxml-twig-perl (1.6-1) unstable; urgency=low * Initial Release -- Ardo van Rangelrooij Sat, 23 Oct 1999 14:45:27 +0200 debian/rules0000755000000000000000000000031511641635305010251 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 %: dh $@ override_dh_clean: dh_clean rm -f t/error.log test_uri tmp Twig/XPath.pm_bak Twig.pm_bak rm -f doc_latin1.xml doc_utf8.xml tata.txt rm -f tmp_file debian/xml-twig-tools.dirs0000644000000000000000000000003311641632345012760 0ustar usr/share/man/man1 usr/bin debian/patches/0000755000000000000000000000000012262457477010635 5ustar debian/patches/06_spelling.diff0000644000000000000000000000413611641632345013602 0ustar --- ../orig/libxml-twig-perl-3.34/Twig.pm 2010-01-18 17:26:34.000000000 +0100 +++ d/Twig.pm 2010-02-13 19:38:15.000000000 +0100 @@ -11093,7 +11093,7 @@ if( $elt->{first_child} && $elt->{first_child}->passes( 'title')) -C is an other name for this method +C is another name for this method Similar methods are available for the other navigation methods: @@ -12433,7 +12433,7 @@ =item outer_xml -An other synonym for sprint +Another synonym for sprint =item xml_text @@ -13153,7 +13153,7 @@ the output for example. As it does not stick to the DOM, is also usually leads to shorter code than in XML::LibXML. -Beyond the pure features of the 2 modules, XML::LibXML seems to be prefered by +Beyond the pure features of the 2 modules, XML::LibXML seems to be preferred by "XML-purists", while XML::Twig seems to be more used by Perl Hackers who have to deal with XML. As you have noted, XML::Twig also comes with quite a lot of docs, but I am sure if you ask for help about XML::LibXML here or on Perlmonks --- ../orig/libxml-twig-perl-3.34/Twig_pm.slow 2010-01-18 17:20:18.000000000 +0100 +++ d/Twig_pm.slow 2010-02-13 20:08:27.000000000 +0100 @@ -11096,7 +11096,7 @@ if( $elt->first_child && $elt->first_child->passes( 'title')) -C is an other name for this method +C is another name for this method Similar methods are available for the other navigation methods: @@ -12436,7 +12436,7 @@ =item outer_xml -An other synonym for sprint +Another synonym for sprint =item xml_text @@ -13156,7 +13156,7 @@ the output for example. As it does not stick to the DOM, is also usually leads to shorter code than in XML::LibXML. -Beyond the pure features of the 2 modules, XML::LibXML seems to be prefered by +Beyond the pure features of the 2 modules, XML::LibXML seems to be preferred by "XML-purists", while XML::Twig seems to be more used by Perl Hackers who have to deal with XML. As you have noted, XML::Twig also comes with quite a lot of docs, but I am sure if you ask for help about XML::LibXML here or on Perlmonks debian/patches/07_691028.diff0000644000000000000000000000076712262452103012535 0ustar --- ./tools/xml_grep/xml_grepORIG 2012-05-17 12:24:59.000000000 +0200 +++ ./tools/xml_grep/xml_grep 2014-01-06 07:58:22.000000000 +0100 @@ -123,8 +123,10 @@ my $t= create_twig( %options); -if( @ARGV) - { foreach my $file (@ARGV) +my @files = @ARGV; +push @files, '-' unless @files; # fixes http://bugs.debian.org/691028 +if( @files) + { foreach my $file (@files) { $current_file= $file; if( $nb_results_per_file) { $nb_results_left_in_current_file= $nb_results_per_file; } debian/patches/03_cosmetics.diff0000644000000000000000000000764011641632345013756 0ustar --- libxml-twig-perl-3.26.orig/Twig_pm.slow +++ libxml-twig-perl-3.26/Twig_pm.slow @@ -9393,7 +9393,7 @@

text more text -->

-are kept at their original position in the text. Using ˝"print" +are kept at their original position in the text. Using "print" methods like C or C will return the comments in the text. Using C or C on the other hand will not. @@ -10033,8 +10033,8 @@ =item in_element -Returns true if NAME is equal to the name of the innermost cur‐ -rently opened element. If namespace processing is being used and +Returns true if NAME is equal to the name of the innermost +currently opened element. If namespace processing is being used and you want to check against a name that may be in a namespace, then use the generate_ns_name method to create the NAME argument. @@ -10042,14 +10042,14 @@ Returns the number of times the given name appears in the context list. If namespace processing is being used and you want to check -against a name that may be in a namespace, then use the gener‐ -ate_ns_name method to create the NAME argument. +against a name that may be in a namespace, then use the +generate_ns_name method to create the NAME argument. =item context Returns a list of element names that represent open elements, with -the last one being the innermost. Inside start and end tag han‐ -dlers, this will be the tag of the parent element. +the last one being the innermost. Inside start and end tag +handlers, this will be the tag of the parent element. =item current_line @@ -10083,8 +10083,8 @@ =item element_index -Returns an integer that is the depth-first visit order of the cur‐ -rent element. This will be zero outside of the root element. For +Returns an integer that is the depth-first visit order of the +current element. This will be zero outside of the root element. For example, this will return 1 when called from the start handler for the root element start tag. --- libxml-twig-perl-3.26.orig/Twig.pm +++ libxml-twig-perl-3.26/Twig.pm @@ -9393,7 +9393,7 @@

text more text -->

-are kept at their original position in the text. Using ˝"print" +are kept at their original position in the text. Using "print" methods like C or C will return the comments in the text. Using C or C on the other hand will not. @@ -10033,8 +10033,8 @@ =item in_element -Returns true if NAME is equal to the name of the innermost cur‐ -rently opened element. If namespace processing is being used and +Returns true if NAME is equal to the name of the innermost +currently opened element. If namespace processing is being used and you want to check against a name that may be in a namespace, then use the generate_ns_name method to create the NAME argument. @@ -10042,14 +10042,14 @@ Returns the number of times the given name appears in the context list. If namespace processing is being used and you want to check -against a name that may be in a namespace, then use the gener‐ -ate_ns_name method to create the NAME argument. +against a name that may be in a namespace, then use the +generate_ns_name method to create the NAME argument. =item context Returns a list of element names that represent open elements, with -the last one being the innermost. Inside start and end tag han‐ -dlers, this will be the tag of the parent element. +the last one being the innermost. Inside start and end tag +handlers, this will be the tag of the parent element. =item current_line @@ -10083,8 +10083,8 @@ =item element_index -Returns an integer that is the depth-first visit order of the cur‐ -rent element. This will be zero outside of the root element. For +Returns an integer that is the depth-first visit order of the +current element. This will be zero outside of the root element. For example, this will return 1 when called from the start handler for the root element start tag. debian/patches/series0000644000000000000000000000006212262457476012047 0ustar 03_cosmetics.diff 06_spelling.diff 07_691028.diff debian/xml-twig-tools.install0000644000000000000000000000003311641635672013473 0ustar usr/share/man/man1 usr/bin debian/source/0000755000000000000000000000000012262451352010470 5ustar debian/source/format0000644000000000000000000000001411641632267011704 0ustar 3.0 (quilt)