]> git.pld-linux.org Git - packages/perl-IO-HTML.git/blame - perl-IO-HTML.spec
- updated to 1.001
[packages/perl-IO-HTML.git] / perl-IO-HTML.spec
CommitLineData
42f0d08a
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir IO
6%define pnam HTML
7%include /usr/lib/rpm/macros.perl
8Summary: IO::HTML - Open an HTML file with automatic charset detection
9Summary(pl.UTF-8): IO::HTML - otwieranie pliku HTML z automatycznym wykrywaniem zestawu znaków
10Name: perl-IO-HTML
b70ea4d5 11Version: 1.001
42f0d08a
JB
12Release: 1
13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz
b70ea4d5 17# Source0-md5: 3f8958718844dc96b9f6946f21d70d22
42f0d08a
JB
18URL: http://search.cpan.org/dist/IO-HTML/
19BuildRequires: perl-ExtUtils-MakeMaker >= 6.30
20BuildRequires: perl-devel >= 1:5.8.0
21BuildRequires: rpm-perlprov >= 4.1-13
22%if %{with tests}
23BuildRequires: perl(Exporter) >= 5.57
24BuildRequires: perl-Encode >= 2.10
25BuildRequires: perl-Test-Simple >= 0.88
26%endif
27BuildArch: noarch
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31IO::HTML provides an easy way to open a file containing HTML while
32automatically determining its encoding. It uses the HTML5 encoding
33sniffing algorithm specified in section 8.2.2.1 of the draft standard.
34
35%description -l pl.UTF-8
36Moduł IO::HTML udostępnia łatwy sposób otwierania pliku zawierającego
37HTML z automatycznym określaniem jego kodowania. Wykorzystuje algorytm
38dopasowywania kodowania HTML5, opisany w sekcji 8.2.2.1 szkicu
39standardu.
40
41%prep
42%setup -q -n %{pdir}-%{pnam}-%{version}
43
44%build
45%{__perl} Makefile.PL \
46 INSTALLDIRS=vendor
47%{__make}
48
49%{?with_tests:%{__make} test}
50
51%install
52rm -rf $RPM_BUILD_ROOT
53
54%{__make} pure_install \
55 DESTDIR=$RPM_BUILD_ROOT
56
57%clean
58rm -rf $RPM_BUILD_ROOT
59
60%files
61%defattr(644,root,root,755)
62%doc Changes README
63%{perl_vendorlib}/IO/HTML.pm
64%{_mandir}/man3/IO::HTML.3pm*
This page took 0.041854 seconds and 4 git commands to generate.