diff options
author | Elan Ruusamäe | 2010-02-01 15:37:25 (GMT) |
---|---|---|
committer | cvs2git | 2012-06-24 12:13:13 (GMT) |
commit | 3c9642a96be216f798a61bfe94fa6ffd771ac947 (patch) | |
tree | 3ecc235fccd27c144135817fe6014828bef7924a | |
download | perl-Parallel-Iterator-3c9642a96be216f798a61bfe94fa6ffd771ac947.zip perl-Parallel-Iterator-3c9642a96be216f798a61bfe94fa6ffd771ac947.tar.gz |
- new by pldcpanauto/ac/perl-Parallel-Iterator-1_00-1
Changed files:
perl-Parallel-Iterator.spec -> 1.1
-rw-r--r-- | perl-Parallel-Iterator.spec | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/perl-Parallel-Iterator.spec b/perl-Parallel-Iterator.spec new file mode 100644 index 0000000..730bb3b --- /dev/null +++ b/perl-Parallel-Iterator.spec @@ -0,0 +1,66 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir Parallel +%define pnam Iterator +Summary: Parallel::Iterator - Simple parallel execution +Name: perl-Parallel-Iterator +Version: 1.00 +Release: 1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/Parallel/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: 879051d329ea79f59eb4b03bb0bf7c87 +URL: http://search.cpan.org/dist/Parallel-Iterator/ +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%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. + +There is, however, a considerable overhead associated with forking, so +the example in the synopsis (doubling a list of numbers) is not a +sensible use of this module. + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Build.PL \ + destdir=$RPM_BUILD_ROOT \ + installdirs=vendor +./Build + +%{?with_tests:./Build test} + +%install +rm -rf $RPM_BUILD_ROOT +./Build install + +install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%{perl_vendorlib}/Parallel/*.pm +%{_mandir}/man3/* +%{_examplesdir}/%{name}-%{version} |