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