commit 82eb77909ab7dba4594ebe98cc58408637a891fb
Author: Adam Osuchowski <[email protected]>
Date:   Sun Jul 21 21:25:17 2019 +0200

    - initial, version 0.41

 perl-Future.spec | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)
---
diff --git a/perl-Future.spec b/perl-Future.spec
new file mode 100644
index 0000000..e076107
--- /dev/null
+++ b/perl-Future.spec
@@ -0,0 +1,68 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
+%define        pnam    Future
+Summary:       Future - represent an operation awaiting completion
+Name:          perl-Future
+Version:       0.41
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       
http://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{pnam}-%{version}.tar.gz
+# Source0-md5: f83f2ec38a5b3f43fd91bdc886ae151b
+URL:           http://search.cpan.org/dist/Future/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: perl-Module-Build
+%if %{with tests}
+BuildRequires: perl-Test-Identity
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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 of sub-tasks, and are implicitly
+marked as ready depending on the readiness of their component futures
+as required. These are called "convergent" futures here as they
+converge control and data-flow back into one place. These are the ones
+returned by the various wait_* and need_* constructors.
+
+%prep
+%setup -q -n %{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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Future.pm
+%{perl_vendorlib}/Future
+%{perl_vendorlib}/Test/Future.pm
+%{perl_vendorlib}/Test/Future
+%{_mandir}/man3/Future*.3pm*
+%{_mandir}/man3/Test::Future*.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Future.git/commitdiff/82eb77909ab7dba4594ebe98cc58408637a891fb

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to