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