libev is a high-performance event module. It is used by perl-EV which is a build and runtime dependency of perl-Coro.
Signed-off-by: Stefan Schantl stefan.schantl@ipfire.org --- libev/libev.nm | 81 ++++++++++++++++++++++ ...libev-4.20-Respect-the-CFLAGS-if-defined.patch0 | 19 +++++ 2 files changed, 100 insertions(+) create mode 100644 libev/libev.nm create mode 100644 libev/patches/libev-4.20-Respect-the-CFLAGS-if-defined.patch0
diff --git a/libev/libev.nm b/libev/libev.nm new file mode 100644 index 0000000..3cc1088 --- /dev/null +++ b/libev/libev.nm @@ -0,0 +1,81 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team info@ipfire.org # +############################################################################### + +name = libev +version = 4.22 +release = 1 + +groups = System/Libraries +url = http://software.schmorp.de/pkg/libev.html +license = BSD or GPLv2+ +summary = High-performance event loop/event model with lots of features. + +description + Libev is modeled (very loosely) after libevent and the Event Perl + module, but is faster, scales better and is more correct, and also more + featureful. And also smaller. +end + +source_dl = http://dist.schmorp.de/libev/Attic/ + +# Specify directory for installing the source code of libev, for packaging into +# own sub-package. +libev-src-instdir = %{BUILDROOT}%{datadir}/%{name}-source/ + +build + requires + autoconf + automake + libtool + end + + configure_options += \ + --disable-static \ + --with-pic + + prepare_cmds + autoreconf -vi + end + + test + make check + end + + install_cmds + # Make the source package + mkdir -pv %{libev-src-instdir} + find . -type f | grep -E '.*.(c|h|am|ac|inc|m4|h.in|man.pre|pl|txt)$' | xargs tar cf - | (cd %{libev-src-instdir} && tar xf -) + install -p -m 0644 Changes ev.pod LICENSE README %{libev-src-instdir} + end +end + +packages + package %{name} + + package %{name}-devel + template DEVEL + + conflicts + libevent-devel + end + end + + package %{name}-source + summary = Source code of libev, a high-performance event loop model. + arch = noarch + description + This package contains the source code of libev, a + high-performance event loop/event model with lots of features. + end + + files + %{datadir}/%{name}-source + end + end + + package %{name}-debuginfo + template DEBUGINFO + end +end diff --git a/libev/patches/libev-4.20-Respect-the-CFLAGS-if-defined.patch0 b/libev/patches/libev-4.20-Respect-the-CFLAGS-if-defined.patch0 new file mode 100644 index 0000000..2ed787e --- /dev/null +++ b/libev/patches/libev-4.20-Respect-the-CFLAGS-if-defined.patch0 @@ -0,0 +1,19 @@ +--- configure.ac 2015-06-20 13:03:45.000000000 +0200 ++++ configure.ac.new 2015-10-17 11:44:33.481244447 +0200 +@@ -1,7 +1,5 @@ + AC_INIT + +-orig_CFLAGS="$CFLAGS" +- + AC_CONFIG_SRCDIR([ev_epoll.c]) + + dnl also update ev.h! +@@ -9,6 +7,8 @@ + AC_CONFIG_HEADERS([config.h]) + AM_MAINTAINER_MODE + ++orig_CFLAGS="$CFLAGS" ++ + AC_PROG_CC + + dnl Supply default CFLAGS, if not specified