Accepting request 1184364 from devel:languages:perl:autoupdate

- Remove fix-05_empty.patch, fixed upstream
- updated to 0.280.0 (0.28)
   see /usr/share/doc/packages/perl-HTML-TreeBuilder-LibXML/Changes
  0.28 2024-06-20T08:48:55Z
  0.28 2024-06-20T08:17:27Z
      - Same code as 0.27 - republishing to force CPAN reindexing
  0.27 2024-01-09T06:19:12Z
      - don't have the parser string blanks by default #15
        https://github.com/tokuhirom/HTML-TreeBuilder-LibXML/pull/15
      - fallback to toString() when toStringC14N(1) gives an empty string #17
        https://github.com/tokuhirom/HTML-TreeBuilder-LibXML/pull/17

OBS-URL: https://build.opensuse.org/request/show/1184364
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-TreeBuilder-LibXML?expand=0&rev=7
This commit is contained in:
2024-07-02 12:51:22 +00:00
committed by Git OBS Bridge
parent 312527d39e
commit 45cf241ddf
6 changed files with 34 additions and 35 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6df31adef909b78853549289ad30cdc766264b0e330d9d8dcfc46c4c01c29573
size 22322

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:057773f848bf08cff672ca3837c1932f868a63bd6d80a483ab70ca61869df3b4
size 22728

View File

@@ -4,8 +4,7 @@
#sources:
# - source1
# - source2
patches:
fix-05_empty.patch: -p1 PATCH-FIX-UPSTREAM fix 05_empty.t https://github.com/tokuhirom/HTML-TreeBuilder-LibXML/pull/17
#patches:
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++

View File

@@ -1,24 +0,0 @@
From d74d1f186b2e2c6334a78b895b0ea811a16617a4 Mon Sep 17 00:00:00 2001
From: Emmanuel Seyman <emmanuel@seyman.fr>
Date: Mon, 14 Jun 2021 21:12:07 +0200
Subject: [PATCH] fallback to toString() when toStringC14N(1) gives an empty
string
---
lib/HTML/TreeBuilder/LibXML/Node.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/HTML/TreeBuilder/LibXML/Node.pm b/lib/HTML/TreeBuilder/LibXML/Node.pm
index f3b4e81..b710dda 100644
--- a/lib/HTML/TreeBuilder/LibXML/Node.pm
+++ b/lib/HTML/TreeBuilder/LibXML/Node.pm
@@ -74,7 +74,8 @@ sub as_HTML {
{
local $@; # protect existing $@
my $output = eval { $_[0]->{node}->toStringC14N(1) };
- return $@ ? $_[0]->{node}->toString : $output;
+ return $_[0]->{node}->toString if ($@ or $output eq '');
+ return $output;
}
}

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Mon Jul 1 19:07:31 UTC 2024 - Tina Müller <tina.mueller@suse.com>
- Remove fix-05_empty.patch, fixed upstream
-------------------------------------------------------------------
Sun Jun 23 16:20:31 UTC 2024 - Tina Müller <tina.mueller@suse.com>
- updated to 0.280.0 (0.28)
see /usr/share/doc/packages/perl-HTML-TreeBuilder-LibXML/Changes
0.28 2024-06-20T08:48:55Z
0.28 2024-06-20T08:17:27Z
- Same code as 0.27 - republishing to force CPAN reindexing
0.27 2024-01-09T06:19:12Z
- don't have the parser string blanks by default #15
https://github.com/tokuhirom/HTML-TreeBuilder-LibXML/pull/15
- fallback to toString() when toStringC14N(1) gives an empty string #17
https://github.com/tokuhirom/HTML-TreeBuilder-LibXML/pull/17
-------------------------------------------------------------------
Wed Aug 9 12:49:16 UTC 2023 - Tina Müller <tina.mueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-HTML-TreeBuilder-LibXML
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,20 +18,21 @@
%define cpan_name HTML-TreeBuilder-LibXML
Name: perl-HTML-TreeBuilder-LibXML
Version: 0.26
Version: 0.280.0
Release: 0
# 0.28 -> normalize -> 0.280.0
%define cpan_version 0.28
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: HTML::TreeBuilder and XPath compatible interface with libxml
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/T/TO/TOKUHIROM/%{cpan_name}-%{version}.tar.gz
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAVECROSS/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
# PATCH-FIX-UPSTREAM fix 05_empty.t https://github.com/tokuhirom/HTML-TreeBuilder-LibXML/pull/17
Patch0: fix-05_empty.patch
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(HTML::TreeBuilder::XPath) >= 0.14
BuildRequires: perl(LWP::UserAgent) >= 6
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Build::Tiny) >= 0.035
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More) >= 0.98
@@ -41,6 +42,9 @@ Requires: perl(HTML::TreeBuilder::XPath) >= 0.14
Requires: perl(LWP::UserAgent) >= 6
Requires: perl(URI)
Requires: perl(XML::LibXML) >= 1.7
Provides: perl(HTML::TreeBuilder::LibXML) = %{version}
Provides: perl(HTML::TreeBuilder::LibXML::Node)
%undefine __perllib_provides
%{perl_requires}
%description
@@ -54,7 +58,7 @@ This module doesn't implement all of HTML::TreeBuilder and HTML::Element
APIs, but enough methods are defined so modules like Web::Scraper work.
%prep
%autosetup -n %{cpan_name}-%{version} -p1
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Build.PL --installdirs=vendor