From 23642b7b9864507a3ad2c59321c3e7031e970e3fed5d73bc58187d1da684d4bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 26 Feb 2025 14:04:47 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main perl-XML-Twig revision 6e3d1269ecc95682385c30022dde1c0c --- XML-Twig-3.52.tar.gz | 3 --- XML-Twig-3.53.tar.gz | 3 +++ perl-XML-Twig-CVE-2016-9180.patch | 4 ++-- perl-XML-Twig.changes | 28 +++++++++++++++++++++++++++ perl-XML-Twig.spec | 32 +++++++++++++++++++------------ 5 files changed, 53 insertions(+), 17 deletions(-) delete mode 100644 XML-Twig-3.52.tar.gz create mode 100644 XML-Twig-3.53.tar.gz diff --git a/XML-Twig-3.52.tar.gz b/XML-Twig-3.52.tar.gz deleted file mode 100644 index 1f32769..0000000 --- a/XML-Twig-3.52.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fef75826c24f2b877d0a0d2645212fc4fb9756ed4d2711614ac15c497e8680ad -size 407769 diff --git a/XML-Twig-3.53.tar.gz b/XML-Twig-3.53.tar.gz new file mode 100644 index 0000000..c1eacfc --- /dev/null +++ b/XML-Twig-3.53.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26da54a922c93cf2a2708209e6487c8897d46004c60c38692b0b94268b51ef37 +size 406507 diff --git a/perl-XML-Twig-CVE-2016-9180.patch b/perl-XML-Twig-CVE-2016-9180.patch index 0e752e6..f866d03 100644 --- a/perl-XML-Twig-CVE-2016-9180.patch +++ b/perl-XML-Twig-CVE-2016-9180.patch @@ -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 => }). Yes, this is a bit of a hack, but it's useful in some - cases. + cases. +B: setting expand_external_ents to 0 or -1 currently doesn't work +as expected; cf. L. diff --git a/perl-XML-Twig.changes b/perl-XML-Twig.changes index f3b38b3..ad01c8e 100644 --- a/perl-XML-Twig.changes +++ b/perl-XML-Twig.changes @@ -1,3 +1,31 @@ +------------------------------------------------------------------- +Thu Jan 16 15:51:17 UTC 2025 - Dominique Leuenberger + +- 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 + +- Update perl-XML-Twig-CVE-2016-9180.patch + +------------------------------------------------------------------- +Sat Dec 14 05:34:55 UTC 2024 - Tina Müller + +- 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 diff --git a/perl-XML-Twig.spec b/perl-XML-Twig.spec index a0e2752..5f66c3e 100644 --- a/perl-XML-Twig.spec +++ b/perl-XML-Twig.spec @@ -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