perl-Capture-Tiny/perl-Capture-Tiny.spec

60 lines
1.2 KiB
RPMSpec
Raw Normal View History

# norootforbuild
Name: perl-Capture-Tiny
Version: 0.08
Release: 0
Summary: Capture STDOUT and STDERR
Source: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Capture-Tiny-%{version}.tar.gz
URL: http://search.cpan.org/dist/Capture-Tiny/
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl = %{perl_version}
BuildRequires: make perl
%description
Capture STDOUT and STDERR from Perl, XS or external programs.
Authors:
--------
David A. Golden
%prep
%setup -q -n "Capture-Tiny-%{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
%__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}
%changelog
# vim: set sw=3 ts=3 noet:
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: