File perl-IPC-Run.spec of Package perl-IPC-Run

#
# spec file for package perl-IPC-Run
#
# Copyright (c) 2012 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-IPC-Run
Version:        0.91
Release:        1
License:        GPL-1.0+ or Artistic-1.0
Summary:        System() and Background Procs with Piping, Redirs, and PTYs
Url:            http://cpan.org/modules/by-module/IPC/
Group:          Development/Libraries/Perl
Source:         IPC-Run-%{version}.tar.gz
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0:         IPC-Run-0.89-path.diff
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}

%description
IPC::Run allows you run and interact with child processes using files,
pipes, and pseudo-ttys.  Both system()-style and scripted usages are
supported and may be mixed. Like-wise, functional and OO API styles are
both supported and may be mixed.

%prep
%setup -q -n IPC-Run-%{version}
%patch0

%build
perl Makefile.PL
make %{?_smp_mflags}
#run.t sometimes fails with "Resource temporarily unavailable"
mv t/run.t t/run.tt

%check
make test

%install
%perl_make_install
%perl_process_packlist
chmod 644 Changes

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc Changes eg abuse
%doc %{_mandir}/man?/*
%{perl_vendorlib}/IPC
%{perl_vendorarch}/auto/IPC

%changelog
openSUSE Build Service is sponsored by