Name: perl-NetAddr-IP Version: 4.004 Release: 2%{?dist} Summary: Manages IPv4 and IPv6 addresses and subnets License: Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/NetAddr-IP/ Source0: http://www.cpan.org/modules/by-module/NetAddr/NetAddr-IP-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl(ExtUtils::MakeMaker) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This module provides an object-oriented abstraction on top of IP addresses or IP subnets, that allows for easy manipulations. Version 4.xx of NetAdder::IP will will work older versions of Perl and does not use Math::BigInt as in previous versions. %prep %setup -q -n NetAddr-IP-%{version} # Fix UTF-8 iconv -f ISO_8859-1 -t UTF-8 -o tmp.pm IP.pm && mv -f tmp.pm IP.pm iconv -f ISO_8859-1 -t UTF-8 -o tmp.pm Lite/Lite.pm && mv -f tmp.pm Lite/Lite.pm %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} \; find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} %{buildroot}/* %check make test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc Changes README TODO docs/rfc1884.txt %{perl_vendorarch}/auto/* %{perl_vendorarch}/NetAddr* %{_mandir}/man3/* %changelog * Thu Apr 26 2007 * Thu Apr 12 2007 Andreas Thienemann 4.004-2 - Moar docs! * Thu Apr 12 2007 Andreas Thienemann 4.004-1 - Specfile autogenerated by cpanspec 1.69.1. - Cleand up for FE