commit ccd963ecb28816d5189b6b527f88fb539a3b53d4 Author: Iain Arnell <iarnell@xxxxxxxxx> Date: Sat Jan 8 07:56:14 2011 +0100 initial import .gitignore | 1 + perl-BackPAN-Index.spec | 80 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 82 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..001a38b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/BackPAN-Index-0.39.tar.gz diff --git a/perl-BackPAN-Index.spec b/perl-BackPAN-Index.spec new file mode 100644 index 0000000..d05e9b4 --- /dev/null +++ b/perl-BackPAN-Index.spec @@ -0,0 +1,80 @@ +Name: perl-BackPAN-Index +Version: 0.39 +Release: 2%{?dist} +Summary: Interface to the BackPAN index +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/BackPAN-Index/ +Source0: http://www.cpan.org/authors/id/M/MS/MSCHWERN/BackPAN-Index-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(App::Cache) >= 0.37 +BuildRequires: perl(Archive::Extract) +BuildRequires: perl(autodie) +BuildRequires: perl(CLASS) >= 1.00 +BuildRequires: perl(Class::Accessor::Fast) +BuildRequires: perl(CPAN::DistnameInfo) >= 0.09 +BuildRequires: perl(DBD::SQLite) >= 1.25 +BuildRequires: perl(DBIx::Class) >= 0.08109 +BuildRequires: perl(DBIx::Class::Schema::Loader) >= 0.05003 +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec) +BuildRequires: perl(File::Spec::Unix) +BuildRequires: perl(LWP::Simple) +BuildRequires: perl(Module::Build) +BuildRequires: perl(parent) +BuildRequires: perl(Path::Class) >= 0.17 +BuildRequires: perl(Test::Compile) >= 0.11 +BuildRequires: perl(Test::More) >= 0.90 +BuildRequires: perl(URI::file) +Requires: perl(CLASS) >= 1.00 +Requires: perl(Class::Accessor::Fast) +Requires: perl(DBD::SQLite) >= 1.25 +Requires: perl(DBIx::Class) >= 0.08109 +Requires: perl(DBIx::Class::Schema::Loader) >= 0.05003 +Requires: perl(Path::Class) >= 0.17 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +# Parse::BACKPAN::Packages is deprecated in favor of BackPAN::Index +Obsoletes: perl-Parse-BACKPAN-Packages <= 0.35 + +%{?perl_default_filter: +%filter_from_requires /perl(CLASS)$/d;/perl(Path::Class)$/d +%perl_default_filter +} + +%description +This downloads, caches and parses the BackPAN index into a local database +for efficient querying. + +%prep +%setup -q -n BackPAN-Index-%{version} + +sed -i -e '1s~^#!.*perl~#!%{__perl}~' examples/backpan.pl + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +./Build install destdir=%{buildroot} create_packlist=0 +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +./Build test + +%files +%defattr(-,root,root,-) +%doc CHANGES examples LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Jan 05 2011 Iain Arnell <iarnell@xxxxxxxxx> 0.39-2 +- additional buildrequires for dual-lived modules +- filter underspecified requires + +* Sun Dec 19 2010 Iain Arnell <iarnell@xxxxxxxxx> 0.39-1 +- Specfile autogenerated by cpanspec 1.78. +- obsoletes perl-Parse-BACKPAN-Packages diff --git a/sources b/sources index e69de29..1d5250e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8679070c6409b4bee4339c0feb605eb1 BackPAN-Index-0.39.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