]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir IO | |
6 | %define pnam Multiplex | |
7 | Summary: IO::Multiplex - manage IO on many file handles | |
8 | Summary(pl.UTF-8): IO::Multiplex - zarządzanie operacjami we/wy na wielu uchwytach plików | |
9 | Name: perl-IO-Multiplex | |
10 | Version: 1.13 | |
11 | Release: 1 | |
12 | License: Artistic | |
13 | Group: Development/Languages/Perl | |
14 | Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz | |
15 | # Source0-md5: a74f4c07a543cbf06ba3b24fe1be94e9 | |
16 | URL: http://search.cpan.org/dist/IO-Multiplex/ | |
17 | BuildRequires: perl-devel >= 1:5.8.0 | |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | IO::Multiplex is designed to take the effort out of managing multiple | |
24 | file handles. It is essentially a really fancy front end to the select | |
25 | system call. In addition to maintaining the select loop, it buffers | |
26 | all input and output to/from the file handles. It can also accept | |
27 | incoming connections on one or more listen sockets. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Moduł IO::Multiplex został zaprojektowany jako próba zarządzania | |
31 | wieloma uchwytami plików. Jest przede wszystkim naprawdę fantazyjnym | |
32 | frontendem do wywołania systemowego select. Oprócz zarządzania pętlą | |
33 | wywołań select, buforuje całe wejście i wyjście do/z uchwytów plików. | |
34 | Może także akceptować przychodzące połączenia z jednego lub więcej | |
35 | nasłuchujących gniazd. | |
36 | ||
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
43 | %{__make} | |
44 | ||
45 | %{?with_tests:%{__make} test} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc Changes README TODO | |
59 | %{perl_vendorlib}/IO/Multiplex.pm | |
60 | %{_mandir}/man3/* |