[perl-Coro/f18] Unbundle libecb

Petr Pisar ppisar at fedoraproject.org
Mon Oct 22 14:46:04 UTC 2012


commit 098ce20e22f611019f9c180b323fda2d6074d0c5
Author: Petr Písař <ppisar at redhat.com>
Date:   Mon Oct 22 15:21:02 2012 +0200

    Unbundle libecb

 Coro-6.09-Fix-a-typo-in-ecb.h.patch |   27 ---------------------------
 perl-Coro.spec                      |   12 ++++++++++--
 2 files changed, 10 insertions(+), 29 deletions(-)
---
diff --git a/perl-Coro.spec b/perl-Coro.spec
index 9363870..75fbddb 100644
--- a/perl-Coro.spec
+++ b/perl-Coro.spec
@@ -7,8 +7,7 @@ Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Coro/
 Source0:        http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Coro-%{version}.tar.gz
 Patch0:         %{name}-5.25-ucontext-default.patch
-# Bug #863991, CPAN RT #80056
-Patch1:         Coro-6.09-Fix-a-typo-in-ecb.h.patch
+BuildRequires:  libecb
 BuildRequires:  perl(AnyEvent) >= 5
 BuildRequires:  perl(base)
 BuildRequires:  perl(Carp)
@@ -36,6 +35,7 @@ Requires:       perl(EV) >= 3
 Requires:       perl(Event) >= 1.08
 Requires:       perl(Guard) >= 0.5
 Requires:       perl(Storable) >= 2.15
+Provides:       bundled(libecb)%(rpm -q libecb --qf ' = %{VERSION}' 2>/dev/null)
 
 # RPM 4.8 style:
 # Filter underspecified dependencies
@@ -80,6 +80,11 @@ programming much safer and easier than using other thread models.
 
 %prep
 %setup -q -n Coro-%{version}
+# Unbundle libecb
+rm Coro/ecb.h
+sed -i '/^Coro\/ecb\.h$/d' MANIFEST
+sed -i 's/ecb\.h//' Coro/Makefile.PL
+
 # use ucontext backend on non-x86 (setjmp didn't work on s390(x))
 %ifnarch %{ix86} x86_64 %{arm}
 %patch0 -p1 -b .ucontext-default
@@ -130,6 +135,9 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Mon Oct 22 2012 Petr Pisar <ppisar at redhat.com> - 6.09-2
+- Unbundle libecb (bug #863988)
+
 * Mon Oct 08 2012 Petr Pisar <ppisar at redhat.com> - 6.09-2
 - Fix building on big endian system (bug #863991)
 



More information about the perl-devel mailing list