diff --git a/XML-Parser-2.43.tar.gz b/XML-Parser-2.43.tar.gz deleted file mode 100644 index f71bcb8..0000000 --- a/XML-Parser-2.43.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e56ce06b516eff5335cb3b7e0bb268537c77991af1bfd86c39cebabc407f4549 -size 237304 diff --git a/XML-Parser-2.44.tar.gz b/XML-Parser-2.44.tar.gz new file mode 100644 index 0000000..85aa298 --- /dev/null +++ b/XML-Parser-2.44.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1ae9d07ee9c35326b3d9aad56eae71a6730a73a116b9fe9e8a4758b7cc033216 +size 237377 diff --git a/perl-XML-Parser.changes b/perl-XML-Parser.changes index 2e50a8c..6146b31 100644 --- a/perl-XML-Parser.changes +++ b/perl-XML-Parser.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sat Feb 7 09:29:57 UTC 2015 - coolo@suse.com + +- updated to 2.44 + - RT 99098 - Revert "Add more useful error message on parse to Expat". It breaks + XML::Twig. Calling code will need to do this if it's needed. + - RT 100959 - Add use FileHandle to t/astress.t - Make perl 5.10.0 happy. + ------------------------------------------------------------------- Thu Dec 25 13:10:06 UTC 2014 - p.drouand@gmail.com diff --git a/perl-XML-Parser.spec b/perl-XML-Parser.spec index affb5bb..db7b499 100644 --- a/perl-XML-Parser.spec +++ b/perl-XML-Parser.spec @@ -1,7 +1,7 @@ # # spec file for package perl-XML-Parser # -# Copyright (c) 2014 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 @@ -17,53 +17,49 @@ Name: perl-XML-Parser +Version: 2.44 +Release: 0 %define cpan_name XML-Parser Summary: A perl module for parsing XML documents -License: GPL-1.0+ or Artistic-1.0 +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl -Version: 2.43 -Release: 0 -Url: http://www.cpan.org/modules/by-module/XML/ -Source: http://www.cpan.org/modules/by-module/XML/%{cpan_name}-%{version}.tar.gz -Patch: %{cpan_name}-2.40.diff +Url: http://search.cpan.org/dist/XML-Parser/ +Source: http://www.cpan.org/authors/id/T/TO/TODDR/%{cpan_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} -BuildRequires: libexpat-devel BuildRequires: perl BuildRequires: perl-macros -Provides: p_xmlpar -Obsoletes: p_xmlpar +BuildRequires: perl(LWP::UserAgent) +Requires: perl(LWP::UserAgent) +%{perl_requires} +# MANUAL +BuildRequires: libexpat-devel %description -This module provides ways to parse XML documents. It is built on top of - XML::Parser::Expat, which is a lower level interface to James Clark's expat - library. Each call to one of the parsing methods creates a new instance of - XML::Parser::Expat which is then used to parse the document. Expat options may - be provided when the XML::Parser object is created. These options are then - passed on to the Expat object on each parse call. They can also be given as - extra arguments to the parse methods, in which case they override options - given at XML::Parser creation time. +This module provides ways to parse XML documents. It is built on top of the +XML::Parser::Expat manpage, which is a lower level interface to James +Clark's expat library. Each call to one of the parsing methods creates a +new instance of XML::Parser::Expat which is then used to parse the +document. Expat options may be provided when the XML::Parser object is +created. These options are then passed on to the Expat object on each parse +call. They can also be given as extra arguments to the parse methods, in +which case they override options given at XML::Parser creation time. -The behavior of the parser is controlled either by "Style" and/or "Handlers" - options, or by "setHandlers" method. These all provide mechanisms for - XML::Parser to set the handlers needed by XML::Parser::Expat. If neither - Style nor Handlers are specified, then parsing just checks the document - for being well-formed. +The behavior of the parser is controlled either by 'the /STYLES manpage' +and/or 'the /HANDLERS manpage' options, or by the /setHandlers manpage +method. These all provide mechanisms for XML::Parser to set the handlers +needed by XML::Parser::Expat. If neither 'Style' nor 'Handlers' are +specified, then parsing just checks the document for being well-formed. When underlying handlers get called, they receive as their first parameter - the Expat object, not the Parser object. - -You will find examples in -/usr/share/doc/packages/perl-XML-Parser/samples. For documentation -read the XML::Parser and XML::Parser::Expat man pages. +the _Expat_ object, not the Parser object. %prep -%setup -n XML-Parser-%{version} -q -%patch +%setup -q -n %{cpan_name}-%{version} +find . -type f -print0 | xargs -0 chmod 644 %build -CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL -%{__make} +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%{__make} %{?_smp_mflags} %check %{__make} test @@ -74,7 +70,7 @@ CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL %perl_gen_filelist %files -f %{name}.files -%defattr(0644,root,root,0755) -%doc Changes README samples +%defattr(-,root,root,755) +%doc Changes Expat Parser README samples %changelog