From 0d5e391c957e2d33bddb5a7de60c4fa5e0256a54 Mon Sep 17 00:00:00 2001 From: Andreas Thienemann Date: Wed, 16 May 2007 21:08:44 +0000 Subject: [PATCH] Initial import --- .cvsignore | 1 + perl-NetAddr-IP.spec | 64 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 66 insertions(+) create mode 100644 perl-NetAddr-IP.spec diff --git a/.cvsignore b/.cvsignore index e69de29..1ad54a3 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +NetAddr-IP-4.004.tar.gz diff --git a/perl-NetAddr-IP.spec b/perl-NetAddr-IP.spec new file mode 100644 index 0000000..6d06261 --- /dev/null +++ b/perl-NetAddr-IP.spec @@ -0,0 +1,64 @@ +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 diff --git a/sources b/sources index e69de29..7f2af0d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4f0ef938abf0b1e43ca96fb0068381df NetAddr-IP-4.004.tar.gz