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
|
|
|
#
|
2015-02-07 20:15:06 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX 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
|
2015-05-16 18:18:31 +02:00
|
|
|
Version: 0.30
|
2012-02-21 10:08:40 +01:00
|
|
|
Release: 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
|
2012-02-21 10:08:40 +01:00
|
|
|
License: Apache-2.0
|
2010-12-01 16:42:30 +01:00
|
|
|
Group: Development/Libraries/Perl
|
2012-02-21 10:08:40 +01:00
|
|
|
Url: http://search.cpan.org/dist/Capture-Tiny/
|
2015-05-16 18:18:31 +02:00
|
|
|
Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2011-07-21 10:56:35 +02:00
|
|
|
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
|
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
|
2012-02-21 10:08:40 +01:00
|
|
|
Capture::Tiny provides a simple, portable way to capture almost 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
|
2012-02-27 09:44:10 +01:00
|
|
|
is captured while being passed through to the original filehandles. Yes, it
|
2012-02-21 10:08:40 +01:00
|
|
|
even works on Windows (usually). Stop guessing which of a dozen capturing
|
|
|
|
modules to use in any particular situation and just use this one.
|
2009-10-29 17:40:20 +01:00
|
|
|
|
|
|
|
%prep
|
2011-07-21 10:56:35 +02:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
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
|
|
|
|
2011-07-21 10:56:35 +02:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
2015-05-16 18:18:31 +02:00
|
|
|
%doc Changes CONTRIBUTING.mkdn examples LICENSE README Todo
|
2009-10-29 17:40:20 +01:00
|
|
|
|
|
|
|
%changelog
|