#
# Conditional build:
-%bcond_without tests # do not perform "make test"
+%bcond_without tests # unit tests
#
%define pdir IO
%define pnam HTML
Summary: IO::HTML - Open an HTML file with automatic charset detection
Summary(pl.UTF-8): IO::HTML - otwieranie pliku HTML z automatycznym wykrywaniem zestawu znaków
Name: perl-IO-HTML
-Version: 1.001
+Version: 1.004
Release: 1
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 3f8958718844dc96b9f6946f21d70d22
-URL: http://search.cpan.org/dist/IO-HTML/
+# Source0-md5: 04bbe363686fd19bfb4cc0ed775e3d03
+URL: https://metacpan.org/release/IO-HTML
BuildRequires: perl-ExtUtils-MakeMaker >= 6.30
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
%if %{with tests}
BuildRequires: perl(Exporter) >= 5.57
BuildRequires: perl-Encode >= 2.10
+BuildRequires: perl-Scalar-List-Utils
BuildRequires: perl-Test-Simple >= 0.88
%endif
BuildArch: noarch
%files
%defattr(644,root,root,755)
-%doc Changes README
+%doc Changes
%{perl_vendorlib}/IO/HTML.pm
%{_mandir}/man3/IO::HTML.3pm*