perl-Event-Lib-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. Summary: Perl wrapper around libevent
  2. Name: perl-Event-Lib
  3. Version: 1.03
  4. Release: 6%{?_dist_release}
  5. Group: programming
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. License: GPL+ or Artistic
  9. URL: https://metacpan.org/pod/Event::Lib
  10. Source0: https://cpan.metacpan.org/authors/id/V/VP/VPARSEVAL/Event-Lib-%{version}.tar.gz
  11. #https://rt.cpan.org/Public/Bug/Display.html?id=80644
  12. Patch0: https://rt.cpan.org/Ticket/Attachment/1136922/598341/lib-event.patch
  13. # Restore compatibility with libevent 2.1, bug #1549504, CPAN RT#124603
  14. Patch1: Event-Lib-1.03-libevent_2_1.patch
  15. # Adapt to changes in Perl 5.33.1, bug #1876460, CPAN RT#133340
  16. Patch2: Event-Lib-1.03-Fix-tests-on-indeed-non-blocking-UNIX-sockets.patch
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  18. BuildRequires: perl(ExtUtils::MakeMaker)
  19. BuildRequires: perl(GTop)
  20. # Needed for test
  21. BuildRequires: perl(Test::Pod)
  22. BuildRequires: perl(Test::Pod::Coverage)
  23. BuildRequires: libevent-devel
  24. BuildRequires: libxcrypt-devel
  25. Requires: perl
  26. %description
  27. This module is a Perl wrapper around libevent(3) as available from
  28. http://monkey.org/~provos/libevent/. It allows to execute a function
  29. whenever a given event on a filehandle happens, a timeout occurs or a signal is
  30. received.
  31. %debug_package
  32. %prep
  33. %setup -q -n Event-Lib-%{version}
  34. %patch0 -p1 -b .orig
  35. %patch1 -p1
  36. %patch2 -p1
  37. %build
  38. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" \
  39. INC=-I%{_includedir} LIBS="-L%{_libdir} -levent"
  40. make %{?_smp_mflags}
  41. %install
  42. rm -rf %{buildroot}
  43. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  44. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  45. find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
  46. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
  47. chmod -R u+w %{buildroot}/*
  48. %check
  49. #Known to fail - Upstream emailed
  50. # t/20_signal.t
  51. # t/51_cleanup_persistent.t
  52. # t/90_leak.t
  53. make test || :
  54. %clean
  55. rm -rf %{buildroot}
  56. %files
  57. %defattr(-,root,root,-)
  58. %doc Changes README
  59. %{perl_vendorarch}/auto/*
  60. %{perl_vendorarch}/Event/
  61. %{_mandir}/man3/*.3*
  62. %changelog
  63. * Wed Nov 17 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.03-6
  64. - rebuilt with perl-5.34.0.
  65. - imported Patch2 from rawhide.
  66. * Tue Apr 14 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.03-5
  67. - built with libevent-2.1.11.
  68. * Thu May 16 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.03-4
  69. - rebuilt with perl-5.26.
  70. - added BR:libxcrypt-devel.
  71. * Sun Nov 04 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.03-3
  72. - rebuilt with libevent-2.1.8.
  73. * Fri Jun 27 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 1.03-2
  74. - build with Perl 5.16
  75. * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.03-1
  76. - initial build for Vine Linux
  77. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-16
  78. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  79. * Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.03-15
  80. - Perl mass rebuild
  81. * Thu Feb 10 2011 Christopher Aillon <caillon@redhat.com> - 1.03-14
  82. - Rebuild against newer libevent
  83. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-13
  84. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  85. * Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-12
  86. - 661697 rebuild for fixing problems with vendorach/lib
  87. * Sat May 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-11
  88. - Mass rebuild with perl-5.12.0
  89. * Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-10
  90. - Mass rebuild with perl-5.12.0
  91. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1.03-9
  92. - rebuild against perl 5.10.1
  93. * Mon Jul 27 2009 kwizart < kwizart at gmail.com > - 1.0.3-8
  94. - Fix FTBFS
  95. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-7
  96. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  97. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-6
  98. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  99. * Wed Oct 15 2008 kwizart < kwizart at gmail.com > - 1.0.3-5
  100. - Fix typo
  101. * Sat Jun 28 2008 kwizart < kwizart at gmail.com > - 1.0.3-4
  102. - Disable some tests known to fail
  103. * Sat Jun 28 2008 kwizart < kwizart at gmail.com > - 1.0.3-3
  104. - rebuild for libevent
  105. * Fri May 16 2008 kwizart < kwizart at gmail.com > - 1.0.3-2
  106. - Add Missing BR for test
  107. * Wed Apr 30 2008 kwizart < kwizart at gmail.com > - 1.0.3-1
  108. - Initial package for Fedora