commit 6b65a6bf94ab8b1ed470ad32f07193d1015e0ef940b00732e05b0ba7052047ac Author: Dirk Stoecker Date: Tue Nov 19 13:37:47 2019 +0000 Accepting request 749481 from home:pmonrealgonzalez:branches:devel:languages:perl:CPAN-M OBS-URL: https://build.opensuse.org/request/show/749481 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Mojo-DOM58?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Mojo-DOM58-2.000.tar.gz b/Mojo-DOM58-2.000.tar.gz new file mode 100644 index 0000000..59d7a3d --- /dev/null +++ b/Mojo-DOM58-2.000.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:864c6a3571fb4986a9ae0af0f2c840acb102f1f73a1aaf027b06b42b8d045ef3 +size 75577 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..b88e3d6 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,20 @@ +--- +#description_paragraphs: 1 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: - +#./Build build flags=%{?_smp_mflags} --myflag diff --git a/perl-Mojo-DOM58.changes b/perl-Mojo-DOM58.changes new file mode 100644 index 0000000..80397a5 --- /dev/null +++ b/perl-Mojo-DOM58.changes @@ -0,0 +1,52 @@ +------------------------------------------------------------------- +Tue Nov 19 10:03:41 UTC 2019 - Pedro Monreal Gonzalez + +- Add cpanspec.yml file + +------------------------------------------------------------------- +Mon Nov 18 14:32:22 UTC 2019 - Pedro Monreal Gonzalez + +- Initial packaging + * 2.000 2018-12-17 20:49:49 EST + - Fixed warnings in collection uniq method when collection contains undefined + values. (from Mojolicious 7.75) + - Added support for namespace selectors like "ns|*". (from Mojolicious 7.77) + - Added support for hyphen-separated list attribute selectors like + "[hreflang|=en]". (from Mojolicious 7.77) + - Added support for :link and :visited pseudo-classes. (from Mojolicious 7.77) + - Improved performance of all DOM manipulation methods significantly when + reusing Mojo::DOM58 objects. (from Mojolicious 7.78) + - Added new_tag method. (from Mojolicious 7.78) + - Added tag_to_html function. (from Mojolicious 7.78) + - Added selector method. (from Mojolicious 7.79) + - Improved HTML5.2 compliance. (from Mojolicious 8.02) + * 1.005 2018-02-06 14:28:11 EST + - Improved HTML Living Standard compliance (from Mojolicious 7.60) + * 1.004 2017-11-11 16:46:13 EST + - Added with_roles method to Mojo::DOM58 and collection objects to support + applying roles with Role::Tiny. (from Mojolicious 7.43) + * 1.003 2017-07-20 02:44:32 EDT + - Added EXPERIMENTAL support for :matches pseudo-class and :not pseudo-class + with compound selectors. (from Mojolicious 7.33) + - Fixed a few form element value extraction bugs. (from Mojolicious 7.33) + - Performance improvements (from Mojolicious 7.34) + * 1.002 2017-04-01 16:11:40 EDT + - Added html_attr_unescape function to Mojo::DOM58::Entities. (from + Mojolicious 7.29) + - Fixed unescaping of HTML5 attribute values. (from Mojolicious 7.29) + * 1.001 2016-11-23 16:17:25 EST + - Fix bug in Mojo::DOM58::Entities where the DATA handle would be mentioned + in error messages. (from Mojolicious 7.03) + * 1.000 2016-08-10 21:57:48 EDT + - (INCOMPATIBLE CHANGE) Removed support for smart whitespace trimming from + all_text and text methods, and fix whitespace bugs (from Mojolicious 7.0) + - Fixed CSS selector for value-less attributes (from Mojolicious 7.0) + * 0.999 2016-08-01 04:24:01 EDT (TRIAL RELEASE) + - (INCOMPATIBLE CHANGE) Removed support for smart whitespace trimming from + all_text and text methods, and fix whitespace bugs (from Mojolicious 7.0) + - Fixed CSS selector for value-less attributes (from Mojolicious 7.0) + * 0.002 2016-06-14 01:28:10 EDT + - Added recognition of element (from Mojolicious 6.59) + - Recognize legacy HTML entities without semicolons again (from Mojolicious 6.64) + * 0.001 2016-03-27 16:12:42 EDT + - First release diff --git a/perl-Mojo-DOM58.spec b/perl-Mojo-DOM58.spec new file mode 100644 index 0000000..62ad8a2 --- /dev/null +++ b/perl-Mojo-DOM58.spec @@ -0,0 +1,63 @@ +# +# spec file for package perl-Mojo-DOM58 +# +# Copyright (c) 2019 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/ +# + + +Name: perl-Mojo-DOM58 +Version: 2.000 +Release: 0 +%define cpan_name Mojo-DOM58 +Summary: Minimalistic HTML/XML DOM parser with CSS selectors +License: Artistic-2.0 +Group: Development/Libraries/Perl +Url: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/D/DB/DBOOK/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(JSON::PP) +BuildRequires: perl(Test::More) >= 0.88 +%{perl_requires} + +%description +Mojo::DOM58 is a minimalistic and relaxed pure-perl HTML/XML DOM parser +based on Mojo::DOM. It supports the at https://html.spec.whatwg.org/ and at +http://www.w3.org/TR/xml/, and matching based on at +http://www.w3.org/TR/selectors/. It will even try to interpret broken HTML +and XML, so you should not use it for validation. + +%prep +%setup -q -n %{cpan_name}-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%check +make test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes CONTRIBUTING.md examples README +%license LICENSE + +%changelog