[perl-Net-Server-Coro] Initial package of perl-Net-Server-Coro

Mathieu Bridon bochecha at fedoraproject.org
Fri Feb 3 07:31:52 UTC 2012


commit 2e6e6e8b5e62c985316d2a6a3f94932d3788885d
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date:   Tue Jan 31 10:54:10 2012 +0800

    Initial package of perl-Net-Server-Coro
    
    This has been submitted to Fedora on Fri Jan 27 2012:
        https://bugzilla.redhat.com/show_bug.cgi?id=785057#c0

 perl-Net-Server-Coro.spec |   52 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 52 insertions(+), 0 deletions(-)
---
diff --git a/perl-Net-Server-Coro.spec b/perl-Net-Server-Coro.spec
new file mode 100644
index 0000000..b3c9b04
--- /dev/null
+++ b/perl-Net-Server-Coro.spec
@@ -0,0 +1,52 @@
+Name:           perl-Net-Server-Coro
+Version:        1.2
+Release:        1%{?dist}
+
+Summary:        Co-operative multithreaded server using Coro
+License:        MIT
+URL:            http://search.cpan.org/dist/Net-Server-Coro/
+
+Source0:        http://www.cpan.org/authors/id/A/AL/ALEXMV/Net-Server-Coro-%{version}.tar.gz
+
+BuildArch:      noarch
+
+BuildRequires:  perl(ExtUtils::MakeMaker)
+
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+# This one is not automatically caught by RPM
+Requires:       perl(Net::SSLeay)
+
+%description
+Net::Server::Coro implements multithreaded server for the Net::Server
+architecture, using Coro and Coro::Socket to make all reads and writes non-
+blocking. Additionally, it supports non-blocking SSL negotiation.
+
+
+%prep
+%setup -q -n Net-Server-Coro-%{version}
+
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+
+%install
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} %{buildroot}/*
+
+
+%files
+%doc Changes
+%{_mandir}/man?/Net::Server::Coro*.gz
+%{perl_vendorlib}/Net
+
+
+%changelog
+* Fri Jan 27 2012 Mathieu Bridon <bochecha at fedoraproject.org> - 1.2-1
+- Initial packaging, with a little help from my friend cpanspec.


More information about the scm-commits mailing list