- updated to 0.11

Fixed:
  - Tests will not use Test::Differences version 0.60 or greater
  - Setting PERL_CAPTURE_TINY_TIMEOUT to 0 will disable timeouts
  - Added support for $ENV{PERL_CAPTURE_TINY_TIMEOUT} to control
    the timeout period under 'tee'; tests set not to timeout to
    avoid false FAIL reports on overloaded virtual machine smokers
  Fixed:
  - $@ set within a captured block is no longer lost when the capture
    is completed; likewise, the initial value of $@ is not lost
    during capture (when no subsequent error occurs) (RT #65139)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Capture-Tiny?expand=0&rev=7
This commit is contained in:
Stephan Kulow 2011-07-21 08:56:35 +00:00 committed by Git OBS Bridge
parent 226b3e9e36
commit 87f31d3bb2
4 changed files with 51 additions and 32 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7365f880c4e6d5a035fbf9bca1a49ed9b6c52e252e620c757db62181742adc88
size 25145

3
Capture-Tiny-0.11.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8ca40024c425902d0305076771834278643002e5fe546fb6b8ca6d9f9f743027
size 21060

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Thu Jul 21 08:55:31 UTC 2011 - coolo@novell.com
- updated to 0.11
Fixed:
- Tests will not use Test::Differences version 0.60 or greater
- Setting PERL_CAPTURE_TINY_TIMEOUT to 0 will disable timeouts
- Added support for $ENV{PERL_CAPTURE_TINY_TIMEOUT} to control
the timeout period under 'tee'; tests set not to timeout to
avoid false FAIL reports on overloaded virtual machine smokers
Fixed:
- $@ set within a captured block is no longer lost when the capture
is completed; likewise, the initial value of $@ is not lost
during capture (when no subsequent error occurs) (RT #65139)
-------------------------------------------------------------------
Wed Dec 1 15:42:27 UTC 2010 - coolo@novell.com

View File

@ -1,7 +1,7 @@
#
# spec file for package
# spec file for package perl-Capture-Tiny (Version 0.11)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -15,51 +15,55 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-Capture-Tiny
Version: 0.08
Release: 0
License: Perl License
Summary: Capture STDOUT and STDERR
Version: 0.11
Release: 1
License: Apache Software License
%define cpan_name Capture-Tiny
Summary: Capture STDOUT and STDERR from Perl, XS or external programs
Url: http://search.cpan.org/dist/Capture-Tiny/
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Capture-Tiny-%{version}.tar.gz
BuildRequires: make
Source: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
BuildRequires: perl(Test::Differences)
%{perl_requires}
%description
Capture STDOUT and STDERR from Perl, XS or external programs.
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.
This module was heavily inspired by the IO::CaptureOutput manpage, which
provides similar functionality without the ability to tee output and with
more complicated code and API.
%prep
%setup -q -n "Capture-Tiny-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%setup -q -n %{cpan_name}-%{version}
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%check
%__make test
%perl_gen_filelist
%clean
%__rm -rf %{buildroot}
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%doc Changes README
%doc examples
%dir %{perl_vendorlib}/Capture
%{perl_vendorlib}/Capture/Tiny.pm
%{perl_vendorlib}/Capture/Tiny.pod
%dir %{perl_vendorarch}/auto/Capture
%{perl_vendorarch}/auto/Capture/Tiny
%doc %{perl_man3dir}/Capture::Tiny.%{perl_man3ext}%{ext_man}
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes examples LICENSE perlcritic.rc README Todo
%changelog