This is a build and runtime dependency of perl-Coro.
Signed-off-by: Stefan Schantl stefan.schantl@ipfire.org --- ...EV-4.03-Don-t-ask-questions-at-build-time.patch | 29 ++++++++++ perl-EV/perl-EV.nm | 66 ++++++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100644 perl-EV/patches/perl-EV-4.03-Don-t-ask-questions-at-build-time.patch create mode 100644 perl-EV/perl-EV.nm
diff --git a/perl-EV/patches/perl-EV-4.03-Don-t-ask-questions-at-build-time.patch b/perl-EV/patches/perl-EV-4.03-Don-t-ask-questions-at-build-time.patch new file mode 100644 index 0000000..26d17be --- /dev/null +++ b/perl-EV/patches/perl-EV-4.03-Don-t-ask-questions-at-build-time.patch @@ -0,0 +1,29 @@ +From a812d071294832e47a3edbadba250616626b95b7 Mon Sep 17 00:00:00 2001 +From: Mathieu Bridon bochecha@fedoraproject.org +Date: Mon, 24 Jan 2011 16:07:23 +0800 +Subject: [PATCH] Don't ask questions at build time. + +Builds must not be interactive in Fedora. Let's just use the defaults +and avoid questions. +--- + Makefile.PL | 4 +--- + 1 files changed, 1 insertions(+), 3 deletions(-) + +diff --git a/Makefile.PL b/Makefile.PL +index 2a31180..28d8ddc 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -27,9 +27,7 @@ and hope for the best. The defaults should usually do. + + EOF + +-if (prompt ("Skip further questions and use defaults (y/n)?", "y") =~ /[yY]/) { +- $ENV{PERL_MM_USE_DEFAULT} = 1; +-} ++$ENV{PERL_MM_USE_DEFAULT} = 1; + + print <<EOF; + +-- +1.7.3.4 + diff --git a/perl-EV/perl-EV.nm b/perl-EV/perl-EV.nm new file mode 100644 index 0000000..579dab8 --- /dev/null +++ b/perl-EV/perl-EV.nm @@ -0,0 +1,66 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team info@ipfire.org # +############################################################################### + +name = perl-EV +version = 4.22 +release = 1 +thisapp = EV-%{version} + +groups = Development/Libraries +url = http://search.cpan.org/dist/EV/ +license = GPL+ or Artistic +summary = Wrapper for the libev high-performance event loop library. + +description + This module provides an interface for the libev high-performance event + loop library +end + +source_dl = http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/ + +build + requires + perl(AnyEvent) >= 2.6 + perl(Canary::Stability) + perl(ExtUtils::MakeMaker) + perl(common::sense) + libev-source >= 4.22 + gdbm-devel + pakfire >= 0.9.26-3.1 + end + + prepare_cmds + # Remove all traces of the bundled libev + rm -fr ./libev + + # Use the sources from the system libev + mkdir -p ./libev + cp -r /usr/share/libev-source/* ./libev/ + end + + build + perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{CFLAGS}" + make %{PARALLELISMFLAGS} + end + + test + make test + end + + make_install_targets = \ + pure_install DESTDIR=%{BUILDROOT} +end + +packages + package %{name} + requires + perl(:MODULE_COMPAT_%{perl_version}) + end + end + + package %{name}-debuginfo + template DEBUGINFO + end +end