65 lines
1.8 KiB
RPMSpec
65 lines
1.8 KiB
RPMSpec
|
# vim: set sw=4 ts=4 et nu:
|
||
|
# norootforbuild
|
||
|
|
||
|
Name: perl-IO-CaptureOutput
|
||
|
Version: 1.1102
|
||
|
Release: 0
|
||
|
Summary: Capture STDOUT and STDERR from Perl code, subprocesses or XS
|
||
|
Source: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/IO-CaptureOutput-%{version}.tar.gz
|
||
|
URL: http://search.cpan.org/dist/IO-CaptureOutput/
|
||
|
Group: Development/Libraries/Perl
|
||
|
License: Perl License
|
||
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||
|
Requires: perl = %{perl_version}
|
||
|
BuildRequires: make perl
|
||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||
|
BuildRequires: perl(Test::More)
|
||
|
BuildRequires: perl(Carp)
|
||
|
BuildRequires: perl(Exporter)
|
||
|
BuildRequires: perl(File::Basename)
|
||
|
BuildRequires: perl(File::Spec)
|
||
|
BuildRequires: perl(File::Temp)
|
||
|
BuildRequires: perl(IO::File)
|
||
|
BuildRequires: perl(Symbol)
|
||
|
Requires: perl(Carp)
|
||
|
Requires: perl(Exporter)
|
||
|
Requires: perl(File::Basename)
|
||
|
Requires: perl(File::Spec)
|
||
|
Requires: perl(File::Temp)
|
||
|
Requires: perl(IO::File)
|
||
|
Requires: perl(Symbol)
|
||
|
|
||
|
%description
|
||
|
This module provides routines for capturing STDOUT and STDERR from perl
|
||
|
subroutines, forked system calls (e.g. system(), fork()) and from XS or C
|
||
|
modules.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n "IO-CaptureOutput-%{version}"
|
||
|
%__sed -i '/^auto_install/d' Makefile.PL
|
||
|
|
||
|
%build
|
||
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||
|
%__make %{?jobs:-j%{jobs}}
|
||
|
|
||
|
%install
|
||
|
%perl_make_install
|
||
|
%perl_process_packlist
|
||
|
|
||
|
%check
|
||
|
%__make test
|
||
|
|
||
|
%clean
|
||
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%doc Changes README
|
||
|
%dir %{perl_vendorlib}/IO
|
||
|
%{perl_vendorlib}/IO/CaptureOutput.pm
|
||
|
%{perl_vendorlib}/IO/CaptureOutput.pod
|
||
|
%dir %{perl_vendorarch}/auto/IO
|
||
|
%{perl_vendorarch}/auto/IO/CaptureOutput
|
||
|
%doc %{perl_man3dir}/IO::CaptureOutput.%{perl_man3ext}%{ext_man}
|
||
|
|