3 %bcond_without tests # do not perform "make test"
6 %define pnam Common-net-CIDR
7 %include /usr/lib/rpm/macros.perl
8 Summary: Regexp::Common::net::CIDR -- provide patterns for CIDR blocks.
10 Name: perl-Regexp-Common-net-CIDR
13 License: GPL version 2
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Regexp/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: e109d32c7ed46956477cf94e54d1442a
17 # generic URL, check or change before uncommenting
18 #URL: http://search.cpan.org/dist/Regexp-Common-net-CIDR/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Patterns for CIDR blocks. Now only next IPv4 formats are supported:
31 With {-keep} stores address in $1 and number of bits in $2.
35 # %description -l pl.UTF-8
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
51 %{__make} pure_install \
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %dir %{perl_vendorlib}/Regexp/Common/net
61 %{perl_vendorlib}/Regexp/Common/net/*.pm