3 %bcond_without tests # do not perform "make test"
7 Summary: Parallel::Iterator - Simple parallel execution
8 Summary(pl.UTF-8): Parallel::Iterator - proste zrównoleglenie wykonywania
9 Name: perl-Parallel-Iterator
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Parallel/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 879051d329ea79f59eb4b03bb0bf7c87
17 URL: http://search.cpan.org/dist/Parallel-Iterator/
18 BuildRequires: perl-Module-Build
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 Requires: perl-dirs >= 2.1-19
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 The map function applies a user supplied transformation function to
27 each element in a list, returning a new list containing the
30 This module provides a 'parallel map'. Multiple worker processes are
31 forked so that many instances of the transformation function may be
32 executed simultaneously.
34 For time consuming operations, particularly operations that spend most
35 of their time waiting for I/O, this is a big performance win. It also
36 provides a simple idiom to make effective use of multi CPU systems.
38 %description -l pl.UTF-8
39 Funkcja map wykonuje zadane przez użytkownika przekształcenie na
40 każdym elemencie listy, zwracając nową listę zawierającą
41 przekształcone elementy.
43 Ten moduł udostępnia równogległą wersję tej funkcji. Uruchamiane jest
44 wiele procesów, co pozwala na jednoczesne wykonywanie wielu instancji
45 funkcji przekształcenia.
47 Dla czasochłonnych operacji, w szczególności takich, przy których
48 większość to oczekiwanie na we/wy, daje to duży zysk wydajnościowy.
49 Moduł także udostępnia prosty idiom, pozwalający efektywnie
50 wykorzystać systemy wieloprocesorowe.
53 %setup -q -n %{pdir}-%{pnam}-%{version}
57 destdir=$RPM_BUILD_ROOT \
61 %{?with_tests:./Build test}
64 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
68 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
71 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
76 %{perl_vendorlib}/Parallel/Iterator.pm
77 %{_mandir}/man3/Parallel::Iterator.3pm*
78 %{_examplesdir}/%{name}-%{version}