Name: perl-Net-IP-Minimal Version: 0.02 Release: 1%{?dist} Summary: Minimal functions from Net::IP License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Net-IP-Minimal/ Source0: http://www.cpan.org/authors/id/B/BI/BINGOS/Net-IP-Minimal-%{version}.tar.gz BuildArch: noarch BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) # Tests only BuildRequires: perl(File::Temp) BuildRequires: perl(Test::More) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description Net::IP is very feature complete, but I found I was only using three of its functions and it uses quite a bit of memory. %prep %setup -q -n Net-IP-Minimal-%{version} %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} \; find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} %{buildroot}/* %check make test %files %doc Changes LICENSE README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Wed Mar 14 2012 Petr Ĺ abata 0.02-1 - Initial packaging