]> git.pld-linux.org Git - packages/perl-HTML-TagReader.git/blame - perl-HTML-TagReader.spec
- rebuild with perl 5.24.0
[packages/perl-HTML-TagReader.git] / perl-HTML-TagReader.spec
CommitLineData
73bb7085
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
3933cff4 6%define pdir HTML
7%define pnam TagReader
73bb7085 8Summary: HTML::TagReader - reading HTML/SGML/XML files by tags
947e1123 9Summary(pl.UTF-8): HTML::TagReader - czytanie plików HTML/SGML/XML po znaczniku
73bb7085 10Name: perl-HTML-TagReader
89b164eb 11Version: 1.10
f79b93c5 12Release: 8
73bb7085 13# same as perl
f782f66e 14License: GPL v1+ or Artistic
73bb7085 15Group: Development/Languages/Perl
9f50c47f 16Source0: http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
89b164eb 17# Source0-md5: a8e725be2877306454aecf31132cee08
9f50c47f 18URL: http://search.cpan.org/dist/HTML-TagReader/
73bb7085
JB
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21# for tr_imgaddsize
22Requires: perl-Image-Size >= 2.0
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26The module implements a fast and small object oriented way of
27processing any kind of HTML/SGML/XML files by tag.
28
29The getbytoken(0) is similar to while(<>) but instead of reading lines
30it reads tags or tags and text.
31
32HTML::TagReader makes it easy to keep track of the line number in a
33file even though you are not reading the file by line. This important
34if you want to implement error messages about HTML errors in your
35code.
36
05a9ba3c
JR
37%description -l pl.UTF-8
38Ten moduł implementuje szybką, obiektowo zorientowaną metodę
39przetwarzania dowolnego rodzaju plików HTML/SGML/XML po znaczniku.
73bb7085
JB
40
41getbytoken(0) jest podobne do while(<>), ale zamiast czytania linii
42czyta znaczniki lub znaczniki i tekst.
43
05a9ba3c
JR
44HTML::TagReader umożliwia łatwe śledzenie numeru linii w pliku nawet
45jeśli nie jest on czytany po linii. Jest to ważne przy implementowaniu
46komunikatów błędów dotyczących HTML-a.
73bb7085
JB
47
48%prep
49%setup -q -n %{pdir}-%{pnam}-%{version}
50
51%build
52%{__perl} Makefile.PL \
53 INSTALLDIRS=vendor
54
55%{__make} \
a2b66c4f 56 CC="%{__cc}" \
73bb7085
JB
57 OPTIMIZE="%{rpmcflags}"
58
59%{?with_tests:%{__make} test}
60
61%install
62rm -rf $RPM_BUILD_ROOT
63
64%{__make} install \
65 DESTDIR=$RPM_BUILD_ROOT
66
67%clean
68rm -rf $RPM_BUILD_ROOT
69
70%files
71%defattr(644,root,root,755)
72%doc Changes README
73%attr(755,root,root) %{_bindir}/tr_*
74%{perl_vendorarch}/HTML/TagReader.pm
75%dir %{perl_vendorarch}/auto/HTML/TagReader
73bb7085
JB
76%attr(755,root,root) %{perl_vendorarch}/auto/HTML/TagReader/TagReader.so
77%{_mandir}/man[13]/*
This page took 0.041512 seconds and 4 git commands to generate.