Bug 1755870 - Review Request: perl-Test-Deep-Fuzzy - Fuzzy number comparison with Test::Deep
Summary: Review Request: perl-Test-Deep-Fuzzy - Fuzzy number comparison with Test::Deep
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-26 11:19 UTC by Yanko Kaneti
Modified: 2019-09-30 15:17 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-09-30 15:17:58 UTC
Type: ---
Embargoed:
ppisar: fedora-review+


Attachments (Terms of Use)

Description Yanko Kaneti 2019-09-26 11:19:24 UTC
Spec URL: http://declera.com/~yaneti/perl-Test-Deep-Fuzzy/perl-Test-Deep-Fuzzy.spec
SRPM URL: http://declera.com/~yaneti/perl-Test-Deep-Fuzzy/perl-Test-Deep-Fuzzy-0.01-1.fc32.src.rpm
Description: 
Test::Deep::Fuzzy provides fuzzy number comparison with Test::Deep.

Fedora Account System Username: yaneti

Comment 1 Petr Pisar 2019-09-27 15:29:56 UTC
URL and Source0 addresses are Ok.

TODO: There is no link from a page on the URL location to Source0. Maybe you should use Source0 from Github releases, or change URL to CPAN to be consistent.

Source0 archive (SHA-256: f5c94fdd836b0d07187e297556986b0888d2cd5d136251962eed427580394daf) is original. Ok.
Summary verified from lib/Test/Deep/Fuzzy.pm. Ok.
Description verified from lib/Test/Deep/Fuzzy.pm. Ok.
License verified from lib/Test/Deep/Fuzzy.pm, README.md, and LICENSE. Ok.
No XS code, noarch BuildArch is Ok.

TODO: Do not version perl-interpreter (perl-interpreter >= 5.008001). Use 'perl(:VERSION) >= 5.8.1' for that purpose. perl-interpreter has an epoch number and the comparison does not work.

FIX: Do not build-require 'perl(Module::Build)'. It's not used anywhere.

All tests pass. Ok.

$ rpmlint perl-Test-Deep-Fuzzy.spec ../SRPMS/perl-Test-Deep-Fuzzy-0.01-1.fc32.src.rpm ../RPMS/noarch/perl-Test-Deep-Fuzzy-0.01-1.fc32.noarch.rpm 
sh: /usr/bin/python2: No such file or directory
2 packages and 1 specfiles checked; 0 errors, 0 warnings.
rpmlint is Ok.

$ rpm -q -lv -p ../RPMS/noarch/perl-Test-Deep-Fuzzy-0.01-1.fc32.noarch.rpm 
drwxr-xr-x    2 root     root                        0 Sep 27 17:12 /usr/share/doc/perl-Test-Deep-Fuzzy
-rw-r--r--    1 root     root                      104 Nov  8  2016 /usr/share/doc/perl-Test-Deep-Fuzzy/Changes
-rw-r--r--    1 root     root                     1252 Nov  8  2016 /usr/share/doc/perl-Test-Deep-Fuzzy/README.md
drwxr-xr-x    2 root     root                        0 Sep 27 17:12 /usr/share/licenses/perl-Test-Deep-Fuzzy
-rw-r--r--    1 root     root                    18400 Nov  8  2016 /usr/share/licenses/perl-Test-Deep-Fuzzy/LICENSE
-rw-r--r--    1 root     root                     2233 Sep 27 17:12 /usr/share/man/man3/Test::Deep::Fuzzy.3pm.gz
-rw-r--r--    1 root     root                       20 Sep 27 17:12 /usr/share/man/man3/Test::Deep::Fuzzy::Number.3pm.gz
drwxr-xr-x    2 root     root                        0 Sep 27 17:12 /usr/share/perl5/vendor_perl/Test
drwxr-xr-x    2 root     root                        0 Sep 27 17:12 /usr/share/perl5/vendor_perl/Test/Deep
drwxr-xr-x    2 root     root                        0 Sep 27 17:12 /usr/share/perl5/vendor_perl/Test/Deep/Fuzzy
-rw-r--r--    1 root     root                     1142 Nov  8  2016 /usr/share/perl5/vendor_perl/Test/Deep/Fuzzy.pm
-rw-r--r--    1 root     root                     1292 Nov  8  2016 /usr/share/perl5/vendor_perl/Test/Deep/Fuzzy/Number.pm
File layout and permissions are Ok.

$ rpm -q --requires -p ../RPMS/noarch/perl-Test-Deep-Fuzzy-0.01-1.fc32.noarch.rpm  | sort -f | uniq -c
      1 perl(:MODULE_COMPAT_5.30.0)
      1 perl(Exporter) >= 5.57
      1 perl(Math::Round)
      1 perl(Scalar::Util)
      1 perl(Test::Deep::Cmp)
      1 rpmlib(CompressedFileNames) <= 3.0.4-1
      1 rpmlib(FileDigests) <= 4.6.0-1
      1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
      1 rpmlib(PayloadIsZstd) <= 5.4.18-1
FIX: Run-require 'perl(B)' (lib/Test/Deep/Fuzzy/Number.pm:7).
FIX: Run-require 'perl(strict)' (lib/Test/Deep/Fuzzy.pm:3).
FIX: Run-require 'perl(warnings)' (lib/Test/Deep/Fuzzy.pm:4).
TODO: Alternatively build-require 'perl-generators' instead of listing the Requires manually.

$ rpm -q --provides -p ../RPMS/noarch/perl-Test-Deep-Fuzzy-0.01-1.fc32.noarch.rpm  | sort -f | uniq -c
      1 perl-Test-Deep-Fuzzy = 0.01-1.fc32
FIX: Provide 'perl(Test::Deep::Fuzzy) = 0.01' (lib/Test/Deep/Fuzzy.pm:1).
FIX: Provide 'perl(Test::Deep::Fuzzy::Number)' (lib/Test/Deep/Fuzzy/Number.pm:1).
TODO: Alternatively build-require 'perl-generators' instead of listing the Provides manually.

The package builds in F32 (https://koji.fedoraproject.org/koji/taskinfo?taskID=37893689). Ok.

Otherwise the package is in line with Fedora and Perl packaging guidelines.
Please correct all 'FIX' items, consider correcting 'TODO' items, and provide a new spec file.
Resolution: Package NOT approved.

Comment 2 Yanko Kaneti 2019-09-27 20:05:52 UTC
Thanks for the review. I believe I've followed all your suggestions in -2

Spec URL: http://declera.com/~yaneti/perl-Test-Deep-Fuzzy/perl-Test-Deep-Fuzzy.spec
SRPM URL: http://declera.com/~yaneti/perl-Test-Deep-Fuzzy/perl-Test-Deep-Fuzzy-0.01-2.fc32.src.rpm

Comment 3 Petr Pisar 2019-09-30 07:56:59 UTC
> TODO: There is no link from a page on the URL location to Source0. Maybe you should use Source0 from Github releases, or change URL to CPAN to be consistent.
-URL:            https://github.com/karupanerura/Test-Deep-Fuzzy
+URL:            https://metacpan.org/pod/Test::Deep::Fuzzy
We usually use a link to a CPAN release page <https://metacpan.org/release/Test-Deep-Fuzzy>. Not to a documentation of a module as you used. But this is distribution contain only one documented module so it does not matter much.
Ok.

>TODO: Do not version perl-interpreter (perl-interpreter >= 5.008001). Use 'perl(:VERSION) >= 5.8.1' for that purpose. perl-interpreter has an epoch number and the comparison does not work.
-BuildRequires:  perl-interpreter >= 5.008001
+BuildRequires:  perl(:VERSION) >= 5.8.1
FIX: Build-require 'perl-interpreter' (perl-Test-Deep-Fuzzy.spec:33).

> FIX: Do not build-require 'perl(Module::Build)'. It's not used anywhere.
-BuildRequires:  perl(Module::Build)
Ok.

$ rpmlint perl-Test-Deep-Fuzzy.spec ../SRPMS/perl-Test-Deep-Fuzzy-0.01-2.fc32.src.rpm ../RPMS/noarch/perl-Test-Deep-Fuzzy-0.01-2.fc32.noarch.rpm 
sh: /usr/bin/python2: No such file or directory
2 packages and 1 specfiles checked; 0 errors, 0 warnings.
rpmlint is Ok.

$ rpm -q --requires -p ../RPMS/noarch/perl-Test-Deep-Fuzzy-0.01-2.fc32.noarch.rpm | sort -f | uniq -c
      1 perl(:MODULE_COMPAT_5.30.0)
      1 perl(:VERSION) >= 5.8.1
      1 perl(B)
      1 perl(Exporter) >= 5.57
      1 perl(Math::Round)
      1 perl(Scalar::Util)
      1 perl(strict)
      1 perl(Test::Deep::Cmp)
      1 perl(Test::Deep::Fuzzy::Number)
      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(PayloadIsZstd) <= 5.4.18-1
Binary requires are Ok.

$ rpm -q --provides -p ../RPMS/noarch/perl-Test-Deep-Fuzzy-0.01-2.fc32.noarch.rpm | sort -f | uniq -c
      1 perl(Test::Deep::Fuzzy) = 0.01
      1 perl(Test::Deep::Fuzzy::Number)
      1 perl-Test-Deep-Fuzzy = 0.01-2.fc32
Binary provides are Ok.

$ resolvedeps f32-build ../RPMS/noarch/perl-Test-Deep-Fuzzy-0.01-2.fc32.noarch.rpm 
Binary dependencies are resolvable. Ok.

Please correct the 'FIX' item before building this package.
Resolution: Package APPROVED.

Comment 4 Gwyn Ciesla 2019-09-30 14:49:54 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/perl-Test-Deep-Fuzzy

Comment 5 Yanko Kaneti 2019-09-30 15:17:58 UTC
Thanks. Fixed the spec some more after import. Built in rawhide

As to why have this package
https://bugzilla.redhat.com/show_bug.cgi?id=1757117


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