Bug 1887187 - Review Request: perl-Test2-Tools-PerlCritic - Testing tools to enforce Perl::Critic policies
Summary: Review Request: perl-Test2-Tools-PerlCritic - Testing tools to enforce Perl::...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jitka Plesnikova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1887018
TreeView+ depends on / blocked
 
Reported: 2020-10-11 16:52 UTC by Emmanuel Seyman
Modified: 2020-10-26 09:07 UTC (History)
3 users (show)

Fixed In Version: perl-Test2-Tools-PerlCritic-0.03-2.fc34
Clone Of:
Environment:
Last Closed: 2020-10-26 09:07:10 UTC
Type: ---
Embargoed:
jplesnik: fedora-review+


Attachments (Terms of Use)

Description Emmanuel Seyman 2020-10-11 16:52:07 UTC
Spec URL: https://people.parinux.org/~seyman/fedora/perl-Test2-Tools-PerlCritic/perl-Test2-Tools-PerlCritic.spec
SRPM URL: https://people.parinux.org/~seyman/fedora/perl-Test2-Tools-PerlCritic/perl-Test2-Tools-PerlCritic-0.03-1.fc32.src.rpm
Description:
Test for Perl::Critic violations using Test2. Although this testing tool
uses the Test2 API instead of the older Test::Builder API, the primary
motivation is to provide output in a more useful form. That is policy
violations are grouped by policy class, and the policy class name is
clearly displayed as a diagnostic. The author finds the former more useful
because he tends to address one type of violation at a time. The author
finds the latter more useful because he tends to want to lookup or adjust
the configuration of the policy as he is addressing violations.

Fedora Account System Username: eseyman
Rpmlint Output: 1 packages and 1 specfiles checked; 0 errors, 0 warnings.

Comment 1 Jitka Plesnikova 2020-10-12 11:38:01 UTC
Source file is ok
Summary is ok
License is ok
Description is ok
URL and Source0 are ok
All tests passed
BuildRequires are ok

FIX: Please add build-requires 
     perl-generators - package does not list all Perl run-time dependencies and it relies on the generators
     perl-interpreter - perl-Test2-Tools-PerlCritic.spec:48
     make - perl-Test2-Tools-PerlCritic.spec:49 - The macro is provided by rpm that does not depend on make
TODO: Please use 'perl(:VERSION) >= 5.20' instead of 'perl >= 0:5.020'. 
      The package 'perl' install interpreter and all core modules. 
      It is not needed.

$ rpm -qp --requires perl-Test2-Tools-PerlCritic-0.03-1.fc34.noarch.rpm | sort | uniq -c | grep -v rpmlib
      1 perl(:MODULE_COMPAT_5.32.0)
FIX: Build-require 'perl-generators'

$ rpm -qp --provides perl-Test2-Tools-PerlCritic-0.03-1.fc34.noarch.rpm | sort | uniq -c
      1 perl-Test2-Tools-PerlCritic = 0.03-1.fc34
FIX: Build-require 'perl-generators'

$ rpmlint ./perl-Test2-Tools-PerlCritic*
2 packages and 1 specfiles checked; 0 errors, 0 warnings.
Rpmlint is ok

Otherwise the package is in line with Fedora and Perl packaging guide lines.
Please correct all 'FIX' items, consider fixing 'TODO' items and provide a new spec file.

Resolution:
NOT approved

Comment 3 Jitka Plesnikova 2020-10-12 14:16:33 UTC
> FIX: Please add build-requires 
>      perl-generators - package does not list all Perl run-time dependencies
> and it relies on the generators
>      perl-interpreter - perl-Test2-Tools-PerlCritic.spec:48
>      make - perl-Test2-Tools-PerlCritic.spec:49 - The macro is provided by
> rpm that does not depend on make
> TODO: Please use 'perl(:VERSION) >= 5.20' instead of 'perl >= 0:5.020'. 
>       The package 'perl' install interpreter and all core modules. 
>       It is not needed.

-BuildRequires:  perl >= 0:5.020
 # build requirements
+BuildRequires:  make
+BuildRequires:  perl-generators
+BuildRequires:  perl-interpreter >= 5.20

Ok

Resolution:
Approved

Comment 4 Petr Pisar 2020-10-12 14:40:47 UTC
> BuildRequires:  perl-interpreter >= 5.20

The package has an epoch. Comparing perl(-interprerer) RPM version against Perl laguage version completely misses the point. If you really need to check for the Perl language version, use perl(:VERSION).

Comment 5 Gwyn Ciesla 2020-10-12 21:33:01 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/perl-Test2-Tools-PerlCritic


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