2010-12-01 15:50:54 +00:00
|
|
|
#
|
2011-03-31 09:39:24 +00:00
|
|
|
# spec file for package perl-HTML-Scrubber
|
2010-12-01 15:50:54 +00:00
|
|
|
#
|
2013-11-26 08:52:08 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-12-01 15:50:54 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2011-03-31 09:39:24 +00:00
|
|
|
|
2010-12-01 15:50:54 +00:00
|
|
|
Name: perl-HTML-Scrubber
|
2013-11-26 08:52:08 +00:00
|
|
|
Version: 0.11
|
|
|
|
Release: 0
|
2011-02-04 23:16:23 +00:00
|
|
|
%define cpan_name HTML-Scrubber
|
2011-04-02 19:34:07 +00:00
|
|
|
Summary: Perl extension for scrubbing/sanitizing html
|
2013-11-26 08:52:08 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2011-04-02 19:34:07 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2013-11-26 08:52:08 +00:00
|
|
|
Url: http://search.cpan.org/dist/HTML-Scrubber/
|
|
|
|
Source: http://www.cpan.org/authors/id/N/NI/NIGELM/%{cpan_name}-%{version}.tar.gz
|
2011-02-04 23:16:23 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-01 15:50:54 +00:00
|
|
|
BuildRequires: perl
|
2010-12-01 15:55:21 +00:00
|
|
|
BuildRequires: perl-macros
|
2011-04-02 19:34:07 +00:00
|
|
|
BuildRequires: perl(HTML::Entities)
|
2013-11-26 08:52:08 +00:00
|
|
|
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
|
2011-04-02 19:34:07 +00:00
|
|
|
Requires: perl(HTML::Entities)
|
2013-11-26 08:52:08 +00:00
|
|
|
Requires: perl(HTML::Parser) >= 3.47
|
2010-12-01 15:55:21 +00:00
|
|
|
%{perl_requires}
|
2007-09-14 18:03:04 +00:00
|
|
|
|
|
|
|
%description
|
2013-11-26 08:52:08 +00:00
|
|
|
If you want to "scrub" or "sanitize" html input in a reliable and flexible
|
2007-09-14 18:03:04 +00:00
|
|
|
fashion, then this module is for you.
|
|
|
|
|
2010-12-01 15:50:54 +00:00
|
|
|
I wasn't satisfied with HTML::Sanitizer because it is based on
|
|
|
|
HTML::TreeBuilder, so I thought I'd write something similar that works
|
|
|
|
directly with HTML::Parser.
|
|
|
|
|
2007-09-14 18:03:04 +00:00
|
|
|
%prep
|
2010-12-01 15:50:54 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2007-09-14 18:03:04 +00:00
|
|
|
|
|
|
|
%build
|
2013-11-26 08:52:08 +00:00
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
./Build build flags=%{?_smp_mflags}
|
2010-02-26 15:46:39 +00:00
|
|
|
|
|
|
|
%check
|
2013-11-26 08:52:08 +00:00
|
|
|
./Build test
|
2007-09-14 18:03:04 +00:00
|
|
|
|
|
|
|
%install
|
2013-11-26 08:52:08 +00:00
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
2010-12-01 15:50:54 +00:00
|
|
|
%perl_gen_filelist
|
2007-09-14 18:03:04 +00:00
|
|
|
|
2010-12-01 15:50:54 +00:00
|
|
|
%files -f %{name}.files
|
2013-11-26 08:52:08 +00:00
|
|
|
%defattr(-,root,root,755)
|
2007-09-14 18:03:04 +00:00
|
|
|
%doc Changes LICENSE README
|
|
|
|
|
|
|
|
%changelog
|