3 %bcond_without tests # do not perform "make test"
6 Summary: Future - represent an operation awaiting completion
11 License: GPL v1+ or Artistic
12 Group: Development/Languages/Perl
13 Source0: http://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{pnam}-%{version}.tar.gz
14 # Source0-md5: f83f2ec38a5b3f43fd91bdc886ae151b
15 URL: http://search.cpan.org/dist/Future/
16 BuildRequires: perl-devel >= 1:5.8.0
17 BuildRequires: rpm-perlprov >= 4.1-13
18 BuildRequires: perl-Module-Build
20 BuildRequires: perl-Test-Identity
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 A Future object represents an operation that is currently in progress,
27 or has recently completed. It can be used in a variety of ways to
28 manage the flow of control, and data, through an asynchronous program.
30 Some futures represent a single operation and are explicitly marked as
31 ready by calling the done or fail methods. These are called "leaf"
32 futures here, and are returned by the new constructor.
34 Other futures represent a collection of sub-tasks, and are implicitly
35 marked as ready depending on the readiness of their component futures
36 as required. These are called "convergent" futures here as they
37 converge control and data-flow back into one place. These are the ones
38 returned by the various wait_* and need_* constructors.
41 %setup -q -n %{pnam}-%{version}
45 destdir=$RPM_BUILD_ROOT \
49 %{?with_tests:./Build test}
52 rm -rf $RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %{perl_vendorlib}/Future.pm
63 %{perl_vendorlib}/Future
64 %{perl_vendorlib}/Test/Future.pm
65 %{perl_vendorlib}/Test/Future
66 %{_mandir}/man3/Future*.3pm*
67 %{_mandir}/man3/Test::Future*.3pm*