2023-08-09 13:53:27 +00:00
committed by Git OBS Bridge
parent 03fccf42d8
commit 312527d39e
4 changed files with 44 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-HTML-TreeBuilder-LibXML
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,22 +12,22 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name HTML-TreeBuilder-LibXML
Name: perl-HTML-TreeBuilder-LibXML
Version: 0.26
Release: 0
%define cpan_name HTML-TreeBuilder-LibXML
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: HTML::TreeBuilder and XPath compatible interface with libxml
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/HTML-TreeBuilder-LibXML/
Source0: http://www.cpan.org/authors/id/T/TO/TOKUHIROM/%{cpan_name}-%{version}.tar.gz
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/T/TO/TOKUHIROM/%{cpan_name}-%{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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(HTML::TreeBuilder::XPath) >= 0.14
@@ -54,10 +54,10 @@ 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
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{version} -p1
%build
%{__perl} Build.PL --installdirs=vendor
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
@@ -68,7 +68,7 @@ APIs, but enough methods are defined so modules like Web::Scraper work.
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes LICENSE README.md
%doc Changes README.md
%license LICENSE
%changelog