]> git.pld-linux.org Git - packages/perl-HTML-StripScripts-Parser.git/blob - perl-HTML-StripScripts-Parser.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-HTML-StripScripts-Parser.git] / perl-HTML-StripScripts-Parser.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    HTML
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
10 Version:        1.03
11 Release:        1
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
19 %if %{with tests}
20 BuildRequires:  perl-HTML-Parser >= 3.56
21 BuildRequires:  perl-HTML-StripScripts >= 1.04
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 This class provides an easy interface to HTML::StripScripts, using
28 HTML::Parser to parse the HTML.
29
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.
33
34 %description -l pl.UTF-8
35 Klasa ta dostarcza prosty interfejs do HTML::StripScripts przy użyciu HTML::Parser aby przetwarzać HTML.
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 %{__perl} Makefile.PL \
42         INSTALLDIRS=vendor
43 %{__make}
44
45 %{?with_tests:%{__make} test}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 %{__make} pure_install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc Changes README
59 %dir %{perl_vendorlib}/HTML/StripScripts
60 %{perl_vendorlib}/HTML/StripScripts/*.pm
61 %{_mandir}/man3/*
This page took 0.307173 seconds and 4 git commands to generate.