commit 27d999c03d21bba5cc9900c050bbe8bfd12cba11 Author: Ralf CorsÃpius <corsepiu@xxxxxxxxxxxxxxxxx> Date: Sat Jan 15 07:35:06 2011 +0100 Import. .gitignore | 1 + perl-Regexp-Common-net-CIDR.spec | 56 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 58 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..2f63c9d 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Regexp-Common-net-CIDR-0.02.tar.gz diff --git a/perl-Regexp-Common-net-CIDR.spec b/perl-Regexp-Common-net-CIDR.spec new file mode 100644 index 0000000..1c3cd2d --- /dev/null +++ b/perl-Regexp-Common-net-CIDR.spec @@ -0,0 +1,56 @@ +Name: perl-Regexp-Common-net-CIDR +Version: 0.02 +Release: 1%{?dist} +Summary: Provide patterns for CIDR blocks +License: GPLv2 +Group: Development/Libraries +URL: http://search.cpan.org/dist/Regexp-Common-net-CIDR/ +Source0: http://www.cpan.org/authors/id/R/RU/RUZ/Regexp-Common-net-CIDR-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Regexp::Common) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Patterns for CIDR blocks. + +Now only next IPv4 formats are supported: + xxx.xxx/xx + xxx.xxx.xxx/xx + xxx.xxx.xxx.xxx/xx + +%prep +%setup -q -n Regexp-Common-net-CIDR-%{version} + +%build +# --skipdeps causes ExtUtils::AutoInstall not to try auto-installing +# missing modules +%{__perl} Makefile.PL INSTALLDIRS=vendor --skipdeps +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 README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Dec 22 2010 Ralf CorsÃpius <corsepiu@xxxxxxxxxxxxxxxxx> 0.02-1 +- Initial Fedora package. diff --git a/sources b/sources index e69de29..09aaefa 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e109d32c7ed46956477cf94e54d1442a Regexp-Common-net-CIDR-0.02.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel