3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Net::CIDR - manipulate IPv4/IPv6 netblocks in CIDR notation
9 Summary(pl.UTF-8): Net::CIDR - przetwarzanie bloków sieci IPv4/IPv6 w notacji CIDR
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 08bf7e5d5eb07bef562e2f38423eb62c
17 URL: http://search.cpan.org/dist/Net-CIDR/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The Net::CIDR package contains functions that manipulate lists of IP
25 netblocks expressed in CIDR notation. The Net::CIDR functions handle
26 both IPv4 and IPv6 addresses.
28 %description -l pl.UTF-8
29 Pakiet Net::CIDR zawiera funkcje przetwarzające listy bloków sieci IP
30 zapisanych w notacji CIDR. Funkcje Net::CIDR obsługują adresy IPv4 i
34 %setup -q -n %{pdir}-%{pnam}-%{version}
37 %{__perl} Makefile.PL \
41 %{?with_tests:%{__make} test}
44 rm -rf $RPM_BUILD_ROOT
47 DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %{perl_vendorlib}/Net/*.pm