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 - 0.93-1 - Initial release