perl-Event-Lib-vl.spec 4.2 KB

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