114 Star 0 Fork 2

src-openEuler / perl-Capture-Tiny

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-Capture-Tiny.spec 1.64 KB
一键复制 编辑 原始数据 按行查看 历史
dogsheng 提交于 2019-12-14 21:08 . Package init
Name: perl-Capture-Tiny
Summary: Capture STDOUT and STDERR from Perl, XS or external programs
Version: 0.48
Release: 4
License: ASL 2.0
URL: https://metacpan.org/release/Capture-Tiny
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Capture-Tiny-%{version}.tar.gz
BuildRequires: make perl-interpreter perl-devel perl-generators perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 perl(strict) perl(warnings)
BuildRequires: perl(Exporter) perl(Fcntl) perl(File::Spec) perl(File::Temp)
BuildRequires: perl(Scalar::Util) perl(Test::More) >= 0.62 perl(IO::Handle)
BuildRequires: perl(IO::File) perl(Config) perl(lib) perl(PerlIO::scalar)
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
BuildArch: noarch
%description
Capture::Tiny provides a simple, portable way to capture anything sent to
STDOUT or STDERR, regardless of whether it comes from Perl, from XS code or
from an external program. Optionally, output can be teed so that it is
captured while being passed through to the original handles. Yes, it even
works on Windows. Stop guessing which of a dozen capturing modules to use
in any particular situation and just use this one.
%package_help
%prep
%autosetup -p1 -n Capture-Tiny-%{version}
%build
perl Makefile.PL INSTALLDIRS=perl NO_PACKLIST=1
%make_build
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%license LICENSE
%{perl_privlib}/*
%files help
%doc Changes examples README Todo
%{_mandir}/man3/*
%changelog
* Thu Dec 5 2019 caomeng<caomeng5@huawei.com> - 0.48-4
- Package init
1
https://gitee.com/src-openeuler/perl-Capture-Tiny.git
git@gitee.com:src-openeuler/perl-Capture-Tiny.git
src-openeuler
perl-Capture-Tiny
perl-Capture-Tiny
openEuler-22.03-LTS

搜索帮助