08a46af
#This file is licensed under the terms of GNU GPLv2+.
08a46af
Name:           perl-Proc-SyncExec
08a46af
Version:        1.01
08a46af
Release:        1%{?dist}
08a46af
Summary:        Spawn processes but report exec() errors
08a46af
License:        GPL+ or Artistic
08a46af
Group:          Development/Libraries
08a46af
URL:            http://search.cpan.org/dist/Proc-SyncExec/
08a46af
Source0:        http://www.cpan.org/authors/id/R/RO/ROSCH/Proc-SyncExec-%{version}.tar.gz
08a46af
Patch0:         %{name}-1.01-Adjust-test-to-confinded-Fedora-Koji-build-system.patch
08a46af
BuildArch:      noarch
08a46af
BuildRequires:  perl(Exporter)
08a46af
BuildRequires:  perl(ExtUtils::MakeMaker)
08a46af
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
08a46af
08a46af
%description
08a46af
This module contains functions for synchronized process spawning with full
08a46af
error return. If the child's exec() call fails the reason for the failure
08a46af
is reported back to the parent.
08a46af
08a46af
%prep
08a46af
%setup -q -n Proc-SyncExec-%{version}
08a46af
%patch0 -p1 -b .koji
08a46af
08a46af
%build
08a46af
%{__perl} Makefile.PL INSTALLDIRS=vendor
08a46af
make %{?_smp_mflags}
08a46af
08a46af
%install
08a46af
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
08a46af
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
08a46af
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
08a46af
%{_fixperms} $RPM_BUILD_ROOT/*
08a46af
08a46af
%check
08a46af
make test
08a46af
08a46af
%files
08a46af
%doc Changes README
08a46af
%{perl_vendorlib}/*
08a46af
%{_mandir}/man3/*
08a46af
08a46af
%changelog
08a46af
* Tue May 17 2011 Petr Pisar <ppisar@redhat.com> 1.01-1
08a46af
- Specfile autogenerated by cpanspec 1.78.
08a46af
- Remove BuildRoot and defattr stuff
08a46af
- Adjusts tests to accept EPERM instead of ENOENT