perl-Net-Daemon-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. Name: perl-Net-Daemon
  2. Version: 0.48
  3. Release: 2%{?_dist_release}
  4. Summary: Perl extension for portable daemons
  5. Group: Development/Libraries
  6. License: GPL+ or Artistic
  7. URL: http://search.cpan.org/dist/Net-Daemon/
  8. Source0: http://search.cpan.org/CPAN/authors/id/M/MN/MNOONING/Net-Daemon/Net-Daemon-0.43.tar.gz
  9. #upstream report http://rt.cpan.org/Ticket/Display.html?id=39759
  10. Patch0: Net-Daemon-only-ithreads.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildArch: noarch
  13. BuildRequires: perl
  14. # for perldoc
  15. BuildRequires: groff
  16. # Correct for lots of packages, other common choices include eg. Module::Build
  17. BuildRequires: perl(ExtUtils::MakeMaker) perl(Pod::Perldoc) perl(Test::Simple)
  18. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. %description
  22. Net::Daemon is an abstract base class for implementing portable server
  23. applications in a very simple way. The module is designed for Perl 5.006 and
  24. ithreads (and higher), but can work with fork() and Perl 5.004.
  25. The Net::Daemon class offers methods for the most common tasks a daemon
  26. needs: Starting up, logging, accepting clients, authorization, restricting
  27. its own environment for security and doing the true work. You only have to
  28. override those methods that aren't appropriate for you, but typically
  29. inheriting will safe you a lot of work anyways.
  30. %prep
  31. %setup -q -n Net-Daemon
  32. %patch0 -p1
  33. # generate our other two licenses...
  34. perldoc perlgpl > LICENSE.GPL
  35. perldoc perlartistic > LICENSE.Artistic
  36. %build
  37. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
  38. make %{?_smp_mflags}
  39. %install
  40. rm -rf %{buildroot}
  41. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  42. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  43. # Remove the next line from noarch packages (unneeded)
  44. find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
  45. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
  46. chmod -R u+w %{buildroot}/*
  47. %check
  48. %{?!_with_network_tests:
  49. # Disable tests which will fail under mock
  50. rm t/config*
  51. rm t/fork*
  52. rm t/ithread*
  53. rm t/loop*
  54. rm t/single.t
  55. rm t/unix.t
  56. }
  57. make test
  58. %clean
  59. rm -rf %{buildroot}
  60. %files
  61. %defattr(-,root,root,-)
  62. %doc ChangeLog README LICENSE.*
  63. %{perl_vendorlib}/*
  64. %{_mandir}/man3/*.3*
  65. %changelog
  66. * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.48-2
  67. - rebuild; spec revamped
  68. * Fri Mar 25 2011 IWAI, Masaharu <iwai@alib.jp> 0.48-1
  69. - build for Vine Linux
  70. - new upstream release
  71. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.44-11
  72. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  73. * Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.44-10
  74. - 661697 rebuild for fixing problems with vendorach/lib
  75. * Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.44-9
  76. - Mass rebuild with perl-5.12.0
  77. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.44-8
  78. - rebuild against perl 5.10.1
  79. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.44-7
  80. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  81. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.44-6
  82. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  83. * Mon Oct 13 2008 Petr Lautrbach <plautrba@redhat.com> 0.44-5
  84. - "--with network_tests" - don't remove network tests
  85. * Mon Oct 6 2008 Petr Lautrbach <plautrba@redhat.com> 0.44-4
  86. - Description and License fixed
  87. - Patch without backup
  88. * Mon Oct 6 2008 Petr Lautrbach <lautrba@redhat.com> 0.44-3
  89. - Requires: fixed
  90. * Fri Oct 3 2008 Petr Lautrbach <lautrba@redhat.com> 0.44-2
  91. - only-ithreads patch added
  92. - disabled tests which fail under mock
  93. * Fri Sep 26 2008 Petr Lautrbach <lautrba@redhat.com>
  94. - initial rpm release