114 Star 0 Fork 5

src-openEuler / perl-IO-HTML

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-IO-HTML.spec 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
shenxiangwei 提交于 2022-10-24 16:17 . Add mod_name Macro
%define mod_name IO-HTML
Name: perl-%{mod_name}
Version: 1.004
Release: 2
Summary: Open an HTML file with automatic charset detection
License: GPL+ or Artistic
URL: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/authors/id/C/CJ/CJM/%{mod_name}-%{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-%{mod_name}
%description help
Documentation for perl-%{mod_name}.
%prep
%autosetup -n %{mod_name}-%{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
* Mon Oct 24 2022 hongjinghao <hongjinghao@huawei.com> - 1.004-2
- Add mod_name Macro
* Fri Dec 3 2021 guozhaorui <guozhaorui1@huawei.com> - 1.004-1
- update version to 1.004
* Thu Oct 24 2019 Zaiwang Li <lizaiwang1@huawei.com> - 1.001-13
- Init Package.
1
https://gitee.com/src-openeuler/perl-IO-HTML.git
git@gitee.com:src-openeuler/perl-IO-HTML.git
src-openeuler
perl-IO-HTML
perl-IO-HTML
openEuler-22.03-LTS

搜索帮助