3 %bcond_without autodeps # don't BR packages needed only for resolving deps
4 %bcond_without tests # do not perform "make test"
6 %include /usr/lib/rpm/macros.perl
8 %define pnam Socket-Multicast
9 Summary: IO::Socket::Multicast - send and receive multicast messages
10 Summary(pl): IO::Socket::Multicast - wysy³anie i odbieranie komunikatów multicastowych
11 Name: perl-IO-Socket-Multicast
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: c433622d7ca5149faf90c21107223e1f
19 URL: http://search.cpan.org/dist/IO-Socket-Multicast/
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 %if %{with autodeps} || %{with tests}
23 BuildRequires: perl-IO-Interface >= 0.94
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 The IO::Socket::Multicast module subclasses IO::Socket::INET to enable
29 you to manipulate multicast groups. With this module (and an operating
30 system that supports multicasting), you will be able to receive
31 incoming multicast transmissions and generate your own outgoing
35 Modu³ IO::Socket::Multicast jest podklas± IO::Socket::INET pozwalaj±c±
36 na manipulowanie grupami multicastowymi. Przy u¿yciu tego modu³u (i
37 systemu operacyjnego obs³uguj±cego multicasty) mo¿na odbieraæ
38 przychodz±c± transmisjê multicastow± i generowaæ w³asne wychodz±ce
42 %setup -q -n %{pdir}-%{pnam}-%{version}
45 %{__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 %{perl_vendorarch}/IO/Socket/Multicast.pm
68 %dir %{perl_vendorarch}/auto/IO/Socket/Multicast
69 %{perl_vendorarch}/auto/IO/Socket/Multicast/Multicast.bs
70 %attr(755,root,root) %{perl_vendorarch}/auto/IO/Socket/Multicast/Multicast.so
71 %{_examplesdir}/%{name}-%{version}