]> 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 52010678cff6cd5ab76e47b984fa9e549272a45a..1077f08c38e70bb6f5292d667132f1d0a0d30fb6 100644 (file)
@@ -1,10 +1,9 @@
 #
 # Conditional build:
-%bcond_without tests   # Do not perform "make test"
+%bcond_without tests   # unit tests
 
 %define                pdir    HTML
 %define                pnam    Parser
-%include       /usr/lib/rpm/macros.perl
 Summary:       HTML::Parser - parsing and extracting information from HTML documents
 Summary(cs.UTF-8):     HTML::Parser - modul pro parsování HTML v Perlu
 Summary(pl.UTF-8):     HTML::Parser - analiza i wyciąganie informacji z dokumentów HTML
@@ -12,18 +11,24 @@ 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.72
+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/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: eb7505e5f626913350df9dd4a03d54a8
-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
-%{?with_tests:BuildRequires:   perl-libwww}
+%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)
 
@@ -111,7 +116,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc Changes README TODO
+%doc Changes TODO
 %{perl_vendorarch}/HTML/Entities.pm
 %{perl_vendorarch}/HTML/Filter.pm
 %{perl_vendorarch}/HTML/HeadParser.pm
This page took 0.058616 seconds and 4 git commands to generate.