]> git.pld-linux.org Git - packages/perl-HTML-TokeParser-Simple.git/blob - perl-HTML-TokeParser-Simple.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-HTML-TokeParser-Simple.git] / perl-HTML-TokeParser-Simple.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    HTML
6 %define         pnam    TokeParser-Simple
7 Summary:        HTML::TokeParser::Simple - easy to use HTML::TokeParser interface
8 Summary(pl.UTF-8):      HTML::TokeParser::Simple - łatwy w użyciu interfejs do HTML::TokeParser
9 Name:           perl-HTML-TokeParser-Simple
10 Version:        3.15
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:  2867824be9cbe3e86e94ca677d042ffe
17 URL:            http://search.cpan.org/dist/HTML-TokeParser-Simple/
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.28
22 BuildRequires:  perl-Sub-Override
23 %endif
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 HTML::TokeParser is a fairly common method of parsing HTML. However,
29 the tokens returned are not exactly intuitive to parse.
30 HTML::TokeParser::Simple allows the user ask more intuitive (read:
31 more self-documenting) questions about the tokens returned.
32 Specifically, there are 7 is_foo type methods and 5 return_bar type
33 methods. The is_ methods allow you to determine the token type and the
34 return_ methods get the data that you need.
35
36 %description -l pl.UTF-8
37 HTML::TokeParser to dosyć popularna metoda analizowania HTML-a. jednak
38 zwracane tokeny nie są zbyt intuicyjne do przeanalizowania.
39 HTML::TokeParser::Simple pozwala wykonywać bardziej intuicyjne
40 (samodokumentujące się) zapytania dotyczące zwracanych tokenów. W
41 szczególności jest 7 metod typu is_foo oraz 5 metod typu return_bar.
42 Metody is_ pozwalają określić typ tokenu, a metody return_ - pobrać
43 potrzebne dane.
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/TokeParser
68 %{_mandir}/man3/HTML::TokeParser::Simple*.3pm*
This page took 0.115608 seconds and 4 git commands to generate.