From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH 8/9] libev: New package. Date: Thu, 14 Apr 2016 08:30:44 +0200 Message-ID: <1460615445-3996-8-git-send-email-stefan.schantl@ipfire.org> In-Reply-To: <1460615445-3996-1-git-send-email-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5161982713528811346==" List-Id: --===============5161982713528811346== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 --- 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.pa= tch0 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 = # +############################################################################= ### + +name =3D libev +version =3D 4.22 +release =3D 1 + +groups =3D System/Libraries +url =3D http://software.schmorp.de/pkg/libev.html +license =3D BSD or GPLv2+ +summary =3D 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 =3D http://dist.schmorp.de/libev/Attic/ + +# Specify directory for installing the source code of libev, for packaging i= nto +# own sub-package. +libev-src-instdir =3D %{BUILDROOT}%{datadir}/%{name}-source/ + +build + requires + autoconf + automake + libtool + end + + configure_options +=3D \ + --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)$' | x= args 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 =3D Source code of libev, a high-performance event loop model. + arch =3D 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 +=20 +-orig_CFLAGS=3D"$CFLAGS" +- + AC_CONFIG_SRCDIR([ev_epoll.c]) +=20 + dnl also update ev.h! +@@ -9,6 +7,8 @@ + AC_CONFIG_HEADERS([config.h]) + AM_MAINTAINER_MODE +=20 ++orig_CFLAGS=3D"$CFLAGS" ++ + AC_PROG_CC +=20 + dnl Supply default CFLAGS, if not specified --=20 2.4.11 --===============5161982713528811346==--