114 Star 0 Fork 3

src-openEuler / perl-Try-Tiny

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-Try-Tiny.spec 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
dogsheng 提交于 2019-11-19 11:52 . Package init
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_docdir}/
Name: perl-Try-Tiny
Summary: Minimal try/catch with proper preservation of $@
Version: 0.30
Release: 5
License: MIT
URL: https://metacpan.org/release/Try-Tiny
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/Try-Tiny-%{version}.tar.gz
BuildArch: noarch
BuildRequires: coreutils findutils perl-generators perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) perl(Carp) perl(constant) perl(Exporter) >= 5.57 perl(strict)
BuildRequires: perl(Sub::Util) perl(warnings) perl(File::Spec) perl(Test::More) >= 0.96
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) perl(Sub::Util)
%description
This module provides bare bones try/catch statements that are designed to minimize common mistakes with
eval blocks, and NOTHING else.
%prep
%autosetup -n Try-Tiny-%{version} -p1
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -delete
%{_fixperms} -c $RPM_BUILD_ROOT
%check
make test
%files
%doc LICENCE Changes CONTRIBUTING README t/
%{perl_vendorlib}/Try/
%{_mandir}/man3/Try::Tiny.3*
%changelog
* Wed Oct 23 2019 Huiming Xie <xiehuiming@huawei.com> - 0.30-5
- init package
1
https://gitee.com/src-openeuler/perl-Try-Tiny.git
git@gitee.com:src-openeuler/perl-Try-Tiny.git
src-openeuler
perl-Try-Tiny
perl-Try-Tiny
openEuler-20.03-LTS

搜索帮助