8
0

Accepting request 733381 from devel:languages:perl:autoupdate

- Fix syntax for patch in cpanspec.yml
- updated to 2.46
   see /usr/share/doc/packages/perl-XML-Parser/Changes

OBS-URL: https://build.opensuse.org/request/show/733381
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Parser?expand=0&rev=35
This commit is contained in:
2019-09-26 09:45:17 +00:00
committed by Git OBS Bridge
parent e577712fb8
commit 7b4a7f29a9
5 changed files with 40 additions and 26 deletions

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

Binary file not shown.

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

Binary file not shown.

View File

@@ -8,7 +8,9 @@
# - source1 # - source1
# - source2 # - source2
patches: patches:
XML-Parser-2.40.diff XML-Parser-2.40.diff:
# foo.patch: -p1
# bar.patch:
preamble: |- preamble: |-
BuildRequires: libexpat-devel BuildRequires: libexpat-devel
post_prep: |- post_prep: |-

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Sep 26 09:30:17 UTC 2019 - Tina Mueller <tina.mueller@suse.com>
- Fix syntax for patch in cpanspec.yml
-------------------------------------------------------------------
Thu Sep 26 09:30:00 UTC 2019 - Tina Mueller <tina.mueller@suse.com>
- updated to 2.46
see /usr/share/doc/packages/perl-XML-Parser/Changes
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Aug 21 17:37:23 UTC 2019 - Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com> Wed Aug 21 17:37:23 UTC 2019 - Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com>

View File

@@ -16,49 +16,50 @@
# #
%define cpan_name XML-Parser
Name: perl-XML-Parser Name: perl-XML-Parser
Version: 2.44 Version: 2.46
Release: 0 Release: 0
Summary: A perl module for parsing XML documents %define cpan_name XML-Parser
Summary: Perl module for parsing XML documents
License: Artistic-1.0 OR GPL-1.0-or-later License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
URL: https://metacpan.org/release/%{cpan_name} Url: https://metacpan.org/release/%{cpan_name}
Source: https://cpan.metacpan.org/authors/id/T/TO/TODDR/%{cpan_name}-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
Patch0: XML-Parser-2.40.diff Patch0: XML-Parser-2.40.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
%{perl_requires}
BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(LWP::UserAgent)
Requires: perl(LWP::UserAgent) Requires: perl(LWP::UserAgent)
%{perl_requires}
# MANUAL BEGIN # MANUAL BEGIN
BuildRequires: libexpat-devel BuildRequires: libexpat-devel
# MANUAL END # MANUAL END
%description %description
This module provides ways to parse XML documents. It is built on top of the This module provides ways to parse XML documents. It is built on top of
XML::Parser::Expat manpage, which is a lower level interface to James XML::Parser::Expat, which is a lower level interface to James Clark's expat
Clark's expat library. Each call to one of the parsing methods creates a library. Each call to one of the parsing methods creates a new instance of
new instance of XML::Parser::Expat which is then used to parse the XML::Parser::Expat which is then used to parse the document. Expat options
document. Expat options may be provided when the XML::Parser object is may be provided when the XML::Parser object is created. These options are
created. These options are then passed on to the Expat object on each parse then passed on to the Expat object on each parse call. They can also be
call. They can also be given as extra arguments to the parse methods, in given as extra arguments to the parse methods, in which case they override
which case they override options given at XML::Parser creation time. options given at XML::Parser creation time.
The behavior of the parser is controlled either by 'the /STYLES manpage' The behavior of the parser is controlled either by 'STYLES' and/or
and/or 'the /HANDLERS manpage' options, or by the /setHandlers manpage 'HANDLERS' options, or by setHandlers method. These all provide mechanisms
method. These all provide mechanisms for XML::Parser to set the handlers for XML::Parser to set the handlers needed by XML::Parser::Expat. If
needed by XML::Parser::Expat. If neither 'Style' nor 'Handlers' are neither 'Style' nor 'Handlers' are specified, then parsing just checks the
specified, then parsing just checks the document for being well-formed. 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.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
%patch0
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644 find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%patch0
# MANUAL BEGIN # MANUAL BEGIN
chmod 644 samples/{canonical,xml*} chmod 644 samples/{canonical,xml*}
# MANUAL END # MANUAL END
@@ -68,7 +69,7 @@ perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags} make %{?_smp_mflags}
%check %check
make %{?_smp_mflags} test make test
%install %install
%perl_make_install %perl_make_install
@@ -77,6 +78,6 @@ make %{?_smp_mflags} test
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755) %defattr(-,root,root,755)
%doc Changes README samples/ %doc Changes README samples
%changelog %changelog