]>
Commit | Line | Data |
---|---|---|
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 | 8 | Summary: HTML::TagReader - reading HTML/SGML/XML files by tags |
947e1123 | 9 | Summary(pl.UTF-8): HTML::TagReader - czytanie plików HTML/SGML/XML po znaczniku |
73bb7085 | 10 | Name: perl-HTML-TagReader |
89b164eb | 11 | Version: 1.10 |
f79b93c5 | 12 | Release: 8 |
73bb7085 | 13 | # same as perl |
f782f66e | 14 | License: GPL v1+ or Artistic |
73bb7085 | 15 | Group: Development/Languages/Perl |
9f50c47f | 16 | Source0: http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz |
89b164eb | 17 | # Source0-md5: a8e725be2877306454aecf31132cee08 |
9f50c47f | 18 | URL: http://search.cpan.org/dist/HTML-TagReader/ |
73bb7085 JB |
19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | # for tr_imgaddsize | |
22 | Requires: perl-Image-Size >= 2.0 | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | The module implements a fast and small object oriented way of | |
27 | processing any kind of HTML/SGML/XML files by tag. | |
28 | ||
29 | The getbytoken(0) is similar to while(<>) but instead of reading lines | |
30 | it reads tags or tags and text. | |
31 | ||
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 | |
35 | code. | |
36 | ||
05a9ba3c JR |
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. | |
73bb7085 JB |
40 | |
41 | getbytoken(0) jest podobne do while(<>), ale zamiast czytania linii | |
42 | czyta znaczniki lub znaczniki i tekst. | |
43 | ||
05a9ba3c JR |
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. | |
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 | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %{__make} install \ | |
65 | DESTDIR=$RPM_BUILD_ROOT | |
66 | ||
67 | %clean | |
68 | rm -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]/* |