[perl-Coro] Import perl-Coro

Petr Pisar ppisar at fedoraproject.org
Wed Jan 5 16:28:29 UTC 2011


commit 1599447db76145a0b8df3781baf593466d6a2f62
Author: Petr Písař <ppisar at redhat.com>
Date:   Wed Jan 5 17:27:38 2011 +0100

    Import perl-Coro

 .gitignore     |    1 +
 perl-Coro.spec |   87 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 3 files changed, 89 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3ebd124 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Coro-5.25.tar.gz
diff --git a/perl-Coro.spec b/perl-Coro.spec
new file mode 100644
index 0000000..bb3f6dd
--- /dev/null
+++ b/perl-Coro.spec
@@ -0,0 +1,87 @@
+Name:           perl-Coro
+Version:        5.25
+Release:        1%{?dist}
+Summary:        The only real threads in perl
+License:        GPL+ or Artistic
+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
+BuildRequires:  perl(AnyEvent) >= 5
+BuildRequires:  perl(common::sense)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Guard) >= 0.5
+BuildRequires:  perl(Scalar::Util)
+BuildRequires:  perl(Storable) >= 2.15
+BuildRequires:  perl(Time::HiRes)
+# Recommended optional modules
+BuildRequires:  perl(AnyEvent::AIO) >= 1
+BuildRequires:  perl(AnyEvent::BDB) >= 1
+BuildRequires:  perl(BDB)
+# perl-EV not packaged
+#BuildRequires:  perl(EV) >= 3
+BuildRequires:  perl(Event) >= 1.08
+BuildRequires:  perl(IO::AIO) >= 3.1
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+# Export correct required versions
+Requires:       perl(AnyEvent) >= 5
+Requires:       perl(AnyEvent::AIO) >= 1
+Requires:       perl(AnyEvent::BDB) >= 1
+Requires:       perl(Event) >= 1.08
+Requires:       perl(Guard) >= 0.5
+Requires:       perl(Storable) >= 2.15
+
+# Filter underspecified dependencies
+%filter_from_requires /^perl(AnyEvent)$/d
+%filter_from_requires /^perl(AnyEvent) >= 4.800001$/d
+%filter_from_requires /^perl(AnyEvent::AIO)$/d
+%filter_from_requires /^perl(AnyEvent::BDB)$/d
+%filter_from_requires /^perl(Event)$/d
+%filter_from_requires /^perl(Guard)$/d
+%filter_from_requires /^perl(Storable)$/d
+%filter_from_provides /^perl(Coro)$/d
+%{?perl_default_filter}
+
+%description
+This module collection manages continuations in general, most often in the
+form of cooperative threads (also called coros, or simply "coro" in the
+documentation). They are similar to kernel threads but don't (in general) run
+in parallel at the same time even on SMP machines. The specific flavor of
+thread offered by this module also guarantees you that it will not switch
+between threads unless necessary, at easily-identified points in your
+program, so locking and parallel access are rarely an issue, making thread
+programming much safer and easier than using other thread models.
+
+
+%prep
+%setup -q -n Coro-%{version}
+%fix_shbang_line eg/myhttpd
+
+%build
+# Interractive configuration. Use default values.
+%{__perl} Makefile.PL INSTALLDIRS=perl OPTIMIZE="$RPM_OPT_FLAGS" </dev/null
+make %{?_smp_mflags}
+
+%install
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%defattr(-,root,root,-)
+%doc Changes COPYING README README.linux-glibc
+%doc doc/* eg
+%{perl_archlib}/auto/*
+%{perl_archlib}/Coro*
+%{_mandir}/man3/*
+
+%changelog
+* Tue Jan 04 2011 Petr Pisar <ppisar at redhat.com> 5.25-1
+- 5.25 import
+- Disable perl(EV) support as it's not packaged yet
diff --git a/sources b/sources
index e69de29..c50ff87 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+421ac184fe738b2b061dadca96f25946  Coro-5.25.tar.gz


More information about the scm-commits mailing list