[5803] | 1 | Name: perl-Event-Lib |
---|
| 2 | Version: 1.03 |
---|
| 3 | Release: 1%{?_dist_release} |
---|
| 4 | Summary: Perl wrapper around libevent |
---|
| 5 | |
---|
| 6 | Group: Development/Libraries |
---|
| 7 | License: GPL+ or Artistic |
---|
| 8 | URL: http://search.cpan.org/dist/Event-Lib/ |
---|
| 9 | Source0: http://search.cpan.org/CPAN/authors/id/V/VP/VPARSEVAL/Event-Lib-%{version}.tar.gz |
---|
| 10 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 11 | |
---|
| 12 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 13 | BuildRequires: perl(GTop) |
---|
| 14 | # Needed for test |
---|
| 15 | BuildRequires: perl(Test::Pod) |
---|
| 16 | BuildRequires: perl(Test::Pod::Coverage) |
---|
| 17 | BuildRequires: libevent-devel |
---|
| 18 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 19 | |
---|
| 20 | %description |
---|
| 21 | This module is a Perl wrapper around libevent(3) as available from |
---|
| 22 | http://monkey.org/~provos/libevent/. It allows to execute a function |
---|
| 23 | whenever a given event on a filehandle happens, a timeout occurs or a signal is |
---|
| 24 | received. |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | %prep |
---|
| 28 | %setup -q -n Event-Lib-%{version} |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | %build |
---|
| 32 | %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" \ |
---|
| 33 | INC=-I%{_includedir} LIBS="-L%{_libdir} -levent" |
---|
| 34 | make %{?_smp_mflags} |
---|
| 35 | |
---|
| 36 | |
---|
| 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 | |
---|
| 45 | |
---|
| 46 | %check |
---|
| 47 | #Known to fail - Upstream emailed |
---|
| 48 | # t/20_signal.t |
---|
| 49 | # t/51_cleanup_persistent.t |
---|
| 50 | # t/90_leak.t |
---|
| 51 | make test || : |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | %clean |
---|
| 55 | rm -rf %{buildroot} |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | %files |
---|
| 59 | %defattr(-,root,root,-) |
---|
| 60 | %doc Changes README |
---|
| 61 | %{perl_vendorarch}/auto/* |
---|
| 62 | %{perl_vendorarch}/Event/ |
---|
| 63 | %{_mandir}/man3/*.3* |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | %changelog |
---|
| 67 | * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.03-1 |
---|
| 68 | - initial build for Vine Linux |
---|
| 69 | |
---|
| 70 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-16 |
---|
| 71 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
| 72 | |
---|
| 73 | * Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.03-15 |
---|
| 74 | - Perl mass rebuild |
---|
| 75 | |
---|
| 76 | * Thu Feb 10 2011 Christopher Aillon <caillon@redhat.com> - 1.03-14 |
---|
| 77 | - Rebuild against newer libevent |
---|
| 78 | |
---|
| 79 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-13 |
---|
| 80 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 81 | |
---|
| 82 | * Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-12 |
---|
| 83 | - 661697 rebuild for fixing problems with vendorach/lib |
---|
| 84 | |
---|
| 85 | * Sat May 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-11 |
---|
| 86 | - Mass rebuild with perl-5.12.0 |
---|
| 87 | |
---|
| 88 | * Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-10 |
---|
| 89 | - Mass rebuild with perl-5.12.0 |
---|
| 90 | |
---|
| 91 | * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1.03-9 |
---|
| 92 | - rebuild against perl 5.10.1 |
---|
| 93 | |
---|
| 94 | * Mon Jul 27 2009 kwizart < kwizart at gmail.com > - 1.0.3-8 |
---|
| 95 | - Fix FTBFS |
---|
| 96 | |
---|
| 97 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-7 |
---|
| 98 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 99 | |
---|
| 100 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-6 |
---|
| 101 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 102 | |
---|
| 103 | * Wed Oct 15 2008 kwizart < kwizart at gmail.com > - 1.0.3-5 |
---|
| 104 | - Fix typo |
---|
| 105 | |
---|
| 106 | * Sat Jun 28 2008 kwizart < kwizart at gmail.com > - 1.0.3-4 |
---|
| 107 | - Disable some tests known to fail |
---|
| 108 | |
---|
| 109 | * Sat Jun 28 2008 kwizart < kwizart at gmail.com > - 1.0.3-3 |
---|
| 110 | - rebuild for libevent |
---|
| 111 | |
---|
| 112 | * Fri May 16 2008 kwizart < kwizart at gmail.com > - 1.0.3-2 |
---|
| 113 | - Add Missing BR for test |
---|
| 114 | |
---|
| 115 | * Wed Apr 30 2008 kwizart < kwizart at gmail.com > - 1.0.3-1 |
---|
| 116 | - Initial package for Fedora |
---|