commit ef87bdab1737e5e49add83ebad3de39b2d17ab0c Author: Iain Arnell <iarnell@xxxxxxxxx> Date: Thu May 19 04:57:29 2011 +0200 initial import (rhbz#704705) .gitignore | 1 + perl-Parallel-Iterator.spec | 60 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..48b7f3c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Parallel-Iterator-1.00.tar.gz diff --git a/perl-Parallel-Iterator.spec b/perl-Parallel-Iterator.spec new file mode 100644 index 0000000..2d795a6 --- /dev/null +++ b/perl-Parallel-Iterator.spec @@ -0,0 +1,60 @@ +Name: perl-Parallel-Iterator +Version: 1.00 +Release: 1%{?dist} +Summary: Simple parallel execution +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Parallel-Iterator/ +Source0: http://www.cpan.org/authors/id/A/AN/ANDYA/Parallel-Iterator-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(Config) +BuildRequires: perl(IO::Handle) +BuildRequires: perl(IO::Select) +BuildRequires: perl(lib) +BuildRequires: perl(Module::Build) +BuildRequires: perl(POSIX) +BuildRequires: perl(Storable) +BuildRequires: perl(strict) +BuildRequires: perl(Test::More) +BuildRequires: perl(warnings) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +The map function applies a user supplied transformation function to +each element in a list, returning a new list containing the +transformed elements. + +This module provides a 'parallel map'. Multiple worker processes are forked so +that many instances of the transformation function may be executed +simultaneously. + +For time consuming operations, particularly operations that spend most of their +time waiting for I/O, this is a big performance win. It also provides a simple +idiom to make effective use of multi CPU systems. + +%prep +%setup -q -n Parallel-Iterator-%{version} + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%files +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Sat May 14 2011 Iain Arnell <iarnell@xxxxxxxxx> 1.00-1 +- Specfile autogenerated by cpanspec 1.79. diff --git a/sources b/sources index e69de29..0a9f26b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +879051d329ea79f59eb4b03bb0bf7c87 Parallel-Iterator-1.00.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel