# # spec file for package perl-HTML-HTML5-Parser # # 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 # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define cpan_name HTML-HTML5-Parser Name: perl-HTML-HTML5-Parser Version: 0.992.0 Release: 0 # 0.992 -> normalize -> 0.992.0 %define cpan_version 0.992 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Parse HTML reliably URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(HTML::HTML5::Entities) >= 0.2.0 BuildRequires: perl(HTTP::Tiny) BuildRequires: perl(IO::HTML) BuildRequires: perl(Test::Requires) BuildRequires: perl(Try::Tiny) BuildRequires: perl(URI::file) BuildRequires: perl(XML::LibXML) >= 1.94 BuildRequires: perl(XML::LibXML::Devel) Requires: perl(HTML::HTML5::Entities) >= 0.2.0 Requires: perl(HTTP::Tiny) Requires: perl(IO::HTML) Requires: perl(Try::Tiny) Requires: perl(URI::file) Requires: perl(XML::LibXML) >= 1.94 Requires: perl(XML::LibXML::Devel) Provides: perl(HTML::HTML5::Parser) = %{version} Provides: perl(HTML::HTML5::Parser::Charset::DecodeHandle) = %{version} Provides: perl(HTML::HTML5::Parser::Charset::DecodeHandle::ByteBuffer) Provides: perl(HTML::HTML5::Parser::Charset::DecodeHandle::CharString) Provides: perl(HTML::HTML5::Parser::Charset::DecodeHandle::Encode) Provides: perl(HTML::HTML5::Parser::Charset::DecodeHandle::ISO2022JP) Provides: perl(HTML::HTML5::Parser::Charset::Info) = %{version} Provides: perl(HTML::HTML5::Parser::Charset::USASCII) Provides: perl(HTML::HTML5::Parser::Charset::UnicodeChecker) = %{version} Provides: perl(HTML::HTML5::Parser::Charset::UniversalCharDet) = %{version} Provides: perl(HTML::HTML5::Parser::Charset::WebLatin1) = %{version} Provides: perl(HTML::HTML5::Parser::Charset::WebLatin5) Provides: perl(HTML::HTML5::Parser::Charset::WebThai) = %{version} Provides: perl(HTML::HTML5::Parser::Charset::WebThai::WebTIS620) Provides: perl(HTML::HTML5::Parser::Error) = %{version} Provides: perl(HTML::HTML5::Parser::TagSoupParser) = %{version} Provides: perl(HTML::HTML5::Parser::TagSoupParser::RestartParser) Provides: perl(HTML::HTML5::Parser::Tokenizer) = %{version} Provides: perl(HTML::HTML5::Parser::UA) = %{version} %undefine __perllib_provides %{perl_requires} %description This library is substantially the same as the non-CPAN module Whatpm::HTML. Changes include: * * Provides an XML::LibXML-like DOM interface. If you usually use XML::LibXML's DOM parser, this should be a drop-in solution for tag soup HTML. * * Constructs an XML::LibXML::Document as the result of parsing. * * Via bundling and modifications, removed external dependencies on non-CPAN packages. %prep %autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes COPYRIGHT CREDITS doap.ttl examples NEWS README TODO %license LICENSE %changelog