3 %bcond_without tests # unit tests
7 Summary: IO::HTML - Open an HTML file with automatic charset detection
8 Summary(pl.UTF-8): IO::HTML - otwieranie pliku HTML z automatycznym wykrywaniem zestawu znaków
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 04bbe363686fd19bfb4cc0ed775e3d03
17 URL: https://metacpan.org/release/IO-HTML
18 BuildRequires: perl-ExtUtils-MakeMaker >= 6.30
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: rpmbuild(macros) >= 1.745
23 BuildRequires: perl(Exporter) >= 5.57
24 BuildRequires: perl-Encode >= 2.10
25 BuildRequires: perl-Scalar-List-Utils
26 BuildRequires: perl-Test-Simple >= 0.88
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 IO::HTML provides an easy way to open a file containing HTML while
33 automatically determining its encoding. It uses the HTML5 encoding
34 sniffing algorithm specified in section 8.2.2.1 of the draft standard.
36 %description -l pl.UTF-8
37 Moduł IO::HTML udostępnia łatwy sposób otwierania pliku zawierającego
38 HTML z automatycznym określaniem jego kodowania. Wykorzystuje algorytm
39 dopasowywania kodowania HTML5, opisany w sekcji 8.2.2.1 szkicu
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
55 %{__make} pure_install \
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{perl_vendorlib}/IO/HTML.pm
65 %{_mandir}/man3/IO::HTML.3pm*