From 2b3c52bc36e95be42a95e7c076fd8b9ddab4aa23 Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Nov 11 2009 10:31:41 +0000 Subject: Initial import in F-12 --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..70d0209 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: perl-Net-CIDR +# $Id$ +NAME := perl-Net-CIDR +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/import.log b/import.log new file mode 100644 index 0000000..300b764 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-Net-CIDR-0_13-2_fc11:F-12:perl-Net-CIDR-0.13-2.fc11.src.rpm:1257935407 diff --git a/perl-Net-CIDR.spec b/perl-Net-CIDR.spec new file mode 100644 index 0000000..d80b294 --- /dev/null +++ b/perl-Net-CIDR.spec @@ -0,0 +1,55 @@ +Name: perl-Net-CIDR +Version: 0.13 +Release: 2%{?dist} +Summary: Manipulate IPv4/IPv6 netblocks in CIDR notation +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Net-CIDR/ +Source0: http://www.cpan.org/authors/id/M/MR/MRSAM/Net-CIDR-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +The Net::CIDR package contains functions that manipulate lists of IP +netblocks expressed in CIDR notation. The Net::CIDR functions handle both +IPv4 and IPv6 addresses. + +%prep +%setup -q -n Net-CIDR-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +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 -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes COPYING README +%{perl_vendorlib}/Net/ +%{_mandir}/man3/*.3pm* + +%changelog +* Mon Nov 9 2009 Nicolas Chauvet - 0.13-2 +- Fix License tag +- Remove Net-CIDR.spec from %%doc +- List files more explicitely + +* Fri Sep 25 2009 Nicolas Chauvet - 0.13-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources new file mode 100644 index 0000000..83813df --- /dev/null +++ b/sources @@ -0,0 +1 @@ +40f0f42104b314af91ab78119e0096de Net-CIDR-0.13.tar.gz