[Bug 1079615] Review Request: perl-MooX-HandlesVia - NativeTrait-like behavior for Moo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1079615



--- Comment #1 from Petr Pisar <ppisar@xxxxxxxxxx> ---
URL and Source0 are usable. Ok.
Source archive is original (SHA-256:
a69de0c201269a4ad2bfce51b200a91bf7f20c0a1d392f130185c8ae533f9360). Ok.
Summary verified from README. Ok.

TODO: I would speel `NativeTrait-like' as `Native-trait-like' or
`NativeTraits-like' because `NativeTrait' is neither word nor Moose term
(MouseX::NativeTraits).

Description verified from README. Ok.
License verified from README, LICENSE and various ./lib files. Ok.
No XS code, noarch BuildArch is Ok.

TODO: You can replace `PERL_INSTALL_ROOT' with `DESTDIR' argument in the
%install section.
TODO: Package either README or README.mkdn. They are redundant.
TODO: Do not package dist.ini. There is nothing spectacular for the end users
besides the git URL.

TODO: Constrain `BuildRequire: perl(ExtUtils::MakeMaker)' with `>= 6.30'
(Makefile.PL:7).

namespace::autoclean is optional for tests
(t/unimport/namespace_autoclean.t:7). Ok.
namespace::clean is optional for tests (t/unimport/namespace_clean.t:7). Ok.

TODO: You should build-require both `perl(namespace::clean)' and
`perl(namespace::autoclean)', or none for consistency.

TODO: Build-require `perl(strict)' (Makefile.PL:2).
TODO: Build-require `perl(warnings)' (Makefile.PL:3).

FIX: (Build-)require Data::Perl::* modules instead of Data::Perl itself
(Data::Perl::Role::Collection::Array, Data::Perl::Role::Collection::Hash,
Data::Perl::Role::String, Data::Perl::Role::Number, Data::Perl::Role::Bool).
These are loaded via Moo's `with' keyword.

FIX: Do not Build-require `perl(Role::Tiny)'. It's not used anywhere. It's
loaded via Role::Tiny::With.

Data::Dumper is not used (t/from-moose/trait_hash.t:257). Ok.

FIX: Build-require `perl(Moo::Role)' (t/handlesvia_in_role.t:7).

TODO: Build-require `perl(overload)' (t/from-moose/trait_array.t:98).

All tests pass. Ok.

$ rpmlint  perl-MooX-HandlesVia.spec
../SRPMS/perl-MooX-HandlesVia-0.001005-1.fc21.src.rpm
../RPMS/noarch/perl-MooX-HandlesVia-0.001005-1.fc21.noarch.rpm 
perl-MooX-HandlesVia.src: W: spelling-error %description -l en_US proxying ->
propping
perl-MooX-HandlesVia.src: W: spelling-error %description -l en_US atttribute ->
attribute, attributive, attribution
perl-MooX-HandlesVia.noarch: W: spelling-error %description -l en_US proxying
-> propping
perl-MooX-HandlesVia.noarch: W: spelling-error %description -l en_US atttribute
-> attribute, attributive, attribution
2 packages and 1 specfiles checked; 0 errors, 4 warnings.
FIX: Correct `atttribute' spelling.

$ rpm -q -lv -p ../RPMS/noarch/perl-MooX-HandlesVia-0.001005-1.fc21.noarch.rpm 
drwxr-xr-x    2 root    root                        0 Mar 25 09:33
/usr/share/doc/perl-MooX-HandlesVia
-rw-r--r--    1 root    root                      700 Dec 20 18:24
/usr/share/doc/perl-MooX-HandlesVia/Changes
-rw-r--r--    1 root    root                    18410 Dec 20 18:24
/usr/share/doc/perl-MooX-HandlesVia/LICENSE
-rw-r--r--    1 root    root                     1430 Dec 20 18:24
/usr/share/doc/perl-MooX-HandlesVia/META.json
-rw-r--r--    1 root    root                     3231 Dec 20 18:24
/usr/share/doc/perl-MooX-HandlesVia/README
-rw-r--r--    1 root    root                     3485 Dec 20 18:24
/usr/share/doc/perl-MooX-HandlesVia/README.mkdn
-rw-r--r--    1 root    root                      242 Dec 20 18:24
/usr/share/doc/perl-MooX-HandlesVia/TODO
-rw-r--r--    1 root    root                      907 Dec 20 18:24
/usr/share/doc/perl-MooX-HandlesVia/dist.ini
-rw-r--r--    1 root    root                     2217 Mar 25 09:33
/usr/share/man/man3/Data::Perl::Bool::MooseLike.3pm.gz
-rw-r--r--    1 root    root                     2453 Mar 25 09:33
/usr/share/man/man3/Data::Perl::Collection::Array::MooseLike.3pm.gz
-rw-r--r--    1 root    root                     2593 Mar 25 09:33
/usr/share/man/man3/Data::Perl::Collection::Hash::MooseLike.3pm.gz
-rw-r--r--    1 root    root                     2219 Mar 25 09:33
/usr/share/man/man3/Data::Perl::Number::MooseLike.3pm.gz
-rw-r--r--    1 root    root                     2600 Mar 25 09:33
/usr/share/man/man3/Data::Perl::String::MooseLike.3pm.gz
-rw-r--r--    1 root    root                     3213 Mar 25 09:33
/usr/share/man/man3/MooX::HandlesVia.3pm.gz
drwxr-xr-x    2 root    root                        0 Mar 25 09:33
/usr/share/perl5/vendor_perl/Data
drwxr-xr-x    2 root    root                        0 Mar 25 09:33
/usr/share/perl5/vendor_perl/Data/Perl
drwxr-xr-x    2 root    root                        0 Mar 25 09:33
/usr/share/perl5/vendor_perl/Data/Perl/Bool
-rw-r--r--    1 root    root                     1308 Dec 20 18:24
/usr/share/perl5/vendor_perl/Data/Perl/Bool/MooseLike.pm
drwxr-xr-x    2 root    root                        0 Mar 25 09:33
/usr/share/perl5/vendor_perl/Data/Perl/Collection
drwxr-xr-x    2 root    root                        0 Mar 25 09:33
/usr/share/perl5/vendor_perl/Data/Perl/Collection/Array
-rw-r--r--    1 root    root                     1996 Dec 20 18:24
/usr/share/perl5/vendor_perl/Data/Perl/Collection/Array/MooseLike.pm
drwxr-xr-x    2 root    root                        0 Mar 25 09:33
/usr/share/perl5/vendor_perl/Data/Perl/Collection/Hash
-rw-r--r--    1 root    root                     2444 Dec 20 18:24
/usr/share/perl5/vendor_perl/Data/Perl/Collection/Hash/MooseLike.pm
drwxr-xr-x    2 root    root                        0 Mar 25 09:33
/usr/share/perl5/vendor_perl/Data/Perl/Number
-rw-r--r--    1 root    root                     1324 Dec 20 18:24
/usr/share/perl5/vendor_perl/Data/Perl/Number/MooseLike.pm
drwxr-xr-x    2 root    root                        0 Mar 25 09:33
/usr/share/perl5/vendor_perl/Data/Perl/String
-rw-r--r--    1 root    root                     2229 Dec 20 18:24
/usr/share/perl5/vendor_perl/Data/Perl/String/MooseLike.pm
drwxr-xr-x    2 root    root                        0 Mar 25 09:33
/usr/share/perl5/vendor_perl/MooX
-rw-r--r--    1 root    root                     5509 Dec 20 18:24
/usr/share/perl5/vendor_perl/MooX/HandlesVia.pm
File layout and permissions are Ok.

$ rpm -q --requires -p
../RPMS/noarch/perl-MooX-HandlesVia-0.001005-1.fc21.noarch.rpm | sort | uniq -c
      1 perl(Class::Method::Modifiers)
      1 perl(Data::Perl) >= 0.002006
      1 perl(:MODULE_COMPAT_5.18.2)
      1 perl(Module::Runtime)
      1 perl(Moo) >= 1.003000
      1 perl(Role::Tiny::With)
      1 perl(strictures) >= 1
      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
FIX: Require Data::Perl::* modules instead of Data::Perl itself
(Data::Perl::Role::Collection::Array, Data::Perl::Role::Collection::Hash,
Data::Perl::Role::String, Data::Perl::Role::Number, Data::Perl::Role::Bool).
The Data::Perl is not used by this RPM package directly. It's used by those
modules indirectly. Those modules are loaded by Moo's keyword `with' which is
not yet recognized by RPM dependency generator.

$ rpm -q --provides -p
../RPMS/noarch/perl-MooX-HandlesVia-0.001005-1.fc21.noarch.rpm | sort | uniq -c
      1 perl(Data::Perl::Bool::MooseLike) = 0.001005
      1 perl(Data::Perl::Collection::Array::MooseLike) = 0.001005
      1 perl(Data::Perl::Collection::Hash::MooseLike) = 0.001005
      1 perl(Data::Perl::Number::MooseLike) = 0.001005
      1 perl(Data::Perl::String::MooseLike) = 0.001005
      1 perl(MooX::HandlesVia) = 0.001005
      1 perl-MooX-HandlesVia = 0.001005-1.fc21
Binary provides are Ok.

$ resolvedeps f21-build
../RPMS/noarch/perl-MooX-HandlesVia-0.001005-1.fc21.noarch.rpm 
Binary dependencies resolvable. Ok.

Package builds in F21
(http://koji.fedoraproject.org/koji/taskinfo?taskID=6671102). Ok.

Otherwise the package is in line with Fedora and Perl packaging guidelines.

Please correct all `FIX' items, consider fixing `TODO' items, and provide new
spec file.
Resolution: Package NOT approved.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review





[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]