perl-Net-Daemon-vl.spec 4.0 KB

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