]> git.pld-linux.org Git - packages/perl-HTML-Parser.git/blobdiff - perl-HTML-Parser.spec
perl 5.38.0 rebuild
[packages/perl-HTML-Parser.git] / perl-HTML-Parser.spec
index 3e8c2f51aa335f97b22c593e88cd4b616bd1cd58..1077f08c38e70bb6f5292d667132f1d0a0d30fb6 100644 (file)
@@ -1,8 +1,7 @@
 #
 # Conditional build:
-%bcond_without tests   # Do not perform "make test"
-#
-%include       /usr/lib/rpm/macros.perl
+%bcond_without tests   # unit tests
+
 %define                pdir    HTML
 %define                pnam    Parser
 Summary:       HTML::Parser - parsing and extracting information from HTML documents
@@ -12,22 +11,29 @@ Summary(ru.UTF-8):  HTML::Parser - набор модулей для "разбор
 Summary(uk.UTF-8):     HTML::Parser - набір модулів для розбору HTML-документів
 Summary(zh_CN.UTF-8):  Perl 的 HTML 解析器模块。
 Name:          perl-HTML-Parser
-Version:       3.56
-Release:       3
+Version:       3.81
+Release:       2
 # same as perl
 License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: bddc432e5ed9df4d4153a62234f04fc2
-URL:           http://search.cpan.org/dist/HTML-Parser/
+Source0:       https://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: b9f5dd3b14632f7a60541a2b61389c06
+URL:           https://metacpan.org/release/HTML-Parser
+BuildRequires: perl-ExtUtils-MakeMaker >= 6.52
 BuildRequires: perl-HTML-Tagset >= 3
 BuildRequires: perl-devel >= 1:5.8.0
+%if %{with tests}
+BuildRequires: perl-Test-Simple
+BuildRequires: perl-URI
+BuildRequires: perl-libwww
+%endif
 BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
 BuildConflicts:        perl-HTML-Stream = 1.45-3
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # HTTP::Headers (perl-libwww) is not always required
-%define                _noautoreq      'perl(HTTP::Headers)'
+%define                _noautoreq      perl(HTTP::Headers)
 
 %description
 Perl module HTML::Parser that allows to parse and extract information
@@ -58,12 +64,10 @@ Il modulo HTML::Parser per perl, che consente di analizzare documenti
 HTML e di estrarne informazioni.
 
 %description -l ja.UTF-8
-HTML ドキュメントから情報を解析、抽出するための Perl 用の HTML::Parser
-。
+HTML ドキュメントから情報を解析、抽出するための Perl 用の HTML::Parser 。
 
 %description -l ko.UTF-8
-HTML::Parser 모줄은 펄이 HTML 문서들로 부터 정보를 파싱하고 가져오게끔
-합니다.
+HTML::Parser 모줄은 펄이 HTML 문서들로 부터 정보를 파싱하고 가져오게끔 합니다.
 
 %description -l pl.UTF-8
 Moduł Perla HTML::Parser pozwalający na parsowanie i wyciąganie
@@ -112,11 +116,20 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc Changes README TODO
-%dir %{perl_vendorarch}/HTML
-%{perl_vendorarch}/HTML/*.pm
-%dir %{perl_vendorarch}/auto/HTML
+%doc Changes TODO
+%{perl_vendorarch}/HTML/Entities.pm
+%{perl_vendorarch}/HTML/Filter.pm
+%{perl_vendorarch}/HTML/HeadParser.pm
+%{perl_vendorarch}/HTML/LinkExtor.pm
+%{perl_vendorarch}/HTML/Parser.pm
+%{perl_vendorarch}/HTML/PullParser.pm
+%{perl_vendorarch}/HTML/TokeParser.pm
 %dir %{perl_vendorarch}/auto/HTML/Parser
-%{perl_vendorarch}/auto/HTML/Parser/Parser.bs
 %attr(755,root,root) %{perl_vendorarch}/auto/HTML/Parser/Parser.so
-%{_mandir}/man3/*
+%{_mandir}/man3/HTML::Entities.3pm*
+%{_mandir}/man3/HTML::Filter.3pm*
+%{_mandir}/man3/HTML::HeadParser.3pm*
+%{_mandir}/man3/HTML::LinkExtor.3pm*
+%{_mandir}/man3/HTML::Parser.3pm*
+%{_mandir}/man3/HTML::PullParser.3pm*
+%{_mandir}/man3/HTML::TokeParser.3pm*
This page took 0.02453 seconds and 4 git commands to generate.