]>
Commit | Line | Data |
---|---|---|
479e4fa7 MP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without autodeps # don't BR packages needed only for resolving deps | |
4 | %bcond_without tests # do not perform "make test" | |
5 | # | |
6 | %include /usr/lib/rpm/macros.perl | |
7 | %define pdir IO | |
8 | %define pnam Mux | |
9 | Summary: IO::MUX - an IO stream multiplexing module | |
10 | Summary(pl): IO::MUX - moduł multiplexera dla strumieni IO | |
11 | Name: perl-IO-Mux | |
12 | Version: 0.07 | |
13 | Release: 0.1 | |
14 | # "same as perl" | |
15 | License: GPL v1+ or Artistic | |
16 | Group: Development/Languages/Perl | |
17 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
18 | # Source0-md5: 52b58db6366ff287bf2dddecad7d3ce2 | |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with autodeps} || %{with tests} | |
22 | %endif | |
23 | BuildArch: noarch | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %define _noautoreq 'perl(anything_fake_or_conditional)' | |
27 | ||
28 | %description | |
29 | "IO::Mux" allows you to multiplex several virtual streams over a single pipe or | |
30 | socket. This is achieved by creating an "IO::Mux" object on each end of the | |
31 | real stream and then creating virtual handles ("IO::Mux::Handle" objects) from | |
32 | these "IO::Mux" objects. | |
33 | ||
34 | %description -l pl | |
35 | "IO::Mux" pozwala na utworzenie kilku wirtualnych strumieniu w oparciu o pojedyńczy potok | |
36 | lub gniazdo. Jest to osiagane poprzez tworzenie obiektu "IO::Mux" na kazdym koncu rzeczywistego | |
37 | strumienia i następnie tworzeniu wirtualnych uchwytów skojarzonych z tymi obiektami. | |
38 | ||
39 | %prep | |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
41 | ||
42 | %build | |
43 | %{__perl} Makefile.PL \ | |
44 | INSTALLDIRS=vendor | |
45 | ||
46 | %{__make} | |
47 | %{?with_tests:%{__make} test} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} pure_install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc Changes README TODO | |
61 | %{perl_vendorlib}/IO/Mux.pm | |
62 | %{perl_vendorlib}/IO/Mux/*.pm | |
63 | %{_mandir}/man3/* |