8
0
Stephan Kulow
2015-02-07 09:31:58 +00:00
committed by Git OBS Bridge
parent 6a84adfb51
commit c687b2885a
4 changed files with 42 additions and 38 deletions

BIN
XML-Parser-2.43.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
XML-Parser-2.44.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -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

View File

@@ -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