2010-12-01 15:50:54 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-HTML-Scrubber (Version 0.08)
|
|
|
|
#
|
|
|
|
# Copyright (c) 2010 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
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2010-12-13 13:14:25 +00:00
|
|
|
|
|
|
|
|
2010-12-01 15:50:54 +00:00
|
|
|
Name: perl-HTML-Scrubber
|
2007-09-14 18:03:04 +00:00
|
|
|
Version: 0.08
|
|
|
|
Release: 1
|
2010-12-01 15:50:54 +00:00
|
|
|
License: Distributable, see LICENSE
|
2010-12-01 15:55:21 +00:00
|
|
|
%define cpan_name HTML-Scrubber
|
|
|
|
Summary: HTML::Scrubber Perl module
|
2010-12-01 15:50:54 +00:00
|
|
|
Url: http://search.cpan.org/dist/HTML-Scrubber/
|
2010-12-01 15:55:21 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2010-12-01 15:50:54 +00:00
|
|
|
#Source: http://www.cpan.org/authors/id/P/PO/PODMASTER/HTML-Scrubber-%{version}.tar.gz
|
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl(HTML::Parser) >= 3
|
2010-12-01 15:55:21 +00:00
|
|
|
BuildRequires: perl-macros
|
2010-12-01 15:50:54 +00:00
|
|
|
Requires: perl(HTML::Parser) >= 3
|
2010-12-01 15:55:21 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%{perl_requires}
|
2010-12-03 14:37:35 +00:00
|
|
|
BuildArch: noarch
|
2007-09-14 18:03:04 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
If you wanna "scrub" or "sanitize" html input in a reliable an flexible
|
|
|
|
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
|
2010-12-01 15:50:54 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2010-02-26 15:46:39 +00:00
|
|
|
|
|
|
|
%check
|
2010-12-01 15:50:54 +00:00
|
|
|
%{__make} test
|
2007-09-14 18:03:04 +00:00
|
|
|
|
|
|
|
%install
|
2010-12-01 15:50:54 +00:00
|
|
|
%perl_make_install
|
2007-09-14 18:03:04 +00:00
|
|
|
%perl_process_packlist
|
2010-12-01 15:50:54 +00:00
|
|
|
%perl_gen_filelist
|
2007-09-14 18:03:04 +00:00
|
|
|
|
|
|
|
%clean
|
2010-12-01 15:55:21 +00:00
|
|
|
%{__rm} -rf %{buildroot}
|
2007-09-14 18:03:04 +00:00
|
|
|
|
2010-12-01 15:50:54 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(644,root,root,755)
|
2007-09-14 18:03:04 +00:00
|
|
|
%doc Changes LICENSE README
|
|
|
|
|
|
|
|
%changelog
|