* Update to the latest available version of perl-Coro. * Add missing build and runtime dependencies.
Fixes #10877.
Signel-off-by: Stefan Schantl stefan.schantl@ipfire.org --- perl-Coro/perl-Coro.nm | 46 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 42 insertions(+), 4 deletions(-)
diff --git a/perl-Coro/perl-Coro.nm b/perl-Coro/perl-Coro.nm index 5f25160..04ca803 100644 --- a/perl-Coro/perl-Coro.nm +++ b/perl-Coro/perl-Coro.nm @@ -4,8 +4,8 @@ ###############################################################################
name = perl-Coro -version = 6.42 -release = 1.1 +version = 6.49 +release = 1 thisapp = Coro-%{version}
groups = Development/Libraries @@ -24,8 +24,34 @@ source_dl = http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/
build requires - perl(ExtUtils::MakeMaker) - perl(ExtUtils::ParseXS) + coreutils + findutils + perl(AnyEvent) >= 7 + perl(AnyEvent::AIO) >= 1 + perl(AnyEvent::BDB) >= 1 + perl(AnyEvent::Socket) + perl(AnyEvent::Util) + perl(Canary::Stability) + perl(Carp) + perl(Config) + perl(Errno) + perl(Exporter) + perl(EV) >= 4 + perl(EV::MakeMaker) + perl(Event) >= 1.08 + perl(Event::MakeMaker) + perl(ExtUtils::MakeMaker) >= 6.52 + perl(Guard) >= 0.5 + perl(IO::Socket::INET) + perl(Scalar::Util) + perl(Socket) + perl(Storable) >= 2.15 + perl(XSLoader) + perl(base) + perl(common::sense) + perl(overload) + perl(strict) + perl(warnings) pakfire >= 0.9.26-3.1 end
@@ -41,6 +67,10 @@ build make %{PARALLELISMFLAGS} end
+ test + make test + end + make_install_targets = \ pure_install DESTDIR=%{BUILDROOT} end @@ -58,6 +88,14 @@ packages
requires perl(:MODULE_COMPAT_%{perl_version}) + perl(AnyEvent) >= 7 + perl(AnyEvent::AIO) >= 1 + perl(AnyEvent::BDB) >= 1 + perl(EV) >= 4 + perl(Event) >= 1.08 + perl(Guard) >= 0.5 + perl(Storable) >= 2.15 + perl(warnings) end end
This is a build and runtime dependency of perl-Coro.
Signed-off-by: Stefan Schantl stefan.schantl@ipfire.org --- perl-AnyEvent/perl-AnyEvent.nm | 103 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 perl-AnyEvent/perl-AnyEvent.nm
diff --git a/perl-AnyEvent/perl-AnyEvent.nm b/perl-AnyEvent/perl-AnyEvent.nm new file mode 100644 index 0000000..0021591 --- /dev/null +++ b/perl-AnyEvent/perl-AnyEvent.nm @@ -0,0 +1,103 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team info@ipfire.org # +############################################################################### + +name = perl-AnyEvent +version = 7.12 +release = 1 +thisapp = AnyEvent-%{version} + +groups = Development/Libraries +url = http://search.cpan.org/dist/AnyEvent/ +license = GPL+ or Artistic +summary = Framework for multiple event loops. + +description + AnyEvent provides an identical interface to multiple event loops. This allows + module authors to utilize an event loop without forcing module users to use the + same event loop. +end + +source_dl = http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/ + +build + requires + coreutils + findutils + perl(Carp) + perl(Canary::Stability) + perl(Exporter) + perl(ExtUtils::MakeMaker) + perl(ExtUtils::ParseXS) + perl(File::Spec) + perl(File::Temp) + perl(List::Util) + perl(Net::SSLeay) + perl(Scalar::Util) + perl(Socket) + perl(Storable) + perl(Test::More) + perl(Time::HiRes) + perl(base) + perl(overload) + pakfire >= 0.9.26-3.1 + end + + build + perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{CFLAGS}" + make %{PARALLELISMFLAGS} + end + + test + # PERL_ANYEVENT_NET_TESTS shouldn't be set to avoid network tests + # on the builder. + export PERL_ANYEVENT_LOOP_TESTS=1 + make test + end + + make_install_targets = \ + pure_install DESTDIR=%{BUILDROOT} +end + +packages + package %{name} + filter_requires + AnyEvent::AIO + Cocoa::EventLoop + EV + Event + Event::Lib + EventLoop + FLTK + Glib + IO::AIO + IO::Async::Loop + Irssi + POE + Qt + Qt::isa + Qt::slots + Tk + UV + end + + requires + perl(:MODULE_COMPAT_%{perl_version}) + perl(Storable) + end + + # Filter unversioned and bogus provides. + filter_provides + DB + Impl + Cocoa + FLTK + UV + end + end + + package %{name}-debuginfo + template DEBUGINFO + end +end
This is a build and runtime dependency of perl-Coro.
Signed-off-by: Stefan Schantl stefan.schantl@ipfire.org --- perl-AnyEvent-AIO/perl-AnyEvent-AIO.nm | 54 ++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 perl-AnyEvent-AIO/perl-AnyEvent-AIO.nm
diff --git a/perl-AnyEvent-AIO/perl-AnyEvent-AIO.nm b/perl-AnyEvent-AIO/perl-AnyEvent-AIO.nm new file mode 100644 index 0000000..c1d00d4 --- /dev/null +++ b/perl-AnyEvent-AIO/perl-AnyEvent-AIO.nm @@ -0,0 +1,54 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team info@ipfire.org # +############################################################################### + +name = perl-AnyEvent-AIO +version = 1.1 +release = 1 +arch = noarch +thisapp = AnyEvent-AIO-%{version} + +groups = Development/Libraries +url = http://search.cpan.org/dist/AnyEvent-BDB/ +license = GPL+ or Artistic +summary = Truly asynchronous file and directory I/O + +description + Truly asynchronous file and directrory I/O.. +end + +source_dl = http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/ + +build + requires + perl(AnyEvent) >= 3.81 + perl(IO::AIO) >= 3 + perl(ExtUtils::MakeMaker) + pakfire >= 0.9.26-3.1 + 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
Hi,
this won't build:
+ make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t Can't load '/usr/lib64/perl5/vendor_perl/auto/IO/AIO/AIO.so' for module IO::AIO: /usr/lib64/perl5/vendor_perl/auto/IO/AIO/AIO.so: undefined symbol: Perl_gv_init at /usr/share/perl5/XSLoader.pm line 68. at /usr/lib64/perl5/vendor_perl/IO/AIO.pm line 200. BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/IO/AIO.pm line 201. Compilation failed in require at /builddir/source/AnyEvent-AIO-1.1/blib/lib/AnyEvent/AIO.pm line 35. BEGIN failed--compilation aborted at /builddir/source/AnyEvent-AIO-1.1/blib/lib/AnyEvent/AIO.pm line 35. Compilation failed in require at t/00_load.t line 3. BEGIN failed--compilation aborted at t/00_load.t line 3. t/00_load.t .. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 1/1 subtests
Test Summary Report ------------------- t/00_load.t (Wstat: 65280 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 255 Files=1, Tests=1, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.01 cusr 0.00 csys = 0.03 CPU) Result: FAIL Failed 1/1 test programs. 1/1 subtests failed. Makefile:766: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Error 255 Command exited with an error: ['bash', '--login', '-c', '/tmp/tmpIiLVeJ']
On Thu, 2016-04-14 at 08:30 +0200, Stefan Schantl wrote:
This is a build and runtime dependency of perl-Coro.
Signed-off-by: Stefan Schantl stefan.schantl@ipfire.org
perl-AnyEvent-AIO/perl-AnyEvent-AIO.nm | 54 ++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 perl-AnyEvent-AIO/perl-AnyEvent-AIO.nm
diff --git a/perl-AnyEvent-AIO/perl-AnyEvent-AIO.nm b/perl-AnyEvent-AIO/perl- AnyEvent-AIO.nm new file mode 100644 index 0000000..c1d00d4 --- /dev/null +++ b/perl-AnyEvent-AIO/perl-AnyEvent-AIO.nm @@ -0,0 +1,54 @@ +############################################################################# ## +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team info@ipfire.org # +############################################################################# ##
+name = perl-AnyEvent-AIO +version = 1.1 +release = 1 +arch = noarch +thisapp = AnyEvent-AIO-%{version}
+groups = Development/Libraries +url = http://search.cpan.org/dist/AnyEvent-BDB/ +license = GPL+ or Artistic +summary = Truly asynchronous file and directory I/O
+description
- Truly asynchronous file and directrory I/O..
+end
+source_dl = http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/
+build
- requires
perl(AnyEvent) >= 3.81
perl(IO::AIO) >= 3
perl(ExtUtils::MakeMaker)
pakfire >= 0.9.26-3.1
- 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
Hello Michael,
thanks for testing and your feedback. I've tried to build this perl module again and it works without and problems. (Even for perl 5.20 and with perl 5.14).
Best regards,
-Stefan
Hi,
this won't build:
- make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "- MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t Can't load '/usr/lib64/perl5/vendor_perl/auto/IO/AIO/AIO.so' for module IO::AIO: /usr/lib64/perl5/vendor_perl/auto/IO/AIO/AIO.so: undefined symbol: Perl_gv_init at /usr/share/perl5/XSLoader.pm line 68. at /usr/lib64/perl5/vendor_perl/IO/AIO.pm line 200. BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/IO/AIO.pm line 201. Compilation failed in require at /builddir/source/AnyEvent-AIO- 1.1/blib/lib/AnyEvent/AIO.pm line 35. BEGIN failed--compilation aborted at /builddir/source/AnyEvent-AIO- 1.1/blib/lib/AnyEvent/AIO.pm line 35. Compilation failed in require at t/00_load.t line 3. BEGIN failed--compilation aborted at t/00_load.t line 3. t/00_load.t .. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 1/1 subtests
Test Summary Report
t/00_load.t (Wstat: 65280 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 255 Files=1, Tests=1, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.01 cusr 0.00 csys = 0.03 CPU) Result: FAIL Failed 1/1 test programs. 1/1 subtests failed. Makefile:766: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Error 255 Command exited with an error: ['bash', '--login', '-c', '/tmp/tmpIiLVeJ']
On Thu, 2016-04-14 at 08:30 +0200, Stefan Schantl wrote:
This is a build and runtime dependency of perl-Coro.
Signed-off-by: Stefan Schantl stefan.schantl@ipfire.org
perl-AnyEvent-AIO/perl-AnyEvent-AIO.nm | 54 ++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 perl-AnyEvent-AIO/perl-AnyEvent-AIO.nm
diff --git a/perl-AnyEvent-AIO/perl-AnyEvent-AIO.nm b/perl- AnyEvent-AIO/perl- AnyEvent-AIO.nm new file mode 100644 index 0000000..c1d00d4 --- /dev/null +++ b/perl-AnyEvent-AIO/perl-AnyEvent-AIO.nm @@ -0,0 +1,54 @@ +################################################################## ########### ## +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team info@ipfire.org # +################################################################## ########### ##
+name = perl-AnyEvent-AIO +version = 1.1 +release = 1 +arch = noarch +thisapp = AnyEvent-AIO-%{version}
+groups = Development/Libraries +url = http://search.cpan.org/dist/AnyEvent-BDB/ +license = GPL+ or Artistic +summary = Truly asynchronous file and directory I/O
+description
- Truly asynchronous file and directrory I/O..
+end
+source_dl = http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/
+build
- requires
perl(AnyEvent) >= 3.81
perl(IO::AIO) >= 3
perl(ExtUtils::MakeMaker)
pakfire >= 0.9.26-3.1
- 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
This is a build and runtime dependency of perl-Coro.
Signed-off-by: Stefan Schantl stefan.schantl@ipfire.org --- perl-AnyEvent-BDB/perl-AnyEvent-BDB.nm | 57 ++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 perl-AnyEvent-BDB/perl-AnyEvent-BDB.nm
diff --git a/perl-AnyEvent-BDB/perl-AnyEvent-BDB.nm b/perl-AnyEvent-BDB/perl-AnyEvent-BDB.nm new file mode 100644 index 0000000..b12e425 --- /dev/null +++ b/perl-AnyEvent-BDB/perl-AnyEvent-BDB.nm @@ -0,0 +1,57 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team info@ipfire.org # +############################################################################### + +name = perl-AnyEvent-BDB +version = 1.1 +release = 1 +arch = noarch +thisapp = AnyEvent-BDB-%{version} + +groups = Development/Libraries +url = http://search.cpan.org/dist/AnyEvent-BDB/ +license = GPL+ or Artistic +summary = Truly asynchronous Berkeley DB access. + +description + Loading this module will install the necessary magic to seamlessly integrate + BDB into AnyEvent, i.e. you no longer need to concern yourself with calling + BDB::poll_cb or any of that stuff. +end + +source_dl = http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/ + +build + requires + perl(AnyEvent) >= 3.81 + perl(BDB) >= 1.91 + perl(Exporter) + perl(ExtUtils::MakeMaker) + pakfire >= 0.9.26-3.1 + 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
This is a build dependency of perl-Coro.
Signed-off-by: Stefan Schantl stefan.schantl@ipfire.org --- perl-Canary-Stability/perl-Canary-Stability.nm | 51 ++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 perl-Canary-Stability/perl-Canary-Stability.nm
diff --git a/perl-Canary-Stability/perl-Canary-Stability.nm b/perl-Canary-Stability/perl-Canary-Stability.nm new file mode 100644 index 0000000..24046b9 --- /dev/null +++ b/perl-Canary-Stability/perl-Canary-Stability.nm @@ -0,0 +1,51 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team info@ipfire.org # +############################################################################### + +name = perl-Canary-Stability +version = 2011 +release = 1 +arch = noarch +thisapp = Canary-Stability-%{version} + +groups = Development/Libraries +url = http://search.cpan.org/dist/Canary-Stability +license = GPL+ +summary = Canary to check perl compatibility for Schmorp's modules. + +description + This module is used by Schmorp's modules during configuration stage to test + the installed perl for compatibility with his modules. +end + +source_dl = http://www.cpan.org/authors/id/M/ML/MLEHMANN/ + +build + requires + findutils + perl(ExtUtils::MakeMaker) + pakfire >= 0.9.26-3.1 + end + + build + perl Makefile.PL INSTALLDIRS=vendor + make %{PARALLELISMFLAGS} + end + + test + make test + end + + make_install_targets = \ + pure_install +end + +packages + package %{name} + requires + perl(:MODULE_COMPAT_%{perl_version}) + perl(ExtUtils::MakeMaker) + end + end +end
This is a build and runtime dependency of perl-Coro.
Signed-off-by: Stefan Schantl stefan.schantl@ipfire.org --- perl-Event/perl-Event.nm | 71 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 perl-Event/perl-Event.nm
diff --git a/perl-Event/perl-Event.nm b/perl-Event/perl-Event.nm new file mode 100644 index 0000000..f80cb6e --- /dev/null +++ b/perl-Event/perl-Event.nm @@ -0,0 +1,71 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team info@ipfire.org # +############################################################################### + +name = perl-Event +version = 1.24 +release = 1 +thisapp = Event-%{version} + +groups = Development/Libraries +url = http://search.cpan.org/dist/Event/ +license = GPL+ or Artistic +summary = Event loop processing perl module. + +description + The Event module provide a central facility to watch for various types of + events and invoke a callback when these events occur. The idea is to delay the + handling of events so that they may be dispatched in priority order when it is + safe for callbacks to execute. +end + +source_dl = http://search.cpan.org/CPAN/authors/id/E/ET/ETJ/ + +build + requires + perl(Carp) + perl(Config) + perl(DynaLoader) + perl(Exporter) + perl(ExtUtils::MakeMaker) + perl(Symbol) + perl(Test) >= 1 + perl(Time::HiRes) + perl(base) + perl(integer) + perl(strict) + perl(vars) + pakfire >= 0.9.26-3.1 + end + + prepare_cmds + # Fix up permissions and shellbangs. + perl -pi -e 's|#!./perl|#!/usr/bin/perl|' demo/*.t t/*.t util/bench.pl + 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}) + perl(Time::HiRes) + end + end + + package %{name}-debuginfo + template DEBUGINFO + end +end
This is a build and runtime dependency of perl-Coro.
Signed-off-by: Stefan Schantl stefan.schantl@ipfire.org --- perl-Guard/perl-Guard.nm | 59 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 perl-Guard/perl-Guard.nm
diff --git a/perl-Guard/perl-Guard.nm b/perl-Guard/perl-Guard.nm new file mode 100644 index 0000000..be0a601 --- /dev/null +++ b/perl-Guard/perl-Guard.nm @@ -0,0 +1,59 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team info@ipfire.org # +############################################################################### + +name = perl-Guard +version = 1.023 +release = 1 +thisapp = Guard-%{version} + +groups = Development/Libraries +url = http://search.cpan.org/dist/Guard/ +license = GPL+ or Artistic +summary = Safe cleanup blocks. + +description + This module implements so-called "guards". A guard is something (usually an + object) that "guards" a resource, ensuring that it is cleaned up when expected. +end + +source_dl = http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/ + +build + requires + perl(Exporter) + perl(ExtUtils::MakeMaker) + perl(XSLoader) + perl(base) + perl(warnings) + pakfire >= 0.9.26-3.1 + 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}) + perl(Exporter) + perl(XSLoader) + perl(warnings) + end + end + + package %{name}-debuginfo + template DEBUGINFO + end +end
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
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