3 %bcond_without tests # do not perform "make test"
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
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
21 BuildRequires: perl-HTML-Parser >= 3.28
22 BuildRequires: perl-Sub-Override
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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ć
46 %setup -q -n %{pdir}-%{pnam}-%{version}
49 %{__perl} Makefile.PL \
53 %{?with_tests:%{__make} test}
56 rm -rf $RPM_BUILD_ROOT
59 DESTDIR=$RPM_BUILD_ROOT
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
67 %{perl_vendorlib}/HTML/TokeParser
68 %{_mandir}/man3/HTML::TokeParser::Simple*.3pm*