3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Net::IPv6Addr - check validity of IPv6 addresses
9 Summary(pl.UTF-8): Net::IPv6Addr - sprawdza poprawność adresów IPv6
10 Name: perl-Net-IPv6Addr
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: cd06f0422ddb3ac119e2ef1e27aa9339
17 URL: http://search.cpan.org/dist/Net-IPv6Addr/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl(Math::Base85)
22 BuildRequires: perl(Net::IPv4Addr)
24 Suggests: perl-Math-Base85
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Net::IPv6Addr checks strings for valid IPv6 addresses, as specified in
30 RFC1884. You throw possible addresses at it, it either accepts them or
33 If Math::Base85 is installed, then this module is able to process
34 addresses formatted in the style referenced by RFC1924.
36 %description -l pl.UTF-8
37 Net::IPv6Addr sprawdza ciągi znaków czy są
38 poprawnym adresem IPv6 tak jak zdefiniowano to w RFC1884.
40 We współpracy z modułem Math::Base85 moduł ten umożliwia przetworzenie
41 adresów zgodnych z formatem zdefiniowanym w RFC1924.
44 %setup -q -n %{pdir}-%{pnam}-%{version}
47 %{__perl} Makefile.PL \
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
57 DESTDIR=$RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{perl_vendorlib}/Net/*.pm