]>
Commit | Line | Data |
---|---|---|
cc93fb25 | 1 | # |
7a2fb948 | 2 | # Conditional build: |
3 | %bcond_without tests # Do not perform "make test" | |
a80a5c2e | 4 | |
ec8b54d4 | 5 | %define pdir HTML |
6 | %define pnam Parser | |
a80a5c2e | 7 | %include /usr/lib/rpm/macros.perl |
e2339982 | 8 | Summary: HTML::Parser - parsing and extracting information from HTML documents |
7c464e41 ER |
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 解析器模块。 | |
8a6f83a3 | 14 | Name: perl-HTML-Parser |
ec8e40c6 | 15 | Version: 3.71 |
2dba82c5 | 16 | Release: 6 |
06643e7f | 17 | # same as perl |
18 | License: GPL v1+ or Artistic | |
8a6f83a3 | 19 | Group: Development/Languages/Perl |
5421d5ab | 20 | Source0: http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz |
ec8e40c6 | 21 | # Source0-md5: 9128a45893097dfa3bf03301b19c5efe |
d1b662cf | 22 | URL: http://search.cpan.org/dist/HTML-Parser/ |
cc93fb25 | 23 | BuildRequires: perl-HTML-Tagset >= 3 |
085419a5 | 24 | BuildRequires: perl-devel >= 1:5.8.0 |
c782976a | 25 | %{?with_tests:BuildRequires: perl-libwww} |
37b39900 | 26 | BuildRequires: rpm-perlprov >= 4.1-13 |
b6f38f7e | 27 | BuildConflicts: perl-HTML-Stream = 1.45-3 |
6a51c7dd | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
8a6f83a3 | 29 | |
934475c0 | 30 | # HTTP::Headers (perl-libwww) is not always required |
a80a5c2e | 31 | %define _noautoreq perl(HTTP::Headers) |
934475c0 | 32 | |
8a6f83a3 | 33 | %description |
3cd8e3e8 JB |
34 | Perl module HTML::Parser that allows to parse and extract information |
35 | from HTML documents. | |
8a6f83a3 | 36 | |
9d1b4029 JR |
37 | %description -l cs.UTF-8 |
38 | Balíček perl-HTML-Parser obsahuje modul pro Perl, který slouží k | |
39 | parsování a extrahování informací z HTML dokumentu. | |
c842f7d7 | 40 | |
9d1b4029 | 41 | %description -l da.UTF-8 |
c842f7d7 | 42 | HTML::Parser modul til Perl for at tolka og extrahere information fra |
43 | HTML-dokument. | |
44 | ||
9d1b4029 JR |
45 | %description -l de.UTF-8 |
46 | HTML::Parser modul für Perl zum Parsen und Extrahieren von | |
c842f7d7 | 47 | Informationen aus HTML-Dokumenten. |
48 | ||
9d1b4029 JR |
49 | %description -l es.UTF-8 |
50 | Módulo HTML::Parser para perl para analizar y extraer información a | |
c842f7d7 | 51 | partir de documentos HTML. |
52 | ||
9d1b4029 | 53 | %description -l fr.UTF-8 |
c842f7d7 | 54 | Module HTML::Parser pour perl permettant d'analyser et d'extraire des |
55 | informations de documents HTML. | |
56 | ||
9d1b4029 | 57 | %description -l it.UTF-8 |
c842f7d7 | 58 | Il modulo HTML::Parser per perl, che consente di analizzare documenti |
59 | HTML e di estrarne informazioni. | |
60 | ||
9d1b4029 | 61 | %description -l ja.UTF-8 |
7fd07141 | 62 | HTML ドキュメントから情報を解析、抽出するための Perl 用の HTML::Parser 。 |
c842f7d7 | 63 | |
9d1b4029 | 64 | %description -l ko.UTF-8 |
7fd07141 | 65 | HTML::Parser 모줄은 펄이 HTML 문서들로 부터 정보를 파싱하고 가져오게끔 합니다. |
c842f7d7 | 66 | |
9d1b4029 JR |
67 | %description -l pl.UTF-8 |
68 | Moduł Perla HTML::Parser pozwalający na parsowanie i wyciąganie | |
6f282048 | 69 | informacji z dokumentu HTML. |
70 | ||
9d1b4029 JR |
71 | %description -l pt_BR.UTF-8 |
72 | Módulo Perl HTML::Parser - Uma coleção de módulos para examinar e | |
73 | extrair informações de documentos HTML. | |
6f282048 | 74 | |
9d1b4029 JR |
75 | %description -l ru.UTF-8 |
76 | HTML::Parser - набор модулей для "разбора" HTML-документов. | |
6f282048 | 77 | |
9d1b4029 JR |
78 | %description -l uk.UTF-8 |
79 | HTML::Parser - набір модулів для розбору HTML-документів. | |
8a6f83a3 | 80 | |
9d1b4029 JR |
81 | %description -l pt.UTF-8 |
82 | O módulo HTML::Parser para o Perl analisar e extrair informações de | |
c842f7d7 | 83 | documentos HTML. |
84 | ||
9d1b4029 JR |
85 | %description -l sv.UTF-8 |
86 | HTML::Parser modul till perl för att tolka och extrahera information | |
87 | från HTML-dokument. | |
c842f7d7 | 88 | |
8a6f83a3 | 89 | %prep |
c842f7d7 | 90 | %setup -q -n %{pdir}-%{pnam}-%{version} |
8a6f83a3 AF |
91 | |
92 | %build | |
37b39900 | 93 | %{__perl} Makefile.PL \ |
c9122c96 | 94 | INSTALLDIRS=vendor \ |
b6f38f7e | 95 | DEFINE="-DMARKED_SECTION -DUNICODE_ENTITIES" \ |
c9122c96 | 96 | < /dev/null |
30727461 | 97 | %{__make} \ |
8443eacc | 98 | CC="%{__cc}" \ |
30727461 | 99 | OPTIMIZE="%{rpmcflags}" |
8a6f83a3 | 100 | |
c594cdb3 | 101 | %{?with_tests:%{__make} test} |
7a2fb948 | 102 | |
8a6f83a3 AF |
103 | %install |
104 | rm -rf $RPM_BUILD_ROOT | |
8a6f83a3 | 105 | |
c9122c96 | 106 | %{__make} install \ |
107 | DESTDIR=$RPM_BUILD_ROOT | |
8a6f83a3 | 108 | |
8a6f83a3 AF |
109 | %clean |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %files | |
113 | %defattr(644,root,root,755) | |
cc93fb25 | 114 | %doc Changes README TODO |
5421d5ab JB |
115 | %{perl_vendorarch}/HTML/Entities.pm |
116 | %{perl_vendorarch}/HTML/Filter.pm | |
117 | %{perl_vendorarch}/HTML/HeadParser.pm | |
118 | %{perl_vendorarch}/HTML/LinkExtor.pm | |
119 | %{perl_vendorarch}/HTML/Parser.pm | |
120 | %{perl_vendorarch}/HTML/PullParser.pm | |
121 | %{perl_vendorarch}/HTML/TokeParser.pm | |
37b39900 | 122 | %dir %{perl_vendorarch}/auto/HTML/Parser |
37b39900 | 123 | %attr(755,root,root) %{perl_vendorarch}/auto/HTML/Parser/Parser.so |
5421d5ab JB |
124 | %{_mandir}/man3/HTML::Entities.3pm* |
125 | %{_mandir}/man3/HTML::Filter.3pm* | |
126 | %{_mandir}/man3/HTML::HeadParser.3pm* | |
127 | %{_mandir}/man3/HTML::LinkExtor.3pm* | |
128 | %{_mandir}/man3/HTML::Parser.3pm* | |
129 | %{_mandir}/man3/HTML::PullParser.3pm* | |
130 | %{_mandir}/man3/HTML::TokeParser.3pm* |