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