]> git.pld-linux.org Git - packages/perl-HTML-Scrubber.git/blob - perl-HTML-Scrubber.spec
- drop obsolete and outdated manual inclusion of rpm macros
[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 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
10 Version:        0.19
11 Release:        1
12 # same as perl
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
20 %if %{with tests}
21 BuildRequires:  perl-HTML-Parser >= 3
22 BuildRequires:  perl-Test-CPAN-Meta
23 BuildRequires:  perl-Test-EOL
24 %endif
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 If you wanna "scrub" or "sanitize" HTML input in a reliable and
30 flexible fashion, then this module is for you.
31
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.
35
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.
39
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.
43
44 %prep
45 %setup -q -n %{pdir}-%{pnam}-%{version}
46
47 %build
48 %{__perl} Makefile.PL \
49                 INSTALLDIRS=vendor
50 %{__make}
51
52 %{?with_tests:%{__make} test}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 %{__make} install \
58                 DESTDIR=$RPM_BUILD_ROOT
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %doc Changes README
66 %{perl_vendorlib}/HTML/*.pm
67 %{_mandir}/man3/*
This page took 0.11628 seconds and 4 git commands to generate.