]> git.pld-linux.org Git - packages/perl-HTML-Scrubber.git/blob - perl-HTML-Scrubber.spec
5c4d35cee25b3a98a83f035b0c422efe560831fc
[packages/perl-HTML-Scrubber.git] / perl-HTML-Scrubber.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    HTML
6 %define         pnam    Scrubber
7 %include        /usr/lib/rpm/macros.perl
8 Summary:        HTML::Scrubber - Perl extension for scrubbing/sanitizing HTML
9 Summary(pl.UTF-8):      HTML::Scrubber - rozszerzenie Perla do czyszczenia HTML-a
10 Name:           perl-HTML-Scrubber
11 Version:        0.17
12 Release:        1
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  4ce8424bd1a3bbc3c217b82e26dfd8a8
18 URL:            http://search.cpan.org/dist/HTML-Scrubber/
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 %if %{with tests}
22 BuildRequires:  perl-HTML-Parser >= 3
23 BuildRequires:  perl-Test-CPAN-Meta
24 BuildRequires:  perl-Test-EOL
25 %endif
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 If you wanna "scrub" or "sanitize" HTML input in a reliable and
31 flexible fashion, then this module is for you.
32
33 I wasn't satisfied with HTML::Sanitizer because it is based on
34 HTML::TreeBuilder, so I thought I'd write something similar that works
35 directly with HTML::Parser.
36
37 %description -l pl.UTF-8
38 Jeśli chcemy "oczyścić" albo "uporządkować" wejście w HTML w
39 wiarygodnym i elastycznym stylu, ten moduł ma zastosowanie.
40
41 Autor nie był usatysfakcjonowany HTML::Sanitizer, ponieważ jest oparty
42 na HTML::TreeBuilder, więc stwierdził, że napisze coś podobnego
43 działającego bezpośrednio z modułem HTML::Parser.
44
45 %prep
46 %setup -q -n %{pdir}-%{pnam}-%{version}
47
48 %build
49 %{__perl} Makefile.PL \
50                 INSTALLDIRS=vendor
51 %{__make}
52
53 %{?with_tests:%{__make} test}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57
58 %{__make} install \
59                 DESTDIR=$RPM_BUILD_ROOT
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %doc Changes README
67 %{perl_vendorlib}/HTML/*.pm
68 %{_mandir}/man3/*
This page took 0.033029 seconds and 2 git commands to generate.