3 # _without_tests - do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: IO::Multiplex - Manage IO on many file handles
10 Name: perl-IO-Multiplex
14 Group: Development/Languages/Perl
15 Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 BuildRequires: rpm-perlprov >= 3.0.3-16
17 BuildRequires: perl >= 5.6
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 IO::Multiplex is designed to take the effort out of managing multiple
23 file handles. It is essentially a really fancy front end to the select
24 system call. In addition to maintaining the select loop, it buffers all
25 input and output to/from the file handles. It can also accept incoming
26 connections on one or more listen sockets.
32 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{!?_without_tests:%{__make} test}
41 rm -rf $RPM_BUILD_ROOT
43 %{__make} install DESTDIR=$RPM_BUILD_ROOT
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
50 %doc Changes README TODO
51 %{perl_sitelib}/IO/Multiplex.pm