[perl-Server-Starter/f14/master] Import.
corsepiu
corsepiu at fedoraproject.org
Mon Jan 24 18:23:13 UTC 2011
commit 1ead01fb3776e99ad16671bd451ab59374ab69b8
Author: Ralf Corsépius <corsepiu at fedoraproject.org>
Date: Mon Jan 24 19:23:01 2011 +0100
Import.
.gitignore | 1 +
perl-Server-Starter.spec | 87 ++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 89 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d75d28f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Server-Starter-0.11.tar.gz
diff --git a/perl-Server-Starter.spec b/perl-Server-Starter.spec
new file mode 100644
index 0000000..f43676d
--- /dev/null
+++ b/perl-Server-Starter.spec
@@ -0,0 +1,87 @@
+Name: perl-Server-Starter
+Version: 0.11
+Release: 2%{?dist}
+Summary: Superdaemon for hot-deploying server programs
+License: GPL+ or Artistic
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/Server-Starter/
+Source0: http://www.cpan.org/authors/id/K/KA/KAZUHO/Server-Starter-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(List::MoreUtils)
+BuildRequires: perl(Proc::Wait3)
+BuildRequires: perl(Scope::Guard)
+BuildRequires: perl(Test::TCP) >= 0.11
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%package start_server
+Summary: perl-Server-Starter start_server script
+# FIXME: This doesn't make much sense. If at all, then this should be
+# Requires: perl(Server::Starter) = perl-version(Server::Starter)
+Requires: perl-Server-Starter = %{version}-%{release}
+
+%description
+It is often a pain to write a server program that supports graceful
+restarts, with no resource leaks. Server::Starter, solves the problem by
+splitting the task into two. One is start_server, a script provided as a
+part of the module, which works as a superdaemon that binds to zero or
+more TCP ports, and repeatedly spawns the server program that actually
+handles the necessary tasks (for example, responding to incoming
+connections). The spawned server programs under Server::Starter call
+accept(2) and handle the requests.
+
+%description start_server
+perl-Server-Starter's start_server script.
+
+%prep
+%setup -q -n Server-Starter-%{version}
+
+%build
+# --skipdeps causes ExtUtils::AutoInstall not to try auto-installing
+# missing modules
+%{__perl} Makefile.PL INSTALLDIRS=vendor --skipdeps
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%files start_server
+%defattr(-,root,root,-)
+%{_bindir}/start_server
+%{_mandir}/man1/start_server.*
+
+%changelog
+* Mon Jan 24 2011 Ralf Corsépius <corsepiu at fedoraproject.org> 0.11-2
+- Add "Requires: perl-Server-Starter = %%{version}-%%{release}"
+ per reviewer's demand.
+
+* Thu Jan 20 2011 Ralf Corsépius <corsepiu at fedoraproject.org> 0.11-1
+- Upstream update.
+- Reflect package review.
+
+* Wed Dec 22 2010 Ralf Corsépius <corsepiu at fedoraproject.org> 0.09-2
+- Put start_server into separate subpackage.
+
+* Wed Dec 22 2010 Ralf Corsépius <corsepiu at fedoraproject.org> 0.09-1
+- Initial Fedora package.
diff --git a/sources b/sources
index e69de29..3c9d5ff 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+037d75831a23ca76cd306d678b20332e Server-Starter-0.11.tar.gz
More information about the perl-devel
mailing list