forked from pool/perl-XML-Parser
update
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Parser?expand=0&rev=29
This commit is contained in:
committed by
Git OBS Bridge
parent
6a84adfb51
commit
c687b2885a
BIN
XML-Parser-2.43.tar.gz
(Stored with Git LFS)
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
BIN
XML-Parser-2.44.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@@ -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
|
Thu Dec 25 13:10:06 UTC 2014 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-XML-Parser
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,53 +17,49 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: perl-XML-Parser
|
Name: perl-XML-Parser
|
||||||
|
Version: 2.44
|
||||||
|
Release: 0
|
||||||
%define cpan_name XML-Parser
|
%define cpan_name XML-Parser
|
||||||
Summary: A perl module for parsing XML documents
|
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
|
Group: Development/Libraries/Perl
|
||||||
Version: 2.43
|
Url: http://search.cpan.org/dist/XML-Parser/
|
||||||
Release: 0
|
Source: http://www.cpan.org/authors/id/T/TO/TODDR/%{cpan_name}-%{version}.tar.gz
|
||||||
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
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{perl_requires}
|
|
||||||
BuildRequires: libexpat-devel
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
Provides: p_xmlpar
|
BuildRequires: perl(LWP::UserAgent)
|
||||||
Obsoletes: p_xmlpar
|
Requires: perl(LWP::UserAgent)
|
||||||
|
%{perl_requires}
|
||||||
|
# MANUAL
|
||||||
|
BuildRequires: libexpat-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This module provides ways to parse XML documents. It is built on top of
|
This module provides ways to parse XML documents. It is built on top of the
|
||||||
XML::Parser::Expat, which is a lower level interface to James Clark's expat
|
XML::Parser::Expat manpage, which is a lower level interface to James
|
||||||
library. Each call to one of the parsing methods creates a new instance of
|
Clark's expat library. Each call to one of the parsing methods creates a
|
||||||
XML::Parser::Expat which is then used to parse the document. Expat options may
|
new instance of XML::Parser::Expat which is then used to parse the
|
||||||
be provided when the XML::Parser object is created. These options are then
|
document. Expat options may be provided when the XML::Parser object is
|
||||||
passed on to the Expat object on each parse call. They can also be given as
|
created. These options are then passed on to the Expat object on each parse
|
||||||
extra arguments to the parse methods, in which case they override options
|
call. They can also be given as extra arguments to the parse methods, in
|
||||||
given at XML::Parser creation time.
|
which case they override options given at XML::Parser creation time.
|
||||||
|
|
||||||
The behavior of the parser is controlled either by "Style" and/or "Handlers"
|
The behavior of the parser is controlled either by 'the /STYLES manpage'
|
||||||
options, or by "setHandlers" method. These all provide mechanisms for
|
and/or 'the /HANDLERS manpage' options, or by the /setHandlers manpage
|
||||||
XML::Parser to set the handlers needed by XML::Parser::Expat. If neither
|
method. These all provide mechanisms for XML::Parser to set the handlers
|
||||||
Style nor Handlers are specified, then parsing just checks the document
|
needed by XML::Parser::Expat. If neither 'Style' nor 'Handlers' are
|
||||||
for being well-formed.
|
specified, then parsing just checks the document for being well-formed.
|
||||||
|
|
||||||
When underlying handlers get called, they receive as their first parameter
|
When underlying handlers get called, they receive as their first parameter
|
||||||
the Expat object, not the Parser object.
|
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.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n XML-Parser-%{version} -q
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
%patch
|
find . -type f -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||||
%{__make}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__make} test
|
%{__make} test
|
||||||
@@ -74,7 +70,7 @@ CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
|
|||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(0644,root,root,0755)
|
%defattr(-,root,root,755)
|
||||||
%doc Changes README samples
|
%doc Changes Expat Parser README samples
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user