Name: perl-Parse-BACKPAN-Packages Version: 0.34 Release: 1%{?dist} # lib/Parse/BACKPAN/Packages.pm -> GPL+ or Artistic # lib/Parse/BACKPAN/Packages/Distribution.pm -> GPL+ or Artistic # lib/Parse/BACKPAN/Packages/File.pm -> GPL+ or Artistic License: GPL+ or Artistic Group: Development/Libraries Summary: Provide an index of BACKPAN Source: http://search.cpan.org/CPAN/authors/id/L/LB/LBROCARD/Parse-BACKPAN-Packages-%{version}.tar.gz Url: http://search.cpan.org/dist/Parse-BACKPAN-Packages BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch BuildRequires: perl(App::Cache) BuildRequires: perl(Class::Accessor::Fast) BuildRequires: perl(Compress::Zlib) BuildRequires: perl(CPAN::DistnameInfo) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(IO::Zlib) BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(Module::Build::Compat) # testing... BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) # 'use base' strikes again... Requires: perl(Class::Accessor::Chained::Fast) %description The Comprehensive Perl Archive Network (CPAN) is a very useful collection of Perl code. However, in order to keep CPAN relatively small, authors of modules can delete older versions of modules to only let CPAN have the latest version of a module. BACKPAN is where these deleted modules are backed up. It's more like a full CPAN mirror, only without the deletions. This module provides an index of BACKPAN and some handy functions. The data is fetched from the net and cached for an hour. %prep %setup -q -n Parse-BACKPAN-Packages-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor 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} -depth -type d -exec rmdir {} 2>/dev/null ';' %{_fixperms} %{buildroot}/* %check # tests require network access %{?_with_network_tests: make test } %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc CHANGES README %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Thu Mar 05 2009 Chris Weyl 0.34-1 - submission - conditionalize tests; they require network access * Thu Mar 05 2009 Chris Weyl 0.34-0 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)