|
|
ef87bda |
Name: perl-Parallel-Iterator
|
|
|
ef87bda |
Version: 1.00
|
|
|
ef87bda |
Release: 1%{?dist}
|
|
|
ef87bda |
Summary: Simple parallel execution
|
|
|
ef87bda |
License: GPL+ or Artistic
|
|
|
ef87bda |
Group: Development/Libraries
|
|
|
ef87bda |
URL: http://search.cpan.org/dist/Parallel-Iterator/
|
|
|
ef87bda |
Source0: http://www.cpan.org/authors/id/A/AN/ANDYA/Parallel-Iterator-%{version}.tar.gz
|
|
|
ef87bda |
BuildArch: noarch
|
|
|
ef87bda |
BuildRequires: perl(Config)
|
|
|
ef87bda |
BuildRequires: perl(IO::Handle)
|
|
|
ef87bda |
BuildRequires: perl(IO::Select)
|
|
|
ef87bda |
BuildRequires: perl(lib)
|
|
|
ef87bda |
BuildRequires: perl(Module::Build)
|
|
|
ef87bda |
BuildRequires: perl(POSIX)
|
|
|
ef87bda |
BuildRequires: perl(Storable)
|
|
|
ef87bda |
BuildRequires: perl(strict)
|
|
|
ef87bda |
BuildRequires: perl(Test::More)
|
|
|
ef87bda |
BuildRequires: perl(warnings)
|
|
|
ef87bda |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
ef87bda |
|
|
|
ef87bda |
%{?perl_default_filter}
|
|
|
ef87bda |
|
|
|
ef87bda |
%description
|
|
|
ef87bda |
The map function applies a user supplied transformation function to
|
|
|
ef87bda |
each element in a list, returning a new list containing the
|
|
|
ef87bda |
transformed elements.
|
|
|
ef87bda |
|
|
|
ef87bda |
This module provides a 'parallel map'. Multiple worker processes are forked so
|
|
|
ef87bda |
that many instances of the transformation function may be executed
|
|
|
ef87bda |
simultaneously.
|
|
|
ef87bda |
|
|
|
ef87bda |
For time consuming operations, particularly operations that spend most of their
|
|
|
ef87bda |
time waiting for I/O, this is a big performance win. It also provides a simple
|
|
|
ef87bda |
idiom to make effective use of multi CPU systems.
|
|
|
ef87bda |
|
|
|
ef87bda |
%prep
|
|
|
ef87bda |
%setup -q -n Parallel-Iterator-%{version}
|
|
|
ef87bda |
|
|
|
ef87bda |
%build
|
|
|
ef87bda |
%{__perl} Build.PL installdirs=vendor
|
|
|
ef87bda |
./Build
|
|
|
ef87bda |
|
|
|
ef87bda |
%install
|
|
|
ef87bda |
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
|
|
ef87bda |
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
ef87bda |
|
|
|
ef87bda |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
ef87bda |
|
|
|
ef87bda |
%check
|
|
|
ef87bda |
./Build test
|
|
|
ef87bda |
|
|
|
ef87bda |
%files
|
|
|
ef87bda |
%doc Changes README
|
|
|
ef87bda |
%{perl_vendorlib}/*
|
|
|
ef87bda |
%{_mandir}/man3/*
|
|
|
ef87bda |
|
|
|
ef87bda |
%changelog
|
|
|
ef87bda |
* Sat May 14 2011 Iain Arnell <iarnell@gmail.com> 1.00-1
|
|
|
ef87bda |
- Specfile autogenerated by cpanspec 1.79.
|