diff --git a/XML-DOM-1.44.tar.gz b/XML-DOM-1.44.tar.gz deleted file mode 100644 index ba962b4..0000000 --- a/XML-DOM-1.44.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f6af32c74c84b3b173eca9baac521a0f9b030c9a0395fcafd4235a84d8ad0ae4 -size 117024 diff --git a/XML-DOM-1.45.tar.gz b/XML-DOM-1.45.tar.gz new file mode 100644 index 0000000..39d0045 --- /dev/null +++ b/XML-DOM-1.45.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bed14e6ba8d970345946927b19faa1282b26ce1c2cc1d2324090a32a417478cb +size 116855 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..9b7ec50 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,23 @@ +--- +#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 diff --git a/perl-XML-DOM.changes b/perl-XML-DOM.changes index 0c50423..fff114b 100644 --- a/perl-XML-DOM.changes +++ b/perl-XML-DOM.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Wed Aug 19 09:51:00 UTC 2015 - coolo@suse.com + +- 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 ) + ------------------------------------------------------------------- Fri Nov 18 11:10:44 UTC 2011 - coolo@suse.com diff --git a/perl-XML-DOM.spec b/perl-XML-DOM.spec index 42116d3..3932e9c 100644 --- a/perl-XML-DOM.spec +++ b/perl-XML-DOM.spec @@ -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 +Summary: Perl Module for Building Dom Level 1 Compliant Document Structures +License: CHECK(GPL-1.0+ or Artistic-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(LWP::UserAgent) 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 - Clark Cooper +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 declarations), +AttlistDecl (for declarations), XMLDecl (for +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 @@ Authors: %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