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

65 lines
1.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
Name: perl-Capture-Tiny
Version: 0.08
Release: 0
License: Perl License
Summary: Capture STDOUT and STDERR
Url: http://search.cpan.org/dist/Capture-Tiny/
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Capture-Tiny-%{version}.tar.gz
BuildRequires: make
BuildRequires: perl
%{perl_requires}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Capture STDOUT and STDERR from Perl, XS or external programs.
%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