3 %bcond_without autodeps # don't BR packages needed only for resolving deps
4 %bcond_without tests # do not perform "make test"
7 %define pnam Socket-Multicast
8 Summary: IO::Socket::Multicast - send and receive multicast messages
9 Summary(pl.UTF-8): IO::Socket::Multicast - wysyłanie i odbieranie komunikatów multicastowych
10 Name: perl-IO-Socket-Multicast
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
17 # Source0-md5: c96e6cbb367b1d11ffe7bb9fbd833540
18 URL: http://search.cpan.org/dist/IO-Socket-Multicast/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 %if %{with autodeps} || %{with tests}
22 BuildRequires: perl-IO-Interface >= 0.94
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 The IO::Socket::Multicast module subclasses IO::Socket::INET to enable
28 you to manipulate multicast groups. With this module (and an operating
29 system that supports multicasting), you will be able to receive
30 incoming multicast transmissions and generate your own outgoing
33 %description -l pl.UTF-8
34 Moduł IO::Socket::Multicast jest podklasą IO::Socket::INET pozwalającą
35 na manipulowanie grupami multicastowymi. Przy użyciu tego modułu (i
36 systemu operacyjnego obsługującego multicasty) można odbierać
37 przychodzącą transmisję multicastową i generować własne wychodzące
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
49 OPTIMIZE="%{rpmcflags}"
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
56 %{__make} pure_install \
57 DESTDIR=$RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59 install examples/*.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
67 %dir %{perl_vendorarch}/auto/IO/Socket
68 %{perl_vendorarch}/IO/Socket/Multicast.pm
69 %dir %{perl_vendorarch}/auto/IO/Socket/Multicast
70 %attr(755,root,root) %{perl_vendorarch}/auto/IO/Socket/Multicast/Multicast.so
71 %{_examplesdir}/%{name}-%{version}