3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: HTML::TagReader - reading HTML/SGML/XML files by tags
9 Summary(pl.UTF-8): HTML::TagReader - czytanie plików HTML/SGML/XML po znaczniku
10 Name: perl-HTML-TagReader
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: a8e725be2877306454aecf31132cee08
18 URL: http://search.cpan.org/dist/HTML-TagReader/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 Requires: perl-Image-Size >= 2.0
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 The module implements a fast and small object oriented way of
27 processing any kind of HTML/SGML/XML files by tag.
29 The getbytoken(0) is similar to while(<>) but instead of reading lines
30 it reads tags or tags and text.
32 HTML::TagReader makes it easy to keep track of the line number in a
33 file even though you are not reading the file by line. This important
34 if you want to implement error messages about HTML errors in your
37 %description -l pl.UTF-8
38 Ten moduł implementuje szybką, obiektowo zorientowaną metodę
39 przetwarzania dowolnego rodzaju plików HTML/SGML/XML po znaczniku.
41 getbytoken(0) jest podobne do while(<>), ale zamiast czytania linii
42 czyta znaczniki lub znaczniki i tekst.
44 HTML::TagReader umożliwia łatwe śledzenie numeru linii w pliku nawet
45 jeśli nie jest on czytany po linii. Jest to ważne przy implementowaniu
46 komunikatów błędów dotyczących HTML-a.
49 %setup -q -n %{pdir}-%{pnam}-%{version}
52 %{__perl} Makefile.PL \
57 OPTIMIZE="%{rpmcflags}"
59 %{?with_tests:%{__make} test}
62 rm -rf $RPM_BUILD_ROOT
65 DESTDIR=$RPM_BUILD_ROOT
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
73 %attr(755,root,root) %{_bindir}/tr_*
74 %{perl_vendorarch}/HTML/TagReader.pm
75 %dir %{perl_vendorarch}/auto/HTML/TagReader
76 %attr(755,root,root) %{perl_vendorarch}/auto/HTML/TagReader/TagReader.so