]> git.pld-linux.org Git - packages/perl-Event-Lib.git/blame - perl-Event-Lib.spec
- rebuild with perl 5.30.0
[packages/perl-Event-Lib.git] / perl-Event-Lib.spec
CommitLineData
7f5101ea 1#
2# Conditional build:
19e9851f 3%bcond_with tests # perform "make test"
b4a4f964 4
7f5101ea 5%define pdir Event
6%define pnam Lib
b4a4f964 7%include /usr/lib/rpm/macros.perl
7f5101ea 8Summary: Event::Lib - Perl extentions for event-based programming
9Summary(pl.UTF-8): Event::Lib - rozszerzenie Perla dla programowania opertego na zdarzeniach
10Name: perl-Event-Lib
b4a4f964 11Version: 1.04
af1fe81f 12Release: 7
7f5101ea 13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
b4a4f964
ER
15#Source0: http://www.cpan.org/modules/by-module/Event/%{pdir}-%{pnam}-%{version}.tar.gz
16Source0: http://search.cpan.org/CPAN/authors/id/C/CR/CRUX/%{pdir}-%{pnam}-%{version}.tar.gz
17# Source0-md5: 38bc3b6b9bf44740275dad9198e702fc
18#URL: http://search.cpan.org/dist/Event-Lib/
19URL: http://search.cpan.org/~crux/Event-Lib/
d735f6ac 20Patch0: libevent-2.1.patch
7f5101ea 21BuildRequires: libevent-devel
22BuildRequires: perl-devel >= 1:5.8.0
23BuildRequires: rpm-perlprov >= 4.1-13
0edb068c 24Requires: perl-dirs >= 2.1-16
7f5101ea 25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28This module is a Perl wrapper around libevent(3) as available from
19e9851f 29<http://www.monkey.org/~provos/libevent/>. It allows to execute a
7f5101ea 30function whenever a given event on a filehandle happens, a timeout
31occurs or a signal is received.
32
33Under the hood, one of the available mechanisms for asynchronously
34dealing with events is used. This could be select, poll, epoll,
35devpoll or kqueue. The idea is that you don't have to worry about
36those details and the various interfaces they offer. Event::Lib offers
19e9851f 37a unified interface to all of them.
7f5101ea 38
39%description -l pl.UTF-8
19e9851f
JB
40Moduł ten jest perlowym opakowaniem biblioteki libevent(3) dostępnej
41pod adresem <http://www.monkey.org/~provos/libevent/>. Pozwala na
b4a4f964
ER
42wywołanie funkcji w przypadku określonego zdarzenia na uchwycie pliku,
43upłynięcia limitu czasu lub odebrania sygnału.
19e9851f 44
b4a4f964
ER
45Wewnątrz używany jest jeden z dostępnych mechanizmów do
46asynchronicznej obsługi zdarzeń - może to być select, poll, epoll,
47devpoll lub kqueue. Idea jest taka, że programista nie musi martwić
48się o szczegóły związane z każdym z tych interfejsów. Event::Lib
49oferuje ujednolicony interfejs do nich wszystkich.
7f5101ea 50
51%prep
52%setup -q -n %{pdir}-%{pnam}-%{version}
d735f6ac 53%patch0 -p1
7f5101ea 54
55%build
56%{__perl} Makefile.PL \
57 INSTALLDIRS=vendor
58%{__make} \
59 CC="%{__cc}" \
60 OPTIMIZE="%{rpmcflags}"
61
62%{?with_tests:%{__make} test}
63
64%install
65rm -rf $RPM_BUILD_ROOT
66
67%{__make} pure_install \
68 DESTDIR=$RPM_BUILD_ROOT
69
70%clean
71rm -rf $RPM_BUILD_ROOT
72
73%files
74%defattr(644,root,root,755)
75%doc Changes README
19e9851f 76%{perl_vendorarch}/Event/Lib.pm
7f5101ea 77%dir %{perl_vendorarch}/auto/Event/Lib
19e9851f
JB
78%attr(755,root,root) %{perl_vendorarch}/auto/Event/Lib/Lib.so
79%{_mandir}/man3/Event::Lib.3pm*
This page took 0.036406 seconds and 4 git commands to generate.