forked from pool/perl-Future
87 lines
3.1 KiB
RPMSpec
87 lines
3.1 KiB
RPMSpec
|
|
#
|
||
|
|
# spec file for package perl-Future
|
||
|
|
#
|
||
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
|
|
#
|
||
|
|
# All modifications and additions to the file contributed by third parties
|
||
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
||
|
|
# upon. The license for this file, and modifications and additions to the
|
||
|
|
# file, is the same license as for the pristine package itself (unless the
|
||
|
|
# license for the pristine package is not an Open Source License, in which
|
||
|
|
# case the license is the MIT License). An "Open Source License" is a
|
||
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||
|
|
# published by the Open Source Initiative.
|
||
|
|
|
||
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
|
#
|
||
|
|
|
||
|
|
|
||
|
|
Name: perl-Future
|
||
|
|
Version: 0.19
|
||
|
|
Release: 0
|
||
|
|
%define cpan_name Future
|
||
|
|
Summary: represent an operation awaiting completion
|
||
|
|
License: Artistic-1.0 or GPL-1.0+
|
||
|
|
Group: Development/Libraries/Perl
|
||
|
|
Url: http://search.cpan.org/dist/Future/
|
||
|
|
Source: http://www.cpan.org/authors/id/P/PE/PEVANS/%{cpan_name}-%{version}.tar.gz
|
||
|
|
BuildArch: noarch
|
||
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
BuildRequires: perl
|
||
|
|
BuildRequires: perl-macros
|
||
|
|
BuildRequires: perl(Module::Build)
|
||
|
|
BuildRequires: perl(Test::Fatal)
|
||
|
|
BuildRequires: perl(Test::Identity)
|
||
|
|
BuildRequires: perl(Test::More) >= 0.88
|
||
|
|
BuildRequires: perl(Test::Refcount)
|
||
|
|
#BuildRequires: perl(AnyEvent)
|
||
|
|
#BuildRequires: perl(Future)
|
||
|
|
#BuildRequires: perl(Future::Utils)
|
||
|
|
#BuildRequires: perl(IO::Async::Loop) >= 0.56
|
||
|
|
#BuildRequires: perl(POE)
|
||
|
|
%{perl_requires}
|
||
|
|
|
||
|
|
%description
|
||
|
|
A 'Future' object represents an operation that is currently in progress, or
|
||
|
|
has recently completed. It can be used in a variety of ways to manage the
|
||
|
|
flow of control, and data, through an asynchronous program.
|
||
|
|
|
||
|
|
Some futures represent a single operation and are explicitly marked as
|
||
|
|
ready by calling the 'done' or 'fail' methods. These are called "leaf"
|
||
|
|
futures here, and are returned by the 'new' constructor.
|
||
|
|
|
||
|
|
Other futures represent a collection sub-tasks, and are implicitly marked
|
||
|
|
as ready depending on the readiness of their component futures as required.
|
||
|
|
These are called "dependent" futures here, and are returned by the various
|
||
|
|
'wait_*' and 'need_*' constructors.
|
||
|
|
|
||
|
|
It is intended that library functions that perform asynchonous operations
|
||
|
|
would use future objects to represent outstanding operations, and allow
|
||
|
|
their calling programs to control or wait for these operations to complete.
|
||
|
|
The implementation and the user of such an interface would typically make
|
||
|
|
use of different methods on the class. The methods below are documented in
|
||
|
|
two sections; those of interest to each side of the interface.
|
||
|
|
|
||
|
|
See also the Future::Utils manpage which contains useful loop-constructing
|
||
|
|
functions, to run a future-returning function repeatedly in a loop.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -n %{cpan_name}-%{version}
|
||
|
|
|
||
|
|
%build
|
||
|
|
%{__perl} Build.PL installdirs=vendor
|
||
|
|
./Build build flags=%{?_smp_mflags}
|
||
|
|
|
||
|
|
%check
|
||
|
|
./Build test
|
||
|
|
|
||
|
|
%install
|
||
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
||
|
|
%perl_gen_filelist
|
||
|
|
|
||
|
|
%files -f %{name}.files
|
||
|
|
%defattr(-,root,root,755)
|
||
|
|
%doc Changes examples LICENSE README
|
||
|
|
|
||
|
|
%changelog
|