]>
Commit | Line | Data |
---|---|---|
479e4fa7 MP |
1 | # |
2 | # Conditional build: | |
479e4fa7 | 3 | %bcond_without tests # do not perform "make test" |
b763b795 | 4 | |
479e4fa7 MP |
5 | %define pdir IO |
6 | %define pnam Mux | |
b763b795 | 7 | %include /usr/lib/rpm/macros.perl |
479e4fa7 | 8 | Summary: IO::MUX - an IO stream multiplexing module |
4fb9ce0a | 9 | Summary(pl.UTF-8): IO::MUX - moduł multipleksera dla strumieni we/wy |
479e4fa7 | 10 | Name: perl-IO-Mux |
cb6a99cc | 11 | Version: 0.08 |
479e4fa7 MP |
12 | Release: 0.1 |
13 | # "same as perl" | |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
cb6a99cc | 17 | # Source0-md5: 6cd0d7d9b5a4b5a3caeb610dabaaf5d8 |
b763b795 | 18 | URL: http://search.cpan.org/dist/IO-Mux/ |
479e4fa7 MP |
19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
479e4fa7 MP |
21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
479e4fa7 | 24 | %description |
02ebac03 JB |
25 | "IO::Mux" allows you to multiplex several virtual streams over a |
26 | single pipe or socket. This is achieved by creating an "IO::Mux" | |
27 | object on each end of the real stream and then creating virtual | |
28 | handles ("IO::Mux::Handle" objects) from these "IO::Mux" objects. | |
479e4fa7 | 29 | |
608b78fb | 30 | %description -l pl.UTF-8 |
02ebac03 | 31 | "IO::Mux" pozwala na utworzenie kilku wirtualnych strumieni w oparciu |
608b78fb JR |
32 | o pojedynczy potok lub gniazdo. Jest to osiągane poprzez tworzenie |
33 | obiektu "IO::Mux" na każdym końcu rzeczywistego strumienia, a | |
34 | następnie tworzenie wirtualnych uchwytów skojarzonych z tymi | |
02ebac03 | 35 | obiektami. |
479e4fa7 MP |
36 | |
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
43 | ||
44 | %{__make} | |
45 | %{?with_tests:%{__make} test} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} pure_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/Mux.pm | |
02ebac03 | 60 | %dir %{perl_vendorlib}/IO/Mux |
479e4fa7 MP |
61 | %{perl_vendorlib}/IO/Mux/*.pm |
62 | %{_mandir}/man3/* |