%define module Net-Daemon %define name perl-%{module} %define version 0.43 %define release %mkrel 3 Name: %{name} Version: %{version} Release: %{release} Summary: Perl extension for portable daemons License: GPL or Artistic Group: Development/Perl Source: http://search.cpan.org/CPAN/authors/id/J/JW/JWIED/%{module}-%{version}.tar.bz2 Url: http://search.cpan.org/dist/%{module}/ %if %{mdkversion} < 1010 BuildRequires: perl-devel %endif BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description Net::Daemon is an abstract base class for implementing portable server applications in a very simple way. The module is designed for Perl 5.005 and threads, but can work with fork() and Perl 5.004. The Net::Daemon class offers methods for the most common tasks a daemon needs: Starting up, logging, accepting clients, authorization, restricting its own environment for security and doing the true work. You only have to override those methods that aren't appropriate for you, but typically inheriting will safe you a lot of work anyways. %prep %setup -q -n %{module} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check # don't work on the cluster # %{__make} test %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README %{perl_vendorlib}/Net %{_mandir}/*/* %changelog * Wed Jun 18 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.43-3mdv2009.0 + Revision: 223849 - rebuild * Thu Mar 06 2008 Oden Eriksson <oeriksson@mandriva.com> 0.43-2mdv2008.1 + Revision: 180502 - rebuild + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Sat Jul 07 2007 Funda Wang <fundawang@mandriva.org> 0.43-1mdv2008.0 + Revision: 49329 - Corrected tarball dirname - New version * Sun May 06 2007 Olivier Thauvin <nanardon@mandriva.org> 0.39-2mdv2008.0 + Revision: 23468 - disable test because iurt - rebuild * Mon Mar 06 2006 Guillaume Rousse <guillomovitch@mandriva.org> 0.39-1mdk - new version - rpmbuildupdate aware - spec cleanup - %%mkrel - enable tests - better summary and description * Mon Jun 06 2005 Nicolas Lécureuil <neoclust@mandriva.org> 0.38-2mdk - Rebuild * Wed Apr 21 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.38-1mdk - 0.38 * Thu Aug 14 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.37-3mdk - rebuild for new perl - drop $RPM_OPT_FLAGS, noarch.. - use %%makeinstall_std macro * Fri May 16 2003 Guillaume Rousse <g.rousse@linux-mandrake.com> 0.37-2mdk - rebuild for dependencies * Fri Apr 25 2003 François Pons <fpons@mandrakesoft.com> 0.37-1mdk - 0.37.