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:
@@ -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
3
HTML-Strip-2.11.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ba5d64b044d292bd37a948e4dc931228b81b0571d28ee09d45e6de8b019d165b
|
||||
size 15472
|
@@ -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
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# 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)
|
||||
# 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
|
||||
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
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/HTML-Strip/
|
||||
Source0: http://www.cpan.org/authors/id/K/KI/KILINRAX/%{cpan_name}-%{version}.tar.gz
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/K/KI/KILINRAX/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Test::Exception)
|
||||
@@ -35,15 +33,15 @@ Requires: perl(Test::Exception)
|
||||
|
||||
%description
|
||||
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
|
||||
HTML:: namespace.
|
||||
|
||||
It is written in XS, and thus about five times quicker than using regular
|
||||
expressions for the same task.
|
||||
|
||||
It does _not_ do any syntax checking (if you want that, use HTML::Parser),
|
||||
instead it merely applies the following rules:
|
||||
It does _not_ do any syntax checking. If you want that, use HTML::Parser.
|
||||
Instead it merely applies the following rules:
|
||||
|
||||
* 1
|
||||
|
||||
@@ -69,28 +67,27 @@ both ' quote types " -->' would be entirely stripped.
|
||||
|
||||
* 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'.
|
||||
|
||||
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,
|
||||
comment, or whatever; it will remember this, and expect the next call to
|
||||
parse to start with the remains of said tag.
|
||||
chunks should you wish. If a call to 'parse()' ends half-way through a tag,
|
||||
quote or comment; the next call to 'parse()' expects its input to carry on
|
||||
from that point.
|
||||
|
||||
If this is not going to be the case, be sure to call $hs->eof() between
|
||||
calls to $hs->parse(). Alternatively, you may set 'auto_reset' to true on
|
||||
the constructor or any time after with 'set_auto_reset', so that the parser
|
||||
will always operate in one-shot basis (resetting after each parsed chunk).
|
||||
If this is not the behaviour you want, you can either call 'eof()' between
|
||||
calls to 'parse()', or set 'auto_reset' to true (either on the constructor
|
||||
or with 'set_auto_reset') so that the parser will reset after each call.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
%{__make} %{?_smp_mflags}
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
%make_build
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
make test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
@@ -98,7 +95,6 @@ will always operate in one-shot basis (resetting after each parsed chunk).
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user