Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:perl:CPAN-H
perl-HTML-Object
perl-HTML-Object.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-HTML-Object.spec of Package perl-HTML-Object
# # spec file for package perl-HTML-Object # # 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-Object Name: perl-HTML-Object Version: 0.5.0 Release: 0 License: Artistic-1.0 OR GPL-1.0-or-later Summary: HTML Parser, Modifier and Query Interface URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/J/JD/JDEGUEST/%{cpan_name}-v%{version}.tar.gz BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(CSS::Object) >= v0.1.5 BuildRequires: perl(Data::UUID) >= 1.226 BuildRequires: perl(DateTime) >= 1.55 BuildRequires: perl(DateTime::Format::Strptime) >= 1.79 BuildRequires: perl(Devel::Confess) >= 0.009004 BuildRequires: perl(Digest::MD5) >= 2.58 BuildRequires: perl(Encode) >= 3.08 BuildRequires: perl(Exporter) >= 5.74 BuildRequires: perl(File::Spec) >= 3.78 BuildRequires: perl(Filter::Util::Call) >= 1.64 BuildRequires: perl(HTML::Entities) >= 3.76 BuildRequires: perl(HTML::Parser) >= 3.82 BuildRequires: perl(HTML::Selector::XPath) >= 0.28 BuildRequires: perl(JSON) >= 4.10 BuildRequires: perl(List::Util) >= 1.56 BuildRequires: perl(Module::Generic) >= v0.37.0 BuildRequires: perl(Promise::Me) >= v0.4.11 BuildRequires: perl(Scalar::Util) >= 1.60 BuildRequires: perl(Test::More) >= 1.302162 BuildRequires: perl(Test::Pod) >= 1.52 BuildRequires: perl(Time::HiRes) >= 1.9764 BuildRequires: perl(URI) >= 5.28 BuildRequires: perl(Want) >= 0.29 BuildRequires: perl(constant) >= 1.33 BuildRequires: perl(curry) >= 1.001000 BuildRequires: perl(lib) >= 0.65 BuildRequires: perl(overload) >= 1.30 BuildRequires: perl(parent) Requires: perl(CSS::Object) >= v0.1.5 Requires: perl(Data::UUID) >= 1.226 Requires: perl(DateTime::Format::Strptime) >= 1.79 Requires: perl(Devel::Confess) >= 0.009004 Requires: perl(Digest::MD5) >= 2.58 Requires: perl(Encode) >= 3.08 Requires: perl(Exporter) >= 5.74 Requires: perl(Filter::Util::Call) >= 1.64 Requires: perl(HTML::Parser) >= 3.82 Requires: perl(HTML::Selector::XPath) >= 0.28 Requires: perl(JSON) >= 4.10 Requires: perl(List::Util) >= 1.56 Requires: perl(Module::Generic) >= v0.37.0 Requires: perl(Promise::Me) >= v0.4.11 Requires: perl(Scalar::Util) >= 1.60 Requires: perl(Time::HiRes) >= 1.9764 Requires: perl(URI) >= 5.28 Requires: perl(Want) >= 0.29 Requires: perl(constant) >= 1.33 Requires: perl(curry) >= 1.001000 Requires: perl(overload) >= 1.30 Requires: perl(parent) %{perl_requires} %description This module is yet another HTML parser, manipulation and query interface, but probably the most comprehensive one. It uses the C parser from HTML::Parser and has the unique particularity that it does not try to decode the entire html document tree only to re-encode it when printing out its data as string like so many other html parsers out there do. Instead, it modifies only the parts required. The rest is returned exactly as it was found in the HTML. This is faster and safer. This module contains 144 modules to closely implement the HTML standard as documented on at https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API. It uses an external json data dictionary file of html tags ('html_tags_dict.json'). There are 3 ways to manipulate and query the html data: * 1. HTML::Object::Element This is lightweight and simple * 2. HTML::Object::DOM This is an alternative HTML parser also based on HTML::Parser, and that implements fully the Web API with DOM (Data Object Model), so you can query the HTML with perl equivalent to JavaScript methods of the Web API. It has been designed to be strictly identical to the Web API. * 3. HTML::Object::XQuery This interface provides a jQuery like API and requires the use of HTML::Object::DOM. However, this is not designed to be a perl implementation of JavaScript, but rather a perl implementation of DOM manipulation methods found in jQuery. Note that this interface does not enforce HTML standard. It is up to you the developer to decide what value to use and where the HTML elements should go in the HTML tree and what to do with it. %prep %autosetup -n %{cpan_name}-v%{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 CONTRIBUTING.md README README.md %license LICENSE %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor