]> git.pld-linux.org Git - packages/perl-IO-HTML.git/blob - perl-IO-HTML.spec
- updated to 1.004
[packages/perl-IO-HTML.git] / perl-IO-HTML.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # unit tests
4 #
5 %define         pdir    IO
6 %define         pnam    HTML
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
9 Name:           perl-IO-HTML
10 Version:        1.004
11 Release:        1
12 # same as perl
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
22 %if %{with tests}
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
27 %endif
28 BuildArch:      noarch
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
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.
35
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
40 standardu.
41
42 %prep
43 %setup -q -n %{pdir}-%{pnam}-%{version}
44
45 %build
46 %{__perl} Makefile.PL \
47         INSTALLDIRS=vendor
48 %{__make}
49
50 %{?with_tests:%{__make} test}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} pure_install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc Changes
64 %{perl_vendorlib}/IO/HTML.pm
65 %{_mandir}/man3/IO::HTML.3pm*
This page took 0.113015 seconds and 3 git commands to generate.