8
0
Stephan Kulow
2013-11-26 08:52:08 +00:00
committed by Git OBS Bridge
parent f0ed35e68d
commit f9304fc5c4
4 changed files with 34 additions and 38 deletions

View File

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

View File

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

View File

@@ -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

View File

@@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,40 +16,33 @@
#
Name: perl-HTML-Scrubber
Version: 0.09
Release: 1
License: GPL+ or Artistic
Version: 0.11
Release: 0
%define cpan_name HTML-Scrubber
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
#Source: http://www.cpan.org/authors/id/N/NI/NIGELM/HTML-Scrubber-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.gz
%if 0%{?suse_version} <= 1120
Patch1: perl-HTML-Scrubber-test_more-version.patch
%endif
Url: http://search.cpan.org/dist/HTML-Scrubber/
Source: http://www.cpan.org/authors/id/N/NI/NIGELM/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
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::Parser)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(vars)
Buildrequires: perl(Test::More) >= 0.94
BuildRequires: perl(HTML::Parser) >= 3.47
BuildRequires: perl(Module::Build) >= 0.3601
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::Parser)
Requires: perl(vars)
Requires: perl(HTML::Parser) >= 3.47
%{perl_requires}
%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.
I wasn't satisfied with HTML::Sanitizer because it is based on
@@ -58,28 +51,20 @@ directly with HTML::Parser.
%prep
%setup -q -n %{cpan_name}-%{version}
%if 0%{?suse_version} <= 1120
%patch1 -p1
sed -i "s|__vendorperl__|%{perl_vendorlib}|g" t/*
%endif
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
%{__make} test
./Build test
%install
%perl_make_install
%perl_process_packlist
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(644,root,root,755)
%defattr(-,root,root,755)
%doc Changes LICENSE README
%changelog