[perl-Promises] Initial import (#1098778).

David Dick ddick at fedoraproject.org
Thu Jun 19 08:51:38 UTC 2014


commit 83203c70b6098dbd24b9dec85513557fc738e488
Author: David Dick <ddick at cpan.org>
Date:   Thu Jun 19 18:43:15 2014 +1000

    Initial import (#1098778).

 .gitignore         |    1 +
 perl-Promises.spec |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c027940 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Promises-0.93.tar.gz
diff --git a/perl-Promises.spec b/perl-Promises.spec
new file mode 100644
index 0000000..354abc0
--- /dev/null
+++ b/perl-Promises.spec
@@ -0,0 +1,60 @@
+Name:           perl-Promises
+Version:        0.93
+Release:        1%{?dist}
+Summary:        Implementation of Promises in Perl
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Promises/
+Source0:        http://www.cpan.org/modules/by-module/Promises/Promises-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl
+BuildRequires:  perl(AE)
+BuildRequires:  perl(AnyEvent)
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(constant)
+BuildRequires:  perl(EV)
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
+BuildRequires:  perl(lib)
+BuildRequires:  perl(Mojo::IOLoop)
+BuildRequires:  perl(Module::Runtime)
+BuildRequires:  perl(parent)
+BuildRequires:  perl(Scalar::Util)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(Sub::Exporter)
+BuildRequires:  perl(Test::Fatal)
+BuildRequires:  perl(Test::More) >= 0.89
+BuildRequires:  perl(warnings)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+This module is an implementation of the "Promise/A+" pattern for
+asynchronous programming. Promises are meant to be a way to better deal
+with the resulting callback spaghetti that can often result in
+asynchronous programs.
+
+%prep
+%setup -q -n Promises-%{version}
+sed -i 's|#!perl|#! /usr/bin/perl|' ./example/*.pl
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes example LICENSE README README.md
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Thu May 22 2014 David Dick <ddick at cpan.org> - 0.93-1
+- Initial release
diff --git a/sources b/sources
index e69de29..14f96b2 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1a1ff324f7da4ecdbbb5436d2001ccd8  Promises-0.93.tar.gz


More information about the scm-commits mailing list