1 | Name: perl-IO-HTML
|
---|
2 | Version: 1.001
|
---|
3 | Release: 1%{?dist}
|
---|
4 | Summary: Open an HTML file with automatic character set detection
|
---|
5 | License: GPL+ or Artistic
|
---|
6 | Group: Development/Libraries
|
---|
7 | URL: http://search.cpan.org/dist/IO-HTML/
|
---|
8 | Vendor: bww bitwise works GmbH
|
---|
9 | Source0: http://www.cpan.org/authors/id/C/CJ/CJM/IO-HTML-%{version}.tar.gz
|
---|
10 | BuildArch: noarch
|
---|
11 | BuildRequires: perl
|
---|
12 | BuildRequires: perl-generators
|
---|
13 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
---|
14 | # Run-time:
|
---|
15 | BuildRequires: perl(Carp)
|
---|
16 | BuildRequires: perl(Encode) >= 2.10
|
---|
17 | BuildRequires: perl(Exporter) >= 5.57
|
---|
18 | # Tests:
|
---|
19 | BuildRequires: perl(File::Temp)
|
---|
20 | BuildRequires: perl(Scalar::Util)
|
---|
21 | #BuildRequires: perl(Test::More) >= 0.88
|
---|
22 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
23 |
|
---|
24 | %description
|
---|
25 | IO::HTML provides an easy way to open a file containing HTML while
|
---|
26 | automatically determining its encoding. It uses the HTML5 encoding sniffing
|
---|
27 | algorithm specified in section 8.2.2.1 of the draft standard.
|
---|
28 |
|
---|
29 | %prep
|
---|
30 | %setup -q -n IO-HTML-%{version}
|
---|
31 |
|
---|
32 | %build
|
---|
33 | perl Makefile.PL INSTALLDIRS=vendor
|
---|
34 | make %{?_smp_mflags}
|
---|
35 | make manifypods
|
---|
36 |
|
---|
37 | %install
|
---|
38 | make pure_install DESTDIR=$RPM_BUILD_ROOT
|
---|
39 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
---|
40 | %{_fixperms} $RPM_BUILD_ROOT/*
|
---|
41 |
|
---|
42 | %check
|
---|
43 | #make test
|
---|
44 |
|
---|
45 | %files
|
---|
46 | %doc Changes LICENSE README
|
---|
47 | %{perl_vendorlib}/*
|
---|
48 | %{_mandir}/man3/*
|
---|
49 |
|
---|
50 | %changelog
|
---|
51 | * Mon May 08 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 1.001-1
|
---|
52 | - initial version
|
---|