commit 81b34a92c6cfc2f9f924e21121d0a26bd6081ec5 Author: dogsheng <960055655@qq.com> Date: Tue Nov 19 11:52:22 2019 +0800 Package init diff --git a/IO-HTML-1.001.tar.gz b/IO-HTML-1.001.tar.gz new file mode 100644 index 0000000..d425cc5 Binary files /dev/null and b/IO-HTML-1.001.tar.gz differ diff --git a/perl-IO-HTML.spec b/perl-IO-HTML.spec new file mode 100644 index 0000000..b7c2468 --- /dev/null +++ b/perl-IO-HTML.spec @@ -0,0 +1,54 @@ +Name: perl-IO-HTML +Version: 1.001 +Release: 13 +Summary: Open an HTML file with automatic charset detection +License: GPL+ or Artistic +URL: https://metacpan.org/release/IO-HTML +Source0: https://cpan.metacpan.org/authors/id/C/CJ/CJM/IO-HTML-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: perl-interpreter perl-generators perl(ExtUtils::MakeMaker) >= 6.30 +BuildRequires: perl(Carp) perl(Encode) >= 2.10 perl(Exporter) >= 5.57 + +BuildRequires: perl(File::Temp) perl(Scalar::Util) perl(Test::More) >= 0.88 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +This module opens a file and performs automatic charset detection +based on the HTML5 algorithm. You can then pass the filehandle to +HTML::Parser or a related module (or just read it yourself). + +%package help +Summary: Documentation for perl-IO-HTML + +%description help +Documentation for perl-IO-HTML. + +%prep +%autosetup -n IO-HTML-%{version} -p1 + +%build +perl Makefile.PL INSTALLDIRS=vendor +%make_build + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find %buildroot -type f -name .packlist -exec rm -f {} \; +%{__chmod} -Rf a+rX,u+w,g-w,o-w %buildroot/* + +%check +make test + +%files +%license LICENSE +%{perl_vendorlib}/* +%exclude %{_libdir}/perl5/perllocal.pod + +%files help +%doc Changes README +%{_mandir}/man3/* + +%changelog +* Thu Oct 24 2019 Zaiwang Li - 1.001-13 +- Init Package. +