3 %bcond_without tests # do not perform "make test"
6 %define pnam StripScripts-Parser
7 Summary: HTML::StripScripts::Parser - XSS filter using HTML::Parser
8 Summary(pl.UTF-8): HTML::StripScripts::Parser - filtr XSS używający HTML::Parser
9 Name: perl-HTML-StripScripts-Parser
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: b4c169034be56590a53f8835529627ba
16 URL: http://search.cpan.org/dist/HTML-StripScripts-Parser/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-HTML-Parser >= 3.56
21 BuildRequires: perl-HTML-StripScripts >= 1.04
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This class provides an easy interface to HTML::StripScripts, using
28 HTML::Parser to parse the HTML.
30 See HTML::Parser for details of how to customise how the raw HTML is parsed
31 into tags, and HTML::StripScripts for details of how to customise the way
32 those tags are filtered.
34 %description -l pl.UTF-8
35 Klasa ta dostarcza prosty interfejs do HTML::StripScripts przy użyciu HTML::Parser aby przetwarzać HTML.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 %{?with_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
50 %{__make} pure_install \
51 DESTDIR=$RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %dir %{perl_vendorlib}/HTML/StripScripts
60 %{perl_vendorlib}/HTML/StripScripts/*.pm