3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Component-Daemon
8 Summary: POE::Component::Daemon - Handles all the housework for a daemon
10 Name: perl-POE-Component-Daemon
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/POE/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: ceb684aa01237ce2eb884fdbf81b8370
18 # generic URL, check or change before uncommenting
19 #URL: http://search.cpan.org/dist/POE-Component-Daemon/
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRequires: perl(POE::API::Peek) >= 1
24 BuildRequires: perl-POE >= 0.3202
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Dealing with all the little details of a forking daemon can be
31 annoying and hard. POE::Component::Daemon encapsulates all the details
32 into one place and (hopefully) gets them right.
34 POE::Component::Daemon will deal with all the annoying details of
35 creating and maintaining daemon processes. It can detach from the
36 console, handle pre-forking pools or post-forking (ie, fork on each
37 request). It will also redirect STDERR to a log file if asked.
39 POE::Component::Daemon also babysits child processes, handling their
40 CHLD. POE::Component::Daemon can also makes sure requests don't take
41 to long. If they do, it will try to get rid of them. See /BABYSITING
44 POE::Component::Daemon does not handle listening on sockets. That is
47 Like all of POE, POE::Component::Daemon works cooperatively. It is up
48 your code to tell POE::Component::Daemon when it is time to fork,
49 block incoming requests when approriate and so on.
51 # %description -l pl.UTF-8
55 %setup -q -n %{pdir}-%{pnam}-%{version}
58 %{__perl} Makefile.PL \
62 %{?with_tests:%{__make} test}
65 rm -rf $RPM_BUILD_ROOT
67 %{__make} pure_install \
68 DESTDIR=$RPM_BUILD_ROOT
71 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
76 %{perl_vendorlib}/POE/Component/*.pm
77 %{perl_vendorlib}/POE/Component/Daemon