forked from pool/perl-HTML-Scrubber
update
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Scrubber?expand=0&rev=19
This commit is contained in:
committed by
Git OBS Bridge
parent
f0ed35e68d
commit
f9304fc5c4
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:b62f3cdd2933221cd68042869e76e7adf11b37b4e130a7f8bcfdc09cde52ec6d
|
|
||||||
size 26840
|
|
3
HTML-Scrubber-0.11.tar.gz
Normal file
3
HTML-Scrubber-0.11.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:0cdb1cada21e8de89b8f44eaaee5ab7e75943dfa053e0d6f78e0139da422df16
|
||||||
|
size 29340
|
@@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 26 07:35:19 UTC 2013 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 0.11
|
||||||
|
- RT3008 Changed examples to be XSS free
|
||||||
|
- RT19063, RT25477 fixed handling of self closing tags,
|
||||||
|
for example '<hr />'
|
||||||
|
- * attribute rule can be a regexp
|
||||||
|
- callbacks in rules to check or adjust attributes with
|
||||||
|
custom code (RT15747)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 15 11:37:57 UTC 2011 - lars@linux-schulserver.de
|
Mon Aug 15 11:37:57 UTC 2011 - lars@linux-schulserver.de
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-HTML-Scrubber
|
# spec file for package perl-HTML-Scrubber
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@@ -16,40 +16,33 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: perl-HTML-Scrubber
|
Name: perl-HTML-Scrubber
|
||||||
Version: 0.09
|
Version: 0.11
|
||||||
Release: 1
|
Release: 0
|
||||||
License: GPL+ or Artistic
|
|
||||||
%define cpan_name HTML-Scrubber
|
%define cpan_name HTML-Scrubber
|
||||||
Summary: Perl extension for scrubbing/sanitizing html
|
Summary: Perl extension for scrubbing/sanitizing html
|
||||||
Url: http://search.cpan.org/dist/HTML-Scrubber/
|
License: Artistic-1.0 or GPL-1.0+
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
#Source: http://www.cpan.org/authors/id/N/NI/NIGELM/HTML-Scrubber-%{version}.tar.gz
|
Url: http://search.cpan.org/dist/HTML-Scrubber/
|
||||||
Source: %{cpan_name}-%{version}.tar.gz
|
Source: http://www.cpan.org/authors/id/N/NI/NIGELM/%{cpan_name}-%{version}.tar.gz
|
||||||
%if 0%{?suse_version} <= 1120
|
|
||||||
Patch1: perl-HTML-Scrubber-test_more-version.patch
|
|
||||||
%endif
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(Carp)
|
|
||||||
BuildRequires: perl(File::Find)
|
|
||||||
BuildRequires: perl(File::Spec)
|
|
||||||
BuildRequires: perl(File::Temp)
|
|
||||||
BuildRequires: perl(HTML::Entities)
|
BuildRequires: perl(HTML::Entities)
|
||||||
BuildRequires: perl(HTML::Parser)
|
BuildRequires: perl(HTML::Parser) >= 3.47
|
||||||
BuildRequires: perl(Scalar::Util)
|
BuildRequires: perl(Module::Build) >= 0.3601
|
||||||
BuildRequires: perl(vars)
|
BuildRequires: perl(Test::More) >= 0.94
|
||||||
Buildrequires: perl(Test::More) >= 0.94
|
#BuildRequires: perl(HTML::Scrubber)
|
||||||
|
#BuildRequires: perl(Pod::Wordlist)
|
||||||
|
#BuildRequires: perl(Test::NoTabs)
|
||||||
|
#BuildRequires: perl(Test::Spelling) >= 0.12
|
||||||
Requires: perl(HTML::Entities)
|
Requires: perl(HTML::Entities)
|
||||||
Requires: perl(HTML::Parser)
|
Requires: perl(HTML::Parser) >= 3.47
|
||||||
Requires: perl(vars)
|
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
If you wanna "scrub" or "sanitize" html input in a reliable and flexible
|
If you want to "scrub" or "sanitize" html input in a reliable and flexible
|
||||||
fashion, then this module is for you.
|
fashion, then this module is for you.
|
||||||
|
|
||||||
I wasn't satisfied with HTML::Sanitizer because it is based on
|
I wasn't satisfied with HTML::Sanitizer because it is based on
|
||||||
@@ -58,28 +51,20 @@ directly with HTML::Parser.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
%if 0%{?suse_version} <= 1120
|
|
||||||
%patch1 -p1
|
|
||||||
sed -i "s|__vendorperl__|%{perl_vendorlib}|g" t/*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
%{__perl} Build.PL installdirs=vendor
|
||||||
%{__make} %{?_smp_mflags}
|
./Build build flags=%{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__make} test
|
./Build test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
./Build install destdir=%{buildroot} create_packlist=0
|
||||||
%perl_process_packlist
|
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
|
||||||
%{__rm} -rf %{buildroot}
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(644,root,root,755)
|
%defattr(-,root,root,755)
|
||||||
%doc Changes LICENSE README
|
%doc Changes LICENSE README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user