Name: perl-Best Version: 0.12 Release: 1%{?dist} # note that README says "perl", but the actual source says "MIT" # lib/Best.pm -> MIT License: MIT Group: Development/Libraries Summary: Fallbackable module loader Source: http://search.cpan.org/CPAN/authors/id/G/GA/GAAL/Best-%{version}.tar.gz Url: http://search.cpan.org/dist/Best BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::More) # optional BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) %description Often there are several possible providers of some functionality your program needs, but you don't know which is available at the run site. For example, one of the modules may be implemented with XS, or not in the core Perl distribution and thus not necessarily installed.*Best* attempts to load modules from a list, stopping at the first successful load and failing only if no alternative was found. %prep %setup -q -n Best-%{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 make test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Mon Mar 09 2009 Chris Weyl 0.12-1 - submission * Tue Mar 03 2009 Chris Weyl 0.12-0 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)