2010-12-01 16:42:30 +01:00
|
|
|
#
|
2011-07-25 17:31:57 +02:00
|
|
|
# spec file for package perl-Capture-Tiny
|
2010-12-01 16:42:30 +01:00
|
|
|
#
|
2011-07-21 10:56:35 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-12-01 16:42:30 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2009-10-29 17:40:20 +01:00
|
|
|
|
2010-12-01 16:42:30 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2009-10-29 17:40:20 +01:00
|
|
|
|
2011-07-25 17:31:57 +02:00
|
|
|
|
|
|
|
|
2010-12-01 16:42:30 +01:00
|
|
|
Name: perl-Capture-Tiny
|
2011-12-21 13:14:59 +01:00
|
|
|
Version: 0.13
|
2011-07-21 10:56:35 +02:00
|
|
|
Release: 1
|
2011-12-21 13:14:59 +01:00
|
|
|
License: Apache-2.0
|
2011-07-21 10:56:35 +02:00
|
|
|
%define cpan_name Capture-Tiny
|
|
|
|
Summary: Capture STDOUT and STDERR from Perl, XS or external programs
|
2010-12-01 16:42:30 +01:00
|
|
|
Url: http://search.cpan.org/dist/Capture-Tiny/
|
|
|
|
Group: Development/Libraries/Perl
|
2011-07-21 10:56:35 +02:00
|
|
|
Source: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-01 16:42:30 +01:00
|
|
|
BuildRequires: perl
|
2011-12-21 14:54:39 +01:00
|
|
|
BuildRequires: perl-macros
|
2011-07-21 10:56:35 +02:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
|
|
|
|
BuildRequires: perl(Test::Differences)
|
2011-12-21 13:14:59 +01:00
|
|
|
BuildRequires: perl(Time::HiRes)
|
|
|
|
Requires: perl(Scalar::Util)
|
|
|
|
Recommends: perl(Time::HiRes)
|
2010-12-03 14:56:16 +01:00
|
|
|
%{perl_requires}
|
2009-10-29 17:40:20 +01:00
|
|
|
|
2010-12-01 16:42:30 +01:00
|
|
|
%description
|
2011-07-21 10:56:35 +02:00
|
|
|
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.
|
2009-10-29 17:40:20 +01:00
|
|
|
|
|
|
|
%prep
|
2011-07-21 10:56:35 +02:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2011-08-26 17:46:17 +02:00
|
|
|
%if 0%{?sles_version} == 10 || 0%{?rhel_version} || 0%{?centos_version}
|
|
|
|
%{__perl} -p -i -e 's|6.31|6.30|' Makefile.PL
|
|
|
|
%endif
|
2009-10-29 17:40:20 +01:00
|
|
|
|
|
|
|
%build
|
2011-07-21 10:56:35 +02:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
2009-10-29 17:40:20 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2011-07-21 10:56:35 +02:00
|
|
|
%perl_gen_filelist
|
2010-06-21 20:30:02 +02:00
|
|
|
|
2009-10-29 17:40:20 +01:00
|
|
|
%clean
|
2011-07-21 10:56:35 +02:00
|
|
|
%{__rm} -rf %{buildroot}
|
2009-10-29 17:40:20 +01:00
|
|
|
|
2011-07-21 10:56:35 +02:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes examples LICENSE perlcritic.rc README Todo
|
2009-10-29 17:40:20 +01:00
|
|
|
|
|
|
|
%changelog
|