Hello community, here is the log from the commit of package perl-XML-DOM for openSUSE:Factory checked in at 2015-08-28 08:25:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-XML-DOM (Old) and /work/SRC/openSUSE:Factory/.perl-XML-DOM.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-XML-DOM" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-XML-DOM/perl-XML-DOM.changes 2011-11-21 12:50:20.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-XML-DOM.new/perl-XML-DOM.changes 2015-08-28 08:25:24.000000000 +0200 @@ -1,0 +2,16 @@ +Fri Aug 21 07:36:37 UTC 2015 - [email protected] + +- license update: Artistic-1.0 or GPL-1.0+ + CHECK(...) not valid + +------------------------------------------------------------------- +Wed Aug 19 09:51:00 UTC 2015 - [email protected] + +- updated to 1.45 + see /usr/share/doc/packages/perl-XML-DOM/Changes + + 1.45 (tjmather) 08/16/2015 + - Fix pod errors and a typo ( Florian Schlichting ) + - properly encode output for printToFile ( Martin Ferrari, Gregor Herrmann ) + +------------------------------------------------------------------- Old: ---- XML-DOM-1.44.tar.gz New: ---- XML-DOM-1.45.tar.gz cpanspec.yml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-XML-DOM.spec ++++++ --- /var/tmp/diff_new_pack.FcLx3t/_old 2015-08-28 08:25:25.000000000 +0200 +++ /var/tmp/diff_new_pack.FcLx3t/_new 2015-08-28 08:25:25.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-XML-DOM # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,22 +15,19 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - Name: perl-XML-DOM +Version: 1.45 +Release: 0 %define cpan_name XML-DOM -Summary: Perl module for building DOM Level 1 compliant document structures -Version: 1.44 -Release: 153 -License: Artistic-1.0 +Summary: Perl Module for Building Dom Level 1 Compliant Document Structures +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/XML-DOM/ -#Source: http://www.cpan.org/modules/by-module/XML/XML-DOM-%{version}.tar.gz -Source: %{cpan_name}-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/T/TJ/TJMATHER/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(LWP::UserAgent) @@ -41,25 +38,57 @@ Requires: perl(XML::Parser) >= 2.30 Requires: perl(XML::Parser::PerlSAX) >= 0.07 Requires: perl(XML::RegExp) -# Provides: p_xmldom XML-DOM -# Obsoletes: p_xmldom +%{perl_requires} %description This module extends the XML::Parser module by Clark Cooper. The XML::Parser module is built on top of XML::Parser::Expat, which is a lower level interface to James Clark's expat library. -Authors: --------- - Enno Derksen <[email protected]> - Clark Cooper <[email protected]> +XML::DOM::Parser is derived from XML::Parser. It parses XML strings or +files and builds a data structure that conforms to the API of the Document +Object Model as described at http://www.w3.org/TR/REC-DOM-Level-1. See the +XML::Parser manpage for other available features of the XML::DOM::Parser +class. Note that the 'Style' property should not be used (it is set +internally.) + +The XML::Parser _NoExpand_ option is more or less supported, in that it +will generate EntityReference objects whenever an entity reference is +encountered in character data. I'm not sure how useful this is. Any +comments are welcome. + +As described in the synopsis, when you create an XML::DOM::Parser object, +the parse and parsefile methods create an _XML::DOM::Document_ object from +the specified input. This Document object can then be examined, modified +and written back out to a file or converted to a string. + +When using XML::DOM with XML::Parser version 2.19 and up, setting the +XML::DOM::Parser option _KeepCDATA_ to 1 will store CDATASections in +CDATASection nodes, instead of converting them to Text nodes. Subsequent +CDATASection nodes will be merged into one. Let me know if this is a +problem. + +When using XML::Parser 2.27 and above, you can suppress expansion of +parameter entity references (e.g. %pent;) in the DTD, by setting +_ParseParamEnt_ to 1 and _ExpandParamEnt_ to 0. See /_Hidden_Nodes_ for +details. + +A Document has a tree structure consisting of _Node_ objects. A Node may +contain other nodes, depending on its type. A Document may have Element, +Text, Comment, and CDATASection nodes. Element nodes may have Attr, +Element, Text, Comment, and CDATASection nodes. The other nodes may not +have any child nodes. + +This module adds several node types that are not part of the DOM spec +(yet.) These are: ElementDecl (for <!ELEMENT ...> declarations), +AttlistDecl (for <!ATTLIST ...> declarations), XMLDecl (for <?xml ...?> +declarations) and AttDef (for attribute definitions in an AttlistDecl.) %prep %setup -q -n %{cpan_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor - %{__make} %{?_smp_mflags} %check @@ -67,18 +96,11 @@ %install %perl_make_install -# do not perl_process_packlist (noarch) -# remove .packlist file -%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch -# remove perllocal.pod file -%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib +%perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf $RPM_BUILD_ROOT - %files -f %{name}.files -%defattr(-,root,root,-) -%doc BUGS Changes FAQ.xml README XML-Parser-2.31.patch +%defattr(-,root,root,755) +%doc BUGS Changes FAQ.xml README samples XML-Parser-2.31.patch %changelog ++++++ XML-DOM-1.44.tar.gz -> XML-DOM-1.45.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-DOM-1.44/Changes new/XML-DOM-1.45/Changes --- old/XML-DOM-1.44/Changes 2005-07-26 02:22:34.000000000 +0200 +++ new/XML-DOM-1.45/Changes 2015-08-17 02:54:53.000000000 +0200 @@ -1,5 +1,9 @@ Change History for XML-DOM: +1.45 (tjmather) 08/16/2015 +- Fix pod errors and a typo ( Florian Schlichting ) +- properly encode output for printToFile ( Martin Ferrari, Gregor Herrmann ) + 1.44 (tjmather) 07/25/2005 - Only use 'use bytes' where needed (by XML::RegExp) (Gisle Aas) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-DOM-1.44/MANIFEST new/XML-DOM-1.45/MANIFEST --- old/XML-DOM-1.44/MANIFEST 2005-07-26 03:06:13.000000000 +0200 +++ new/XML-DOM-1.45/MANIFEST 2015-08-17 02:56:49.000000000 +0200 @@ -61,3 +61,4 @@ t/dom_text.t XML-Parser-2.31.patch META.yml Module meta-data (added by MakeMaker) +META.json Module JSON meta-data (added by MakeMaker) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-DOM-1.44/META.json new/XML-DOM-1.45/META.json --- old/XML-DOM-1.44/META.json 1970-01-01 01:00:00.000000000 +0100 +++ new/XML-DOM-1.45/META.json 2015-08-17 02:56:49.000000000 +0200 @@ -0,0 +1,44 @@ +{ + "abstract" : "unknown", + "author" : [ + "unknown" + ], + "dynamic_config" : 1, + "generated_by" : "ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.133380", + "license" : [ + "unknown" + ], + "meta-spec" : { + "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", + "version" : "2" + }, + "name" : "XML-DOM", + "no_index" : { + "directory" : [ + "t", + "inc" + ] + }, + "prereqs" : { + "build" : { + "requires" : { + "ExtUtils::MakeMaker" : "0" + } + }, + "configure" : { + "requires" : { + "ExtUtils::MakeMaker" : "0" + } + }, + "runtime" : { + "requires" : { + "LWP::UserAgent" : "0", + "XML::Parser" : "2.30", + "XML::Parser::PerlSAX" : "0.07", + "XML::RegExp" : "0" + } + } + }, + "release_status" : "stable", + "version" : "1.45" +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-DOM-1.44/META.yml new/XML-DOM-1.45/META.yml --- old/XML-DOM-1.44/META.yml 2005-07-26 03:06:13.000000000 +0200 +++ new/XML-DOM-1.45/META.yml 2015-08-17 02:56:49.000000000 +0200 @@ -1,14 +1,25 @@ -# http://module-build.sourceforge.net/META-spec.html -#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX# -name: XML-DOM -version: 1.44 -version_from: lib/XML/DOM.pm -installdirs: site +--- +abstract: unknown +author: + - unknown +build_requires: + ExtUtils::MakeMaker: 0 +configure_requires: + ExtUtils::MakeMaker: 0 +dynamic_config: 1 +generated_by: 'ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.133380' +license: unknown +meta-spec: + url: http://module-build.sourceforge.net/META-spec-v1.4.html + version: 1.4 +name: XML-DOM +no_index: + directory: + - t + - inc requires: - LWP::UserAgent: 0 - XML::Parser: 2.30 - XML::Parser::PerlSAX: 0.07 - XML::RegExp: 0 - -distribution_type: module -generated_by: ExtUtils::MakeMaker version 6.17 + LWP::UserAgent: 0 + XML::Parser: 2.30 + XML::Parser::PerlSAX: 0.07 + XML::RegExp: 0 +version: 1.45 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-DOM-1.44/lib/XML/DOM/DocumentType.pod new/XML-DOM-1.45/lib/XML/DOM/DocumentType.pod --- old/XML-DOM-1.44/lib/XML/DOM/DocumentType.pod 2002-02-09 03:05:19.000000000 +0100 +++ new/XML-DOM-1.45/lib/XML/DOM/DocumentType.pod 2015-08-17 02:29:55.000000000 +0200 @@ -59,8 +59,12 @@ B<Not In DOM Spec>: See XML::DOM::ignoreReadOnly to edit the DocumentType etc. +=back + =head2 Additional methods not in the DOM Spec +=over 4 + =item Creating and setting the DocumentType A new DocumentType can be created with: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-DOM-1.44/lib/XML/DOM/Element.pod new/XML-DOM-1.45/lib/XML/DOM/Element.pod --- old/XML-DOM-1.44/lib/XML/DOM/Element.pod 2000-01-31 17:53:27.000000000 +0100 +++ new/XML-DOM-1.45/lib/XML/DOM/Element.pod 2015-08-17 02:29:55.000000000 +0200 @@ -159,6 +159,8 @@ =back +=back + =head2 Additional methods not in the DOM Spec =over 4 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-DOM-1.44/lib/XML/DOM/Node.pod new/XML-DOM-1.45/lib/XML/DOM/Node.pod --- old/XML-DOM-1.44/lib/XML/DOM/Node.pod 2000-02-16 23:32:28.000000000 +0100 +++ new/XML-DOM-1.45/lib/XML/DOM/Node.pod 2015-08-17 02:29:55.000000000 +0200 @@ -347,7 +347,7 @@ =item getChildAtIndex (index) -Returns the child node at the specifed index or undef. +Returns the child node at the specified index or undef. =item addText (text) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/XML-DOM-1.44/lib/XML/DOM.pm new/XML-DOM-1.45/lib/XML/DOM.pm --- old/XML-DOM-1.44/lib/XML/DOM.pm 2005-07-26 03:04:19.000000000 +0200 +++ new/XML-DOM-1.45/lib/XML/DOM.pm 2015-08-17 02:51:13.000000000 +0200 @@ -39,7 +39,7 @@ BEGIN { require XML::Parser; - $VERSION = '1.44'; + $VERSION = '1.45'; my $needVersion = '2.28'; die "need at least XML::Parser version $needVersion (current=${XML::Parser::VERSION})" @@ -1218,7 +1218,8 @@ sub printToFile { my ($self, $fileName) = @_; - my $fh = new FileHandle ($fileName, "w") || + my $encoding = $self->getXMLDecl()->getEncoding(); + my $fh = new FileHandle ($fileName, ">:encoding($encoding)") || croak "printToFile - can't open output file $fileName"; $self->print ($fh); ++++++ cpanspec.yml ++++++ --- #description_paragraphs: 3 #no_testing: broken upstream #sources: # - source1 # - source2 #patches: # foo.patch: -p1 # bar.patch: #preamble: |- # BuildRequires: gcc-c++ #post_prep: |- # hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` # sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL #post_install: |- # sed on %{name}.files #license: SUSE-NonFree #skip_noarch: 1 #custom_build: |- #./Build build flags=%{?_smp_mflags} --myflag #custom_test: |- #startserver && make test #ignore_requires: Bizarre::Module
