perl-Event-Lib-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. Name: perl-Event-Lib
  2. Version: 1.03
  3. Release: 2%{?_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. BuildRequires: perl(ExtUtils::MakeMaker)
  11. BuildRequires: perl(GTop)
  12. # Needed for test
  13. BuildRequires: perl(Test::Pod)
  14. BuildRequires: perl(Test::Pod::Coverage)
  15. BuildRequires: libevent-devel
  16. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  17. %description
  18. This module is a Perl wrapper around libevent(3) as available from
  19. http://monkey.org/~provos/libevent/. It allows to execute a function
  20. whenever a given event on a filehandle happens, a timeout occurs or a signal is
  21. received.
  22. %prep
  23. %setup -q -n Event-Lib-%{version}
  24. %build
  25. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" \
  26. INC=-I%{_includedir} LIBS="-L%{_libdir} -levent"
  27. make %{?_smp_mflags}
  28. %install
  29. rm -rf %{buildroot}
  30. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  31. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  32. find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
  33. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
  34. chmod -R u+w %{buildroot}/*
  35. %check
  36. #Known to fail - Upstream emailed
  37. # t/20_signal.t
  38. # t/51_cleanup_persistent.t
  39. # t/90_leak.t
  40. make test || :
  41. %clean
  42. rm -rf %{buildroot}
  43. %files
  44. %defattr(-,root,root,-)
  45. %doc Changes README
  46. %{perl_vendorarch}/auto/*
  47. %{perl_vendorarch}/Event/
  48. %{_mandir}/man3/*.3*
  49. %changelog
  50. * Fri Jun 27 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 1.03-2
  51. - build with Perl 5.16
  52. * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.03-1
  53. - initial build for Vine Linux
  54. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-16
  55. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  56. * Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.03-15
  57. - Perl mass rebuild
  58. * Thu Feb 10 2011 Christopher Aillon <caillon@redhat.com> - 1.03-14
  59. - Rebuild against newer libevent
  60. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-13
  61. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  62. * Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-12
  63. - 661697 rebuild for fixing problems with vendorach/lib
  64. * Sat May 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-11
  65. - Mass rebuild with perl-5.12.0
  66. * Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-10
  67. - Mass rebuild with perl-5.12.0
  68. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1.03-9
  69. - rebuild against perl 5.10.1
  70. * Mon Jul 27 2009 kwizart < kwizart at gmail.com > - 1.0.3-8
  71. - Fix FTBFS
  72. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-7
  73. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  74. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-6
  75. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  76. * Wed Oct 15 2008 kwizart < kwizart at gmail.com > - 1.0.3-5
  77. - Fix typo
  78. * Sat Jun 28 2008 kwizart < kwizart at gmail.com > - 1.0.3-4
  79. - Disable some tests known to fail
  80. * Sat Jun 28 2008 kwizart < kwizart at gmail.com > - 1.0.3-3
  81. - rebuild for libevent
  82. * Fri May 16 2008 kwizart < kwizart at gmail.com > - 1.0.3-2
  83. - Add Missing BR for test
  84. * Wed Apr 30 2008 kwizart < kwizart at gmail.com > - 1.0.3-1
  85. - Initial package for Fedora