Accepting request 297483 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/297483 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Strip?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
c2f89d3642
commit
1cc7968644
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:51d14e786066804764d6e12d262447b4472a2c36c663ea2c89a3c4ec1435c1ab
|
||||
size 7764
|
3
HTML-Strip-2.09.tar.gz
Normal file
3
HTML-Strip-2.09.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3f310370d0a677d17ca539508afb054be869b68acaec9aea239a057aa04d81d7
|
||||
size 15040
|
20
cpanspec.yml
Normal file
20
cpanspec.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
#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
|
@@ -1,3 +1,77 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 16 21:43:37 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 2.09
|
||||
see /usr/share/doc/packages/perl-HTML-Strip/Changes
|
||||
|
||||
2.09 Mon Jan 5 16:51:17 GMT 2015
|
||||
- fixed latin1 support, added test case for it (RT#100969)
|
||||
|
||||
2.08 Tue Dec 9 15:02:02 GMT 2014
|
||||
- replaced html entities in russian.html (read by utf8 test), as the
|
||||
test should not fail due to problems with HTML::Entities
|
||||
|
||||
2.07 Thu Dec 4 14:07:03 GMT 2014
|
||||
- improvements for Kwalitee
|
||||
|
||||
2.06 Thu Dec 4 12:59:54 GMT 2014
|
||||
- strip_spaces in utf8 test was using perl v5.14+ features
|
||||
- reading of DATA in utf8 test should be native utf8 not use Encode,
|
||||
which mangles it on some platforms
|
||||
|
||||
2.05 Wed Dec 3 16:05:13 GMT 2014
|
||||
- fix to bug in t/300_utf8.t causing whitespace not to be stripped
|
||||
|
||||
2.04 Tue Nov 25 11:14:08 GMT 2014
|
||||
- many cpan tester failures due to witespace in utf8 test,
|
||||
main test done with whitespace stripped, todo test as before
|
||||
|
||||
2.03 Mon Nov 24 13:48:44 GMT 2014
|
||||
- removed trailing libicu deps
|
||||
- perl minimum version to 5.8 (needed for unicode support)
|
||||
- cleaned up test suite
|
||||
- version bump in META.YML (RT#100457)
|
||||
- 'use feature' breaking perl 5.8, removed (RT#100453)
|
||||
- added Test::Exception to build_requires
|
||||
|
||||
2.02 Thu Nov 20 11:21:35 GMT 2014
|
||||
- removed dependency on libicu-dev, which isn't as universal as expected
|
||||
and was causing a bunch of cpan tester failures
|
||||
|
||||
2.01 Wed Nov 19 10:48:04 GMT 2014
|
||||
(patch contributed by Michi Steiner)
|
||||
- clean buffer needs an extra char when emit_spaces=1 and the input has
|
||||
nothing to be removed (RT#41035)
|
||||
|
||||
2.00 Tue Nov 18 16:14:42 GMT 2014
|
||||
- utf8 support via libicu (RT#42834)
|
||||
- smoke test and utf8 test, tests ordered
|
||||
|
||||
1.10 Tue Sep 30 14:34:47 UTC 2014
|
||||
- Fix for RT#99207 (script mathematical symbol bug)
|
||||
|
||||
1.09 Tue Sep 30 10:39:47 UTC 2014
|
||||
- offbyone.t disabled under Windows (RT#99219)
|
||||
|
||||
1.08 Fri Sep 26 15:02:37 UTC 2014
|
||||
- system perl used in offbyone.t (RT#99151)
|
||||
|
||||
1.07 Tue Sep 23 14:44:08 UTC 2014
|
||||
- fix to bug RT#19036 - tags not replaced with spaces when only a single
|
||||
character is between the tags
|
||||
- fix to bug RT#35345 - mathematical conparisons within <script> tags
|
||||
misunderstood
|
||||
(patches contributed by Adriano Ferreira)
|
||||
- Exporter was never needed
|
||||
- Allow other filtering operations than just decoding of HTML entities
|
||||
- Modernised test suite
|
||||
- Adds 'auto_reset' attribute, which allows automagic use of $hs->eof
|
||||
- fixes quotes in html comments (RT#32355)
|
||||
(patch contributed by Reini Urban)
|
||||
- MSVC doesnt define strcasecmp, use stricmp instead
|
||||
(patch contributed by Damyan Ivanov)
|
||||
- fixes POD errors
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 1 13:32:52 UTC 2010 - coolo@novell.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-HTML-Strip (Version 1.06)
|
||||
# spec file for package perl-HTML-Strip
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -15,20 +15,23 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: perl-HTML-Strip
|
||||
Version: 2.09
|
||||
Release: 0
|
||||
%define cpan_name HTML-Strip
|
||||
Summary: Perl extension for stripping HTML markup from text
|
||||
Version: 1.06
|
||||
Release: 1
|
||||
License: CHECK(GPL+ or Artistic)
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/HTML-Strip/
|
||||
Source: http://www.cpan.org/authors/id/K/KI/KILINRAX/HTML-Strip-%{version}.tar.gz
|
||||
Source0: http://www.cpan.org/authors/id/K/KI/KILINRAX/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{perl_requires}
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Test::Exception)
|
||||
Requires: perl(Test::Exception)
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
This module simply strips HTML-like markup from text in a very quick and
|
||||
@@ -36,11 +39,54 @@ brutal manner. It could quite easily be used to strip XML or SGML from text
|
||||
as well; but removing HTML markup is a much more common problem, hence 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 the
|
||||
HTML::Parser manpage), instead it merely applies the following rules:
|
||||
|
||||
* 1
|
||||
|
||||
Anything that looks like a tag, or group of tags will be replaced with a
|
||||
single space character. Tags are considered to be anything that starts
|
||||
with a '<' and ends with a '>'; with the caveat that a '>' character may
|
||||
appear in either of the following without ending the tag:
|
||||
|
||||
* Quote
|
||||
|
||||
Quotes are considered to start with either a ''' or a '"' character,
|
||||
and end with a matching character _not_ preceded by an even number or
|
||||
escaping slashes (i.e. '\"' does not end the quote but '\\\\"' does).
|
||||
|
||||
* Comment
|
||||
|
||||
If the tag starts with an exclamation mark, it is assumed to be a
|
||||
declaration or a comment. Within such tags, '>' characters do not end
|
||||
the tag if they appear within pairs of double dashes (e.g. '<!-- <a
|
||||
href="old.htm">old page</a> -->' would be stripped completely). Inside
|
||||
a comment, no parsing for quotes is done as well. (That means '<!--
|
||||
comment with ' quote " -->' are entirely stripped.)
|
||||
|
||||
* 2
|
||||
|
||||
Anything the appears within so-called _strip tags_ is stripped as well.
|
||||
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.
|
||||
|
||||
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).
|
||||
|
||||
%prep
|
||||
%setup -q -n HTML-Strip-%{version}
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
@@ -51,11 +97,8 @@ module lives in the HTML:: namespace.
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,-)
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user