114 Star 0 Fork 5

src-openEuler/perl-Params-Util

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-Params-Util.spec 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
dogsheng 提交于 2019-12-14 21:08 . Package init
Name: perl-Params-Util
Summary: Simple, compact and correct param-checking functions
Version: 1.07
Release: 26
License: GPL+ or Artistic
URL: https://metacpan.org/release/Params-Util
Source0: https://cpan.metacpan.org/authors/id/A/AD/ADAMK/Params-Util-%{version}.tar.gz
BuildRequires: perl-interpreter perl-devel perl-generators gcc %{__perl} %{__make}
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.52 perl(File::Spec) >= 0.82
BuildRequires: perl(File::Temp) perl(Config) perl(strict)
BuildRequires: perl(DynaLoader) perl(Exporter) perl(overload) perl(vars)
BuildRequires: perl(Test::More) >= 0.47 perl(File::Spec::Functions)
Requires: perl(Scalar::Util) >= 1.18
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Params::Util provides a basic set of importable functions that makes
checking parameters a hell of a lot easier.
While they can be (and are) used in other contexts, the main point
behind this module is that the functions both Do What You Mean, and Do
The Right Thing, so they are most useful when you are getting params
passed into your code from someone and/or somewhere else and you can't
really trust the quality.
%package_help
%prep
%autosetup -p1 -n Params-Util-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" NO_PACKLIST=1
%make_build
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*
%check
make test AUTOMATED_TESTING=1
%files
%license LICENSE
%{perl_vendorarch}/Params
%{perl_vendorarch}/auto/*
%files help
%doc Changes
%{_mandir}/man3/*
%changelog
* Tue Nov 19 2019 caomeng<caomeng5@huawei.com> - 1.07-26
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/perl-Params-Util.git
git@gitee.com:src-openeuler/perl-Params-Util.git
src-openeuler
perl-Params-Util
perl-Params-Util
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385