Name: perl-Server-Starter Version: 0.07 Release: 1%{?dist} Summary: Superdaemon for hot-deploying server programs License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Server-Starter/ Source0: file:///home/dave/cpan/authors/id/K/KA/KAZUHO/Server-Starter-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl >= 1:5.8.0 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Proc::Wait3) BuildRequires: perl(Test::TCP) >= 0.11 Requires: perl(Proc::Wait3) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %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 commenctions). The spawned server programs under Server::Starter call accept(2) and handle the requests. %prep %setup -q -n Server-Starter-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor 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 start_server %{perl_vendorlib}/* %{_bindir}/* %{_mandir}/man1/* %{_mandir}/man3/* %changelog * Mon Jul 05 2010 Dave Cross 0.07-1 - Specfile autogenerated by cpanspec 1.78.