# # Conditional build: %bcond_with tests # perform "make test" %define pdir Event %define pnam Lib Summary: Event::Lib - Perl extentions for event-based programming Summary(pl.UTF-8): Event::Lib - rozszerzenie Perla dla programowania opertego na zdarzeniach Name: perl-Event-Lib Version: 1.04 Release: 9 License: GPL v1+ or Artistic Group: Development/Languages/Perl #Source0: http://www.cpan.org/modules/by-module/Event/%{pdir}-%{pnam}-%{version}.tar.gz Source0: http://search.cpan.org/CPAN/authors/id/C/CR/CRUX/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 38bc3b6b9bf44740275dad9198e702fc #URL: http://search.cpan.org/dist/Event-Lib/ URL: http://search.cpan.org/~crux/Event-Lib/ Patch0: libevent-2.1.patch BuildRequires: libevent-devel BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 Requires: perl-dirs >= 2.1-16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This module is a Perl wrapper around libevent(3) as available from . It allows to execute a function whenever a given event on a filehandle happens, a timeout occurs or a signal is received. Under the hood, one of the available mechanisms for asynchronously dealing with events is used. This could be select, poll, epoll, devpoll or kqueue. The idea is that you don't have to worry about those details and the various interfaces they offer. Event::Lib offers a unified interface to all of them. %description -l pl.UTF-8 Moduł ten jest perlowym opakowaniem biblioteki libevent(3) dostępnej pod adresem . Pozwala na wywołanie funkcji w przypadku określonego zdarzenia na uchwycie pliku, upłynięcia limitu czasu lub odebrania sygnału. Wewnątrz używany jest jeden z dostępnych mechanizmów do asynchronicznej obsługi zdarzeń - może to być select, poll, epoll, devpoll lub kqueue. Idea jest taka, że programista nie musi martwić się o szczegóły związane z każdym z tych interfejsów. Event::Lib oferuje ujednolicony interfejs do nich wszystkich. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %patch0 -p1 %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} \ CC="%{__cc}" \ OPTIMIZE="%{rpmcflags}" %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} pure_install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README %{perl_vendorarch}/Event/Lib.pm %dir %{perl_vendorarch}/auto/Event/Lib %attr(755,root,root) %{perl_vendorarch}/auto/Event/Lib/Lib.so %{_mandir}/man3/Event::Lib.3pm*