3 %bcond_without tests # Do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: HTML::Parser - parsing and extracting information from HTML documents
9 Summary(cs.UTF-8): HTML::Parser - modul pro parsování HTML v Perlu
10 Summary(pl.UTF-8): HTML::Parser - analiza i wyciąganie informacji z dokumentów HTML
11 Summary(ru.UTF-8): HTML::Parser - набор модулей для "разбора" HTML-документов
12 Summary(uk.UTF-8): HTML::Parser - набір модулів для розбору HTML-документів
13 Summary(zh_CN.UTF-8): Perl 的 HTML 解析器模块。
14 Name: perl-HTML-Parser
18 License: GPL v1+ or Artistic
19 Group: Development/Languages/Perl
20 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
21 # Source0-md5: bddc432e5ed9df4d4153a62234f04fc2
22 URL: http://search.cpan.org/dist/HTML-Parser/
23 BuildRequires: perl-HTML-Tagset >= 3
24 BuildRequires: perl-devel >= 1:5.8.0
25 BuildRequires: rpm-perlprov >= 4.1-13
26 BuildConflicts: perl-HTML-Stream = 1.45-3
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 # HTTP::Headers (perl-libwww) is not always required
30 %define _noautoreq 'perl(HTTP::Headers)'
33 Perl module HTML::Parser that allows to parse and extract information
36 %description -l cs.UTF-8
37 Balíček perl-HTML-Parser obsahuje modul pro Perl, který slouží k
38 parsování a extrahování informací z HTML dokumentu.
40 %description -l da.UTF-8
41 HTML::Parser modul til Perl for at tolka og extrahere information fra
44 %description -l de.UTF-8
45 HTML::Parser modul für Perl zum Parsen und Extrahieren von
46 Informationen aus HTML-Dokumenten.
48 %description -l es.UTF-8
49 Módulo HTML::Parser para perl para analizar y extraer información a
50 partir de documentos HTML.
52 %description -l fr.UTF-8
53 Module HTML::Parser pour perl permettant d'analyser et d'extraire des
54 informations de documents HTML.
56 %description -l it.UTF-8
57 Il modulo HTML::Parser per perl, che consente di analizzare documenti
58 HTML e di estrarne informazioni.
60 %description -l ja.UTF-8
61 HTML ドキュメントから情報を解析、抽出するための Perl 用の HTML::Parser
64 %description -l ko.UTF-8
65 HTML::Parser 모줄은 펄이 HTML 문서들로 부터 정보를 파싱하고 가져오게끔
68 %description -l pl.UTF-8
69 Moduł Perla HTML::Parser pozwalający na parsowanie i wyciąganie
70 informacji z dokumentu HTML.
72 %description -l pt_BR.UTF-8
73 Módulo Perl HTML::Parser - Uma coleção de módulos para examinar e
74 extrair informações de documentos HTML.
76 %description -l ru.UTF-8
77 HTML::Parser - набор модулей для "разбора" HTML-документов.
79 %description -l uk.UTF-8
80 HTML::Parser - набір модулів для розбору HTML-документів.
82 %description -l pt.UTF-8
83 O módulo HTML::Parser para o Perl analisar e extrair informações de
86 %description -l sv.UTF-8
87 HTML::Parser modul till perl för att tolka och extrahera information
91 %setup -q -n %{pdir}-%{pnam}-%{version}
94 %{__perl} Makefile.PL \
96 DEFINE="-DMARKED_SECTION -DUNICODE_ENTITIES" \
100 OPTIMIZE="%{rpmcflags}"
102 %{?with_tests:%{__make} test}
105 rm -rf $RPM_BUILD_ROOT
108 DESTDIR=$RPM_BUILD_ROOT
111 rm -rf $RPM_BUILD_ROOT
114 %defattr(644,root,root,755)
115 %doc Changes README TODO
116 %dir %{perl_vendorarch}/HTML
117 %{perl_vendorarch}/HTML/*.pm
118 %dir %{perl_vendorarch}/auto/HTML
119 %dir %{perl_vendorarch}/auto/HTML/Parser
120 %{perl_vendorarch}/auto/HTML/Parser/Parser.bs
121 %attr(755,root,root) %{perl_vendorarch}/auto/HTML/Parser/Parser.so