# # spec file for package perl-HTML-HTML5-Parser (Version 0.103) # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # Name: perl-HTML-HTML5-Parser Version: 0.301 Release: 1 License: GPL+ or Artistic %define cpan_name HTML-HTML5-Parser Summary: parse HTML reliably Url: https://metacpan.org/release/%{cpan_name} Group: Development/Libraries/Perl Source: https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Error) BuildRequires: perl(HTML::Encoding) >= 0.55 BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(Module::Install) BuildRequires: perl(Module::Package) BuildRequires: perl(Module::Signature) >= 0.66 BuildRequires: perl(XML::LibXML) >= 1.60 Requires: perl(Error) Requires: perl(HTML::Encoding) >= 0.55 Requires: perl(LWP::UserAgent) Requires: perl(XML::LibXML) >= 1.60 %{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 %setup -q -n %{cpan_name}-%{version} find . -type f -print0 | xargs -0 chmod 644 %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %clean %{__rm} -rf %{buildroot} %files -f %{name}.files %defattr(-,root,root,755) %doc Changes Changes.ttl Changes.xml README %changelog