Name: perl-Event-Lib Version: 1.03 Release: 5%{?_dist_release} Summary: Perl wrapper around libevent Group: Development/Libraries Vendor: Project Vine Distribution: Vine Linux BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) License: GPL+ or Artistic URL: http://search.cpan.org/dist/Event-Lib/ Source0: http://search.cpan.org/CPAN/authors/id/V/VP/VPARSEVAL/Event-Lib-%{version}.tar.gz #https://rt.cpan.org/Public/Bug/Display.html?id=80644 Patch0: https://rt.cpan.org/Ticket/Attachment/1136922/598341/lib-event.patch # Restore compatibility with libevent 2.1, bug #1549504, CPAN RT#124603 Patch1: Event-Lib-1.03-libevent_2_1.patch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(GTop) # Needed for test BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) BuildRequires: libevent-devel BuildRequires: libxcrypt-devel Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This module is a Perl wrapper around libevent(3) as available from http://monkey.org/~provos/libevent/. It allows to execute a function whenever a given event on a filehandle happens, a timeout occurs or a signal is received. %prep %setup -q -n Event-Lib-%{version} %patch0 -p1 -b .orig %patch1 -p1 %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" \ INC=-I%{_includedir} LIBS="-L%{_libdir} -levent" make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' chmod -R u+w %{buildroot}/* %check #Known to fail - Upstream emailed # t/20_signal.t # t/51_cleanup_persistent.t # t/90_leak.t make test || : %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorarch}/auto/* %{perl_vendorarch}/Event/ %{_mandir}/man3/*.3* %changelog * Tue Apr 14 2020 Tomohiro "Tomo-p" KATO 1.03-5 - built with libevent-2.1.11. * Thu May 16 2019 Tomohiro "Tomo-p" KATO 1.03-4 - rebuilt with perl-5.26. - added BR:libxcrypt-devel. * Sun Nov 04 2018 Tomohiro "Tomo-p" KATO 1.03-3 - rebuilt with libevent-2.1.8. * Fri Jun 27 2014 IWAI, Masaharu 1.03-2 - build with Perl 5.16 * Fri Mar 02 2012 MATSUBAYASHI Kohji - 1.03-1 - initial build for Vine Linux * Fri Jan 13 2012 Fedora Release Engineering - 1.03-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Jun 20 2011 Marcela Mašláňová - 1.03-15 - Perl mass rebuild * Thu Feb 10 2011 Christopher Aillon - 1.03-14 - Rebuild against newer libevent * Tue Feb 08 2011 Fedora Release Engineering - 1.03-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Dec 16 2010 Marcela Maslanova - 1.03-12 - 661697 rebuild for fixing problems with vendorach/lib * Sat May 01 2010 Marcela Maslanova - 1.03-11 - Mass rebuild with perl-5.12.0 * Fri Apr 30 2010 Marcela Maslanova - 1.03-10 - Mass rebuild with perl-5.12.0 * Mon Dec 7 2009 Stepan Kasal - 1.03-9 - rebuild against perl 5.10.1 * Mon Jul 27 2009 kwizart < kwizart at gmail.com > - 1.0.3-8 - Fix FTBFS * Sat Jul 25 2009 Fedora Release Engineering - 1.03-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 1.03-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Oct 15 2008 kwizart < kwizart at gmail.com > - 1.0.3-5 - Fix typo * Sat Jun 28 2008 kwizart < kwizart at gmail.com > - 1.0.3-4 - Disable some tests known to fail * Sat Jun 28 2008 kwizart < kwizart at gmail.com > - 1.0.3-3 - rebuild for libevent * Fri May 16 2008 kwizart < kwizart at gmail.com > - 1.0.3-2 - Add Missing BR for test * Wed Apr 30 2008 kwizart < kwizart at gmail.com > - 1.0.3-1 - Initial package for Fedora