3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: IO::Async - perform asynchronous filehandle IO and other operations
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/IO-Async-%{version}.tar.gz
17 # Source0-md5: 48449f1bc8ae94c2741e529df47321bd
18 URL: http://search.cpan.org/dist/IO-Async/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl(Async::MergePoint)
23 BuildRequires: perl(Socket::GetAddrInfo) >= 0.08
24 BuildRequires: perl(Test::Refcount)
25 BuildRequires: perl-Heap >= 0.8
26 BuildRequires: perl-Test-Exception
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 This collection of modules allows programs to be written that perform
33 asynchronous filehandle IO operations. A typical program using them
34 would consist of a single subclass of IO::Async::Loop to act as a
35 container o other objects, which perform the actual IO work required
36 by the program. As as IO handles, the loop also supports timers and
37 signal handlers, and includes more higher-level functionallity built
38 on top of these basic parts.
40 Because there are a lot of classes in this collection, the following
41 overview gives a brief description of each.
43 The base class of all the event handling subclasses is
44 IO::Async::Notifier. It does not perform any IO operations itself, but
45 instead acts as a base class to build the specific IO functionallity
46 upon. It can also coordinate a collection of other Notifiers contained
47 within it, forming a tree structure.
49 The following sections describe particular types of Notifier.
51 # %description -l pl.UTF-8 # TODO
54 %setup -q -n %{pdir}-%{pnam}-%{version}
58 destdir=$RPM_BUILD_ROOT \
62 %{?with_tests:./Build test}
65 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
70 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
73 rm -rf $RPM_BUILD_ROOT
76 %defattr(644,root,root,755)
78 %{perl_vendorlib}/IO/*.pm
79 %{perl_vendorlib}/IO/Async
81 %{_examplesdir}/%{name}-%{version}