3 %bcond_without tests # do not perform "make test"
7 Summary: HTML::TagFilter - an HTML::Parser-based selective tag remover
8 Summary(pl.UTF-8): HTML::TagFilter - wybiórcze usuwanie znaczników oparte o HTML::Parser
9 Name: perl-HTML-TagFilter
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: e61d2f180e3ba55e5d71293d472ffebb
17 URL: http://search.cpan.org/dist/HTML-TagFilter/
19 BuildRequires: perl-HTML-Parser >= 1.0
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 The tentatively titled HTML::TagFilter is a subclass of HTML::Parser
28 with a single purpose: it will remove unwanted HTML tags and
29 attributes from a piece of text. It can act in a more or less
30 fine-grained way - you can specify permitted tags, permitted
31 attributes of each tag, and permitted values for each attribute in as
32 much detail as you like.
34 %description -l pl.UTF-8
35 Nazwany tak na próbę HTML::TagFilter jest podklasą HTML::Parser o
36 jednym celu: usuwaniu niechcianych znaczników HTML i atrybutów z
37 fragmentu tekstu. Może działać w bardziej lub mniej precyzyjny
38 sposób - można podać dozwolone znaczniki, dozwolone atrybuty dla
39 każdego znacznika, dozwolone wartości dla każdego atrybutu w dowolnie
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{perl_vendorlib}/%{pdir}/*.pm