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