3 %bcond_with tests # perform "make test" - needs network connection
7 Summary: IO::Socket::IP - Family-neutral IP socket supporting both IPv4 and IPv6
8 Name: perl-IO-Socket-IP
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: fe49e4f6638c55124b4f1fb9ee8fe134
16 URL: http://search.cpan.org/dist/IO-Socket-IP/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This module provides a protocol-independent way to use IPv4 and IPv6
24 sockets, intended as a replacement for IO::Socket::INET. Most
25 constructor arguments and methods are provided in a
26 backward-compatible way.
29 %setup -q -n %{pdir}-%{pnam}-%{version}
32 %{__perl} Makefile.PL \
36 %{?with_tests:%{__make} test}
39 rm -rf $RPM_BUILD_ROOT
42 DESTDIR=$RPM_BUILD_ROOT
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
50 %{perl_vendorlib}/IO/Socket/IP.pm
51 %{_mandir}/man3/IO::Socket::IP*.3pm*