3 %bcond_without tests # do not perform "make test"
7 Summary: HTML::Scrubber - Perl extension for scrubbing/sanitizing HTML
8 Summary(pl.UTF-8): HTML::Scrubber - rozszerzenie Perla do czyszczenia HTML-a
9 Name: perl-HTML-Scrubber
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: fa66b170befd054b2a602eee32817214
17 URL: http://search.cpan.org/dist/HTML-Scrubber/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-HTML-Parser >= 3
22 BuildRequires: perl-Test-CPAN-Meta
23 BuildRequires: perl-Test-EOL
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 If you wanna "scrub" or "sanitize" HTML input in a reliable and
30 flexible fashion, then this module is for you.
32 I wasn't satisfied with HTML::Sanitizer because it is based on
33 HTML::TreeBuilder, so I thought I'd write something similar that works
34 directly with HTML::Parser.
36 %description -l pl.UTF-8
37 Jeśli chcemy "oczyścić" albo "uporządkować" wejście w HTML w
38 wiarygodnym i elastycznym stylu, ten moduł ma zastosowanie.
40 Autor nie był usatysfakcjonowany HTML::Sanitizer, ponieważ jest oparty
41 na HTML::TreeBuilder, więc stwierdził, że napisze coś podobnego
42 działającego bezpośrednio z modułem HTML::Parser.
45 %setup -q -n %{pdir}-%{pnam}-%{version}
48 %{__perl} Makefile.PL \
52 %{?with_tests:%{__make} test}
55 rm -rf $RPM_BUILD_ROOT
58 DESTDIR=$RPM_BUILD_ROOT
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
66 %{perl_vendorlib}/HTML/*.pm