]> git.pld-linux.org Git - packages/perl-HTML-TagFilter.git/blob - perl-HTML-TagFilter.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-HTML-TagFilter.git] / perl-HTML-TagFilter.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    HTML
6 %define         pnam    TagFilter
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
10 Version:        1.03
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/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  e61d2f180e3ba55e5d71293d472ffebb
17 URL:            http://search.cpan.org/dist/HTML-TagFilter/
18 %if %{with tests}
19 BuildRequires:  perl-HTML-Parser >= 1.0
20 %endif
21 BuildRequires:  perl-devel >= 1:5.8.0
22 BuildRequires:  rpm-perlprov >= 4.1-13
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
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.
33
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
40 szczegółowy sposób.
41
42 %prep
43 %setup -q -n %{pdir}-%{pnam}-%{version}
44
45 %build
46 %{__perl} Makefile.PL \
47         INSTALLDIRS=vendor
48 %{__make}
49
50 %{?with_tests:%{__make} test}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc Changes
64 %{perl_vendorlib}/%{pdir}/*.pm
65 %{_mandir}/man3/*
This page took 0.080172 seconds and 4 git commands to generate.