2013-04-21 12:04:29 +02:00
|
|
|
#
|
|
|
|
# spec file for package perl-IO-CaptureOutput
|
|
|
|
#
|
2014-03-15 13:57:28 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2013-04-21 12:04:29 +02: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2010-08-23 02:31:20 +02:00
|
|
|
|
|
|
|
Name: perl-IO-CaptureOutput
|
2014-03-15 13:57:28 +01:00
|
|
|
Version: 1.1103
|
2010-08-23 02:31:20 +02:00
|
|
|
Release: 0
|
2014-03-15 13:57:28 +01:00
|
|
|
%define cpan_name IO-CaptureOutput
|
2010-08-23 02:31:20 +02:00
|
|
|
Summary: Capture STDOUT and STDERR from Perl code, subprocesses or XS
|
2013-04-21 12:04:29 +02:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2010-08-23 02:31:20 +02:00
|
|
|
Group: Development/Libraries/Perl
|
2013-04-21 12:04:29 +02:00
|
|
|
Url: http://search.cpan.org/dist/IO-CaptureOutput/
|
2014-03-15 13:57:28 +01:00
|
|
|
Source: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
2013-04-21 12:04:29 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
2010-12-03 15:38:27 +01:00
|
|
|
BuildRequires: perl-macros
|
2014-03-15 13:57:28 +01:00
|
|
|
BuildRequires: perl(File::Spec) >= 3.27
|
|
|
|
BuildRequires: perl(version)
|
|
|
|
%{perl_requires}
|
2010-08-23 02:31:20 +02:00
|
|
|
|
|
|
|
%description
|
2014-03-15 13:57:28 +01:00
|
|
|
*This module is no longer recommended by the maintainer* - see the
|
|
|
|
Capture::Tiny manpage instead.
|
|
|
|
|
2010-08-23 02:31:20 +02:00
|
|
|
This module provides routines for capturing STDOUT and STDERR from perl
|
2014-03-15 13:57:28 +01:00
|
|
|
subroutines, forked system calls (e.g. 'system()', 'fork()') and from XS or
|
|
|
|
C modules.
|
2010-08-23 02:31:20 +02:00
|
|
|
|
|
|
|
%prep
|
2014-03-15 13:57:28 +01:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
2010-08-23 02:31:20 +02:00
|
|
|
|
|
|
|
%build
|
2014-03-15 13:57:28 +01:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
2010-08-23 02:31:20 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2014-03-15 13:57:28 +01:00
|
|
|
%perl_gen_filelist
|
2010-08-23 02:31:20 +02:00
|
|
|
|
2014-03-15 13:57:28 +01:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes CONTRIBUTING cpanfile examples LICENSE perlcritic.rc README
|
2010-08-23 02:31:20 +02:00
|
|
|
|
2013-04-21 12:04:29 +02:00
|
|
|
%changelog
|