Bug 664204 (perl-BackPAN-Index) - Review Request: perl-BackPAN-Index - Interface to the BackPAN index
Summary: Review Request: perl-BackPAN-Index - Interface to the BackPAN index
Keywords:
Status: CLOSED NEXTRELEASE
Alias: perl-BackPAN-Index
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL: http://search.cpan.org/dist/BackPAN-I...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-19 07:35 UTC by Iain Arnell
Modified: 2011-01-08 07:02 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-01-08 07:02:28 UTC
Type: ---
Embargoed:
ppisar: fedora-review+
j: fedora-cvs+


Attachments (Terms of Use)

Description Iain Arnell 2010-12-19 07:35:14 UTC
Spec URL: http://fedorapeople.org/~iarnell/review/perl-BackPAN-Index.spec
SRPM URL: http://fedorapeople.org/~iarnell/review/perl-BackPAN-Index-0.39-1.fc15.src.rpm

Description:
This downloads, caches and parses the BackPAN index into a local database
for efficient querying.

Koji build: http://koji.fedoraproject.org/koji/taskinfo?taskID=2675609

*rt-0.10_01

Comment 1 Iain Arnell 2010-12-19 07:37:44 UTC
Note that this is effectively a rename of perl-Parse-BACKPAN-Packages, so obsoletes it.

The only reverse dependency is perl-Git-CPAN-Patch; the latest version of which requires BackPAN::Index.

Comment 2 Petr Pisar 2011-01-04 14:53:40 UTC
Source tar ball is original. Ok.
Summary verified from lib/BackPAN/Index.pm. Ok.
License verified from lib/BackPAN/Index.pm. Ok.
Description verified from lib/BackPAN/Index.pm. Ok.

Comment 3 Petr Pisar 2011-01-04 15:57:55 UTC
(In reply to comment #2)
> Source tar ball is original. Ok.
> Summary verified from lib/BackPAN/Index.pm. Ok.
> License verified from lib/BackPAN/Index.pm. Ok.
> Description verified from lib/BackPAN/Index.pm. Ok.

Continuation:

FIX: BuildRequire perl(File::Spec) (t/lib/TestUtils.pm:6) as it can dual-live in the future (http://search.cpan.org/~smueller/PathTools/).
FIX: BuildRequire perl(File::Path) (t/lib/TestUtils.pm:7) as it can dual-live in the future (http://search.cpan.org/~dland/File-Path/).

FIX: BuildRequire perl(URI::file) (t/lib/TestUtils.pm:28)
FIX: BudilRequire perl(File::Spec::Unix) (t/lib/TestUtils.pm:29)

Test::Pod::Coverage >= 1.04 (t/pod_coverage.t:4) unused in standard test run. Ok.

Obsoletes on package rename. Ok.

All tests pass. Ok.

$ rpmlint perl-BackPAN-Index.spec ../SRPMS/perl-BackPAN-Index-0.39-1.fc14.src.rpm ../RPMS/noarch/perl-BackPAN-Index-0.39-1.fc14.noarch.rpm 
perl-BackPAN-Index.noarch: W: obsolete-not-provided perl-Parse-BACKPAN-Packages
2 packages and 1 specfiles checked; 0 errors, 1 warnings.

As perl package dependency is denoted by `perl()' schema and this package provides perl(Parse::BACKPAN::Packages) = 0.39, this is sufficient.
rpmlint Ok.

$ rpm -pqlv  ../RPMS/noarch/perl-BackPAN-Index-0.39-1.fc14.noarch.rpm  drwxr-xr-x    2 root    root                        0 led  4 16:18 /usr/share/doc/perl-BackPAN-Index-0.39
-rw-r--r--    1 root    root                     1888 dub 17  2010 /usr/share/doc/perl-BackPAN-Index-0.39/CHANGES
-rw-r--r--    1 root    root                    18426 dub 17  2010 /usr/share/doc/perl-BackPAN-Index-0.39/LICENSE
-rw-r--r--    1 root    root                     5771 dub 17  2010 /usr/share/doc/perl-BackPAN-Index-0.39/README
drwxr-xr-x    2 root    root                        0 led  4 16:18 /usr/share/doc/perl-BackPAN-Index-0.39/examples
-rw-r--r--    1 root    root                     1872 led  4 16:18 /usr/share/doc/perl-BackPAN-Index-0.39/examples/backpan.pl
-rw-r--r--    1 root    root                     3906 led  4 16:18 /usr/share/man/man3/BackPAN::Index.3pm.gz
-rw-r--r--    1 root    root                     2176 led  4 16:18 /usr/share/man/man3/BackPAN::Index::Dist.3pm.gz
-rw-r--r--    1 root    root                     2418 led  4 16:18 /usr/share/man/man3/BackPAN::Index::File.3pm.gz
-rw-r--r--    1 root    root                     2570 led  4 16:18 /usr/share/man/man3/BackPAN::Index::Release.3pm.gz
-rw-r--r--    1 root    root                     2067 led  4 16:18 /usr/share/man/man3/BackPAN::Index::Role::AsHash.3pm.gz
-rw-r--r--    1 root    root                     1776 led  4 16:18 /usr/share/man/man3/BackPAN::Index::Schema.3pm.gz
-rw-r--r--    1 root    root                     2979 led  4 16:18 /usr/share/man/man3/Parse::BACKPAN::Packages.3pm.gz
drwxr-xr-x    2 root    root                        0 led  4 16:18 /usr/share/perl5/BackPAN
drwxr-xr-x    2 root    root                        0 led  4 16:18 /usr/share/perl5/BackPAN/Index
-rw-r--r--    1 root    root                    16570 led  4 16:18 /usr/share/perl5/BackPAN/Index.pm
-rw-r--r--    1 root    root                     1768 led  4 16:18 /usr/share/perl5/BackPAN/Index/Dist.pm
-rw-r--r--    1 root    root                     2311 led  4 16:18 /usr/share/perl5/BackPAN/Index/File.pm
-rw-r--r--    1 root    root                     2588 led  4 16:18 /usr/share/perl5/BackPAN/Index/Release.pm
drwxr-xr-x    2 root    root                        0 led  4 16:18 /usr/share/perl5/BackPAN/Index/Role
-rw-r--r--    1 root    root                     1003 led  4 16:18 /usr/share/perl5/BackPAN/Index/Role/AsHash.pm
-rw-r--r--    1 root    root                      567 led  4 16:18 /usr/share/perl5/BackPAN/Index/Schema.pm
drwxr-xr-x    2 root    root                        0 led  4 16:18 /usr/share/perl5/Parse
drwxr-xr-x    2 root    root                        0 led  4 16:18 /usr/share/perl5/Parse/BACKPAN
-rw-r--r--    1 root    root                     5245 led  4 16:18 /usr/share/perl5/Parse/BACKPAN/Packages.pm
File permissions and layout Ok.

$ rpm -pq --requires ../RPMS/noarch/perl-BackPAN-Index-0.39-1.fc14.noarch.rpm |sort |uniq -c
      1 perl(App::Cache) >= 0.37
      1 perl(Archive::Extract)  
      1 perl(autodie)  
      1 perl(BackPAN::Index)  
      1 perl(BackPAN::Index::Role::AsHash)  
      1 perl(BackPAN::Index::Schema)  
      1 perl(base)  
      1 perl(CLASS)  
      1 perl(Class::Accessor::Fast)  
      1 perl(CLASS) >= 1.00
      1 perl(CPAN::DistnameInfo) >= 0.09
      1 perl(DBD::SQLite) >= 1.25
      1 perl(DBIx::Class::Schema::Loader) >= 0.05003
      1 perl(DBIx::Class) >= 0.08109
      1 perl(File::Basename)  
      1 perl(File::stat)  
      1 perl(LWP::Simple)  
      1 perl(:MODULE_COMPAT_5.12.2)  
      1 perl(parent)  
      1 perl(Path::Class)  
      1 perl(Path::Class) >= 0.17
      1 perl(strict)  
      1 perl(warnings)  
      1 rpmlib(CompressedFileNames) <= 3.0.4-1
      1 rpmlib(FileDigests) <= 4.6.0-1
      1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
      1 rpmlib(PayloadIsXz) <= 5.2-1
      2 rpmlib(VersionedDependencies) <= 3.0.3-1
TODO: Filter underspecified perl(CLASS) Requires.
TODO: Filter underspecified perl(Path::Class) Requires.

$ rpm -pq --provides ../RPMS/noarch/perl-BackPAN-Index-0.39-1.fc14.noarch.rpm |sort |uniq -c
      1 perl(BackPAN::Index::Dist)  
      1 perl(BackPAN::Index::File)  
      1 perl(BackPAN::Index::Release)  
      1 perl(BackPAN::Index::Role::AsHash)  
      1 perl(BackPAN::Index::Schema)  
      1 perl(BackPAN::Index) = 0.39
      1 perl-BackPAN-Index = 0.39-1.fc14
      1 perl(Parse::BACKPAN::Packages) = 0.39
Binary provides Ok.

$ resolvedeps-f15 ../RPMS/noarch/perl-BackPAN-Index-0.39-1.fc14.noarch.rpm 
Binary dependencies resolvable. Ok.

Package does not build in F15 (http://koji.fedoraproject.org/koji/taskinfo?taskID=2700482) because of bug in perl-DBI.
POSTPONE: This review will be suspended until fix of the perl-DBI in F15.

Otherwise package is in line with Fedora and perl packaging guidelines.


Please correct all `FIX' prefixed issues and submit new spec file. Please consider fixing all `TODO' prefixed issues.
Resolution: Package NOT approved.

Comment 4 Iain Arnell 2011-01-05 05:43:20 UTC
BuildRequires added for dual-lived modules, and underspecified Requires are now filtered.

Package still builds in dist-f14.


Spec URL: http://fedorapeople.org/~iarnell/review/perl-BackPAN-Index.spec
SRPM URL: http://fedorapeople.org/~iarnell/review/perl-BackPAN-Index-0.39-2.fc13.src.rpm

Koji build: http://koji.fedoraproject.org/koji/taskinfo?taskID=2701699

Comment 5 Petr Pisar 2011-01-05 13:00:08 UTC
Spec file changes:
--- perl-BackPAN-Index.spec	2010-12-19 08:31:43.000000000 +0100
+++ perl-BackPAN-Index.spec.1	2011-01-05 06:43:19.000000000 +0100
@@ -1,6 +1,6 @@
 Name:           perl-BackPAN-Index
 Version:        0.39
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Interface to the BackPAN index
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -16,12 +16,16 @@
 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
@@ -33,7 +37,10 @@
 # Parse::BACKPAN::Packages is deprecated in favor of BackPAN::Index
 Obsoletes:      perl-Parse-BACKPAN-Packages <= 0.35
 
-%{?perl_default_filter}
+%{?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
@@ -64,6 +71,10 @@
 %{_mandir}/man3/*
 
 %changelog
+* Wed Jan 05 2011 Iain Arnell <iarnell> 0.39-2
+- additional buildrequires for dual-lived modules
+- filter underspecified requires
+
 * Sun Dec 19 2010 Iain Arnell <iarnell> 0.39-1
 - Specfile autogenerated by cpanspec 1.78.
 - obsoletes perl-Parse-BACKPAN-Packages

 
> FIX: BuildRequire perl(File::Spec) (t/lib/TestUtils.pm:6) as it can dual-live
> in the future (http://search.cpan.org/~smueller/PathTools/).
+BuildRequires:  perl(File::Spec)
Ok.

> FIX: BuildRequire perl(File::Path) (t/lib/TestUtils.pm:7) as it can dual-live
> in the future (http://search.cpan.org/~dland/File-Path/).
>
+BuildRequires:  perl(File::Path)
Ok.

> FIX: BuildRequire perl(URI::file) (t/lib/TestUtils.pm:28)
+BuildRequires:  perl(URI::file)
Ok.

> FIX: BudilRequire perl(File::Spec::Unix) (t/lib/TestUtils.pm:29)
>
+BuildRequires:  perl(File::Spec::Unix)
Ok.

> TODO: Filter underspecified perl(CLASS) Requires.
> TODO: Filter underspecified perl(Path::Class) Requires.
>
+%filter_from_requires /perl(CLASS)$/d;/perl(Path::Class)$/d

$ rpm -pq --requires ../RPMS/noarch/perl-BackPAN-Index-0.39-2.fc14.noarch.rpm | sort |uniq -c |xclip -in
      1 perl(App::Cache) >= 0.37
      1 perl(Archive::Extract)  
      1 perl(autodie)  
      1 perl(BackPAN::Index)  
      1 perl(BackPAN::Index::Role::AsHash)  
      1 perl(BackPAN::Index::Schema)  
      1 perl(base)  
      1 perl(Class::Accessor::Fast)  
      1 perl(CLASS) >= 1.00
      1 perl(CPAN::DistnameInfo) >= 0.09
      1 perl(DBD::SQLite) >= 1.25
      1 perl(DBIx::Class::Schema::Loader) >= 0.05003
      1 perl(DBIx::Class) >= 0.08109
      1 perl(File::Basename)  
      1 perl(File::stat)  
      1 perl(LWP::Simple)  
      1 perl(:MODULE_COMPAT_5.12.2)  
      1 perl(parent)  
      1 perl(Path::Class) >= 0.17
      1 perl(strict)  
      1 perl(warnings)  
      1 rpmlib(CompressedFileNames) <= 3.0.4-1
      1 rpmlib(FileDigests) <= 4.6.0-1
      1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
      1 rpmlib(PayloadIsXz) <= 5.2-1
      2 rpmlib(VersionedDependencies) <= 3.0.3-1
Binary requires Ok.
 
> 
> Package does not build in F15
> (http://koji.fedoraproject.org/koji/taskinfo?taskID=2700482) because of bug in
> perl-DBI.
> POSTPONE: This review will be suspended until fix of the perl-DBI in F15.
> 
Package builds in F14 (http://koji.fedoraproject.org/koji/getfile?taskID=2702183&name=build.log). Problem in F15 is just a temporary issue. Ok.

Resolution: Package APPROVED.
Notice: Build for F15 after fixing perl-DBI (emerging perl-Core).

Comment 6 Iain Arnell 2011-01-05 16:32:44 UTC
New Package CVS Request
=======================
Package Name: perl-BackPAN-Index
Short Description: Interface to the BackPAN index
Owners: iarnell cweyl
Branches: f13 f14
InitialCC: perl-sig

Comment 7 Jason Tibbitts 2011-01-07 17:27:31 UTC
Git done (by process-git-requests).

Comment 8 Iain Arnell 2011-01-08 07:02:28 UTC
Thanks for the review! :-)


Note You need to log in before you can comment on or make changes to this bug.