Accepting request 1072071 from devel:languages:perl:autoupdate

- updated to 2.11
   see /usr/share/doc/packages/perl-HTML-Strip/Changes
  2.11  Tue 14 Mar 2023 13:18:29 EET
      - fix public VSC info for MetaCPAN (RT#115740)
      - add option to emit newlines for <br> and <p> tags
      (patch by Ryan Schmidt, contributed by Jason McIntosh)
      - installation / complilation bug on macOS (RT#134342)
      (patch contributed by Lucas Kanashiro)
      - spelling correction (RT#115740)
      (patch contributed by Florian Weimer)
      - improved C99 compatibility with utf8_char_width prototype (RT#146734)
      (contributed by Gabor Szabo)
      - htmlstrip command-line tool

OBS-URL: https://build.opensuse.org/request/show/1072071
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Strip?expand=0&rev=6
This commit is contained in:
2023-03-16 08:31:10 +00:00
committed by Git OBS Bridge
parent d2b065b55d
commit 79e7b19048
4 changed files with 43 additions and 29 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2af30a61f1ecc0bea983043c8078e48380ccb0319388a74483e09aa782f1ccfa
size 15333

3
HTML-Strip-2.11.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ba5d64b044d292bd37a948e4dc931228b81b0571d28ee09d45e6de8b019d165b
size 15472

View File

@@ -1,3 +1,21 @@
-------------------------------------------------------------------
Wed Mar 15 03:08:33 UTC 2023 - Tina Müller <timueller+perl@suse.de>
- updated to 2.11
see /usr/share/doc/packages/perl-HTML-Strip/Changes
2.11 Tue 14 Mar 2023 13:18:29 EET
- fix public VSC info for MetaCPAN (RT#115740)
- add option to emit newlines for <br> and <p> tags
(patch by Ryan Schmidt, contributed by Jason McIntosh)
- installation / complilation bug on macOS (RT#134342)
(patch contributed by Lucas Kanashiro)
- spelling correction (RT#115740)
(patch contributed by Florian Weimer)
- improved C99 compatibility with utf8_char_width prototype (RT#146734)
(contributed by Gabor Szabo)
- htmlstrip command-line tool
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 5 09:22:45 UTC 2016 - coolo@suse.com Thu May 5 09:22:45 UTC 2016 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-HTML-Strip # spec file for package perl-HTML-Strip
# #
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,21 +12,19 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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/
# #
Name: perl-HTML-Strip
Version: 2.10
Release: 0
%define cpan_name HTML-Strip %define cpan_name HTML-Strip
Name: perl-HTML-Strip
Version: 2.11
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Perl extension for stripping HTML markup from text Summary: Perl extension for stripping HTML markup from text
License: Artistic-1.0 or GPL-1.0+ URL: https://metacpan.org/release/%{cpan_name}
Group: Development/Libraries/Perl Source0: https://cpan.metacpan.org/authors/id/K/KI/KILINRAX/%{cpan_name}-%{version}.tar.gz
Url: http://search.cpan.org/dist/HTML-Strip/
Source0: http://www.cpan.org/authors/id/K/KI/KILINRAX/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::Exception)
@@ -35,15 +33,15 @@ Requires: perl(Test::Exception)
%description %description
This module simply strips HTML-like markup from text rapidly and brutally. This module simply strips HTML-like markup from text rapidly and brutally.
It could easily be used to strip XML or SGML markup instead; but as It could easily be used to strip XML or SGML markup instead - but as
removing HTML is a much more common problem, this module lives in the removing HTML is a much more common problem, this module lives in the
HTML:: namespace. HTML:: namespace.
It is written in XS, and thus about five times quicker than using regular It is written in XS, and thus about five times quicker than using regular
expressions for the same task. expressions for the same task.
It does _not_ do any syntax checking (if you want that, use HTML::Parser), It does _not_ do any syntax checking. If you want that, use HTML::Parser.
instead it merely applies the following rules: Instead it merely applies the following rules:
* 1 * 1
@@ -69,28 +67,27 @@ both ' quote types " -->' would be entirely stripped.
* 2 * 2
Anything the appears within what we term _strip tags_ is stripped as well. Anything that appears between tags which we term _strip tags_ is removed.
By default, these tags are 'title', 'script', 'style' and 'applet'. By default, these tags are 'title', 'script', 'style' and 'applet'.
HTML::Strip maintains state between calls, so you can parse a document in HTML::Strip maintains state between calls, so you can parse a document in
chunks should you wish. If one chunk ends half-way through a tag, quote, chunks should you wish. If a call to 'parse()' ends half-way through a tag,
comment, or whatever; it will remember this, and expect the next call to quote or comment; the next call to 'parse()' expects its input to carry on
parse to start with the remains of said tag. from that point.
If this is not going to be the case, be sure to call $hs->eof() between If this is not the behaviour you want, you can either call 'eof()' between
calls to $hs->parse(). Alternatively, you may set 'auto_reset' to true on calls to 'parse()', or set 'auto_reset' to true (either on the constructor
the constructor or any time after with 'set_auto_reset', so that the parser or with 'set_auto_reset') so that the parser will reset after each call.
will always operate in one-shot basis (resetting after each parsed chunk).
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{version}
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags} %make_build
%check %check
%{__make} test make test
%install %install
%perl_make_install %perl_make_install
@@ -98,7 +95,6 @@ will always operate in one-shot basis (resetting after each parsed chunk).
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README %doc Changes README
%changelog %changelog