Sync from SUSE:SLFO:Main perl-XML-Twig revision 6e3d1269ecc95682385c30022dde1c0c

This commit is contained in:
Adrian Schröter 2025-02-26 14:04:47 +01:00
parent a2be79017e
commit 23642b7b98
5 changed files with 53 additions and 17 deletions

BIN
XML-Twig-3.52.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
XML-Twig-3.53.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -11,9 +11,9 @@ Last-Update: 2019-03-30
--- a/Twig_pm.slow
+++ b/Twig_pm.slow
@@ -10454,6 +10454,15 @@
@@ -10561,6 +10561,15 @@
pubid => <pubid> }). Yes, this is a bit of a hack, but it's useful in some
cases.
cases.
+B<WARNING>: setting expand_external_ents to 0 or -1 currently doesn't work
+as expected; cf. L<https://rt.cpan.org/Public/Bug/Display.html?id=118097>.

View File

@ -1,3 +1,31 @@
-------------------------------------------------------------------
Thu Jan 16 15:51:17 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
- Also provide perl(XML::Twig::XPath), as provided by the file
/usr/lib/perl5/vendor_perl/*/XML/Twig/XPath.pm.
-------------------------------------------------------------------
Fri Jan 10 17:56:14 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Update perl-XML-Twig-CVE-2016-9180.patch
-------------------------------------------------------------------
Sat Dec 14 05:34:55 UTC 2024 - Tina Müller <timueller+perl@suse.de>
- updated to 3.530.0 (3.53)
see /usr/share/doc/packages/perl-XML-Twig/Changes
3.53 - 2024-12-10 - minor maintenance release
- fixed warning from recent perl version
See RT#155759 https://rt.cpan.org/Public/Bug/Display.html?id=155759
- fixed bug with namespaced elements in navigation
- added multiclass selectors in navigation and handler triggers
(css style, eg elt.class1.class2)
- fixed bug with dots in element names confusing navigation
conditions in some cases
- fixed output when a CDATA section includes a CDATA end marker
spotted by Djibril
-------------------------------------------------------------------
Mon Mar 4 16:15:09 UTC 2024 - pgajdos@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package perl-XML-Twig
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,23 +16,31 @@
#
Name: perl-XML-Twig
Version: 3.52
Release: 0
%define cpan_name XML-Twig
Summary: Perl Module for Processing Huge Xml Documents in Tree Mode
Name: perl-XML-Twig
Version: 3.530.0
Release: 0
# 3.53 -> normalize -> 3.530.0
%define cpan_version 3.53
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Summary: XML, The Perl Way
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://www.cpan.org/authors/id/M/MI/MIROD/%{cpan_name}-%{version}.tar.gz
Source0: https://cpan.metacpan.org/authors/id/M/MI/MIROD/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Patch0: perl-XML-Twig-CVE-2016-9180.patch
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(XML::Parser) >= 2.23
Requires: perl(XML::Parser) >= 2.23
Provides: perl(XML::Twig) = %{version}
Provides: perl(XML::Twig::Elt)
Provides: perl(XML::Twig::Entity)
Provides: perl(XML::Twig::Entity_list)
Provides: perl(XML::Twig::Notation)
Provides: perl(XML::Twig::Notation_list)
Provides: perl(XML::Twig::XPath)
%undefine __perllib_provides
%{perl_requires}
# MANUAL BEGIN
BuildRequires: expat
@ -73,12 +81,13 @@ care of a lot of the (usually) annoying (but sometimes necessary) features
that come with XML and XML::Parser.
%prep
%autosetup -p1 -n %{cpan_name}-%{version}
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%autosetup -n %{cpan_name}-%{cpan_version} -p1
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%make_build
%check
make test
@ -89,7 +98,6 @@ make test
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes check_optional_modules filter_for_5.005 README speedup Twig_pm.slow
%changelog