2005-08-01 19:47:09 +00:00
|
|
|
%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)}
|
|
|
|
|
|
|
|
Name: perl-Net-CIDR-Lite
|
|
|
|
Version: 0.18
|
2005-08-01 23:38:15 +00:00
|
|
|
Release: 2%{?dist}
|
2005-08-01 19:47:09 +00:00
|
|
|
Summary: Net::CIDR::Lite Perl module
|
|
|
|
License: GPL or Artistic
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://search.cpan.org/dist/Net-CIDR-Lite/
|
|
|
|
Source0: http://www.cpan.org/modules/by-module/Net/Net-CIDR-Lite-0.18.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
2005-08-01 23:38:15 +00:00
|
|
|
# For "make test".
|
|
|
|
BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage)
|
2005-08-01 19:47:09 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Faster alternative to Net::CIDR when merging a large number of CIDR
|
|
|
|
address ranges. Works for IPv4 and IPv6 addresses.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Net-CIDR-Lite-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
|
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
|
|
|
chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
%check || :
|
|
|
|
make test
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes README
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
2005-08-01 23:38:15 +00:00
|
|
|
* Mon Aug 01 2005 Steven Pritchard <steve@kspei.com> 0.18-2
|
|
|
|
- Add BR Test::Pod and Test::Pod::Coverage for make test
|
|
|
|
|
2005-08-01 19:47:09 +00:00
|
|
|
* Fri Jul 15 2005 Steven Pritchard <steve@kspei.com> 0.18-1
|
|
|
|
- Specfile autogenerated.
|