3 %bcond_without tests # do not perform "make test"
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: 3f8958718844dc96b9f6946f21d70d22
17 URL: http://search.cpan.org/dist/IO-HTML/
18 BuildRequires: perl-ExtUtils-MakeMaker >= 6.30
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl(Exporter) >= 5.57
23 BuildRequires: perl-Encode >= 2.10
24 BuildRequires: perl-Test-Simple >= 0.88
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 IO::HTML provides an easy way to open a file containing HTML while
31 automatically determining its encoding. It uses the HTML5 encoding
32 sniffing algorithm specified in section 8.2.2.1 of the draft standard.
34 %description -l pl.UTF-8
35 Moduł IO::HTML udostępnia łatwy sposób otwierania pliku zawierającego
36 HTML z automatycznym określaniem jego kodowania. Wykorzystuje algorytm
37 dopasowywania kodowania HTML5, opisany w sekcji 8.2.2.1 szkicu
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
53 %{__make} pure_install \
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %{perl_vendorlib}/IO/HTML.pm
63 %{_mandir}/man3/IO::HTML.3pm*