# $Id$ # Authority: dries # Upstream: Sam Varshavchik %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib) %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch) %define real_name Net-CIDR Summary: Manipulate IPv4/IPv6 netblocks in CIDR notation Name: perl-Net-CIDR Version: 0.13 Release: 1%{?dist} License: Artistic Group: Applications/CPAN URL: http://search.cpan.org/dist/Net-CIDR/ Source: http://www.cpan.org/modules/by-module/Net/Net-CIDR-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: perl BuildRequires: perl(ExtUtils::MakeMaker) %description With this module, you can manipulate IPv4/IPv6 netblocks in CIDR notation. %prep %setup -n %{real_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %{__make} pure_install %{__rm} -f %{buildroot}%{perl_archlib}/perllocal.pod %{__rm} -f %{buildroot}%{perl_vendorarch}/auto/*/*/.packlist %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc Changes README %doc %{_mandir}/man3/* %{perl_vendorlib}/Net/CIDR.pm %changelog * Sat Jul 4 2009 Christoph Maser - 0.13-1 - Updated to version 0.13. * Wed Mar 22 2006 Dries Verachtert - 0.11-1.2 - Rebuild for Fedora Core 5. * Sat Nov 5 2005 Dries Verachtert - 0.11-1 - Updated to release 0.11. * Thu Jul 22 2004 Dries Verachtert - 0.10-1 - Initial package.