Bug 657519 - Review Request: perl-Sys-Statistics-Linux - Front-end module to collect system statistics
Summary: Review Request: perl-Sys-Statistics-Linux - Front-end module to collect syste...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Steve Traylen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-26 10:35 UTC by Lubomir Rintel
Modified: 2010-12-14 11:23 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-12-14 11:23:09 UTC
Type: ---
Embargoed:
steve.traylen: fedora-review+
j: fedora-cvs+


Attachments (Terms of Use)

Description Lubomir Rintel 2010-11-26 10:35:23 UTC
SPEC: http://v3.sk/~lkundrak/SPECS/perl-Sys-Statistics-Linux.spec
SRPM: http://v3.sk/~lkundrak/SRPMS/perl-Sys-Statistics-Linux-0.42-2.fc14.src.rpm

Description:

Sys::Statistics::Linux is a front-end module and gather different linux
system informations like processor workload, memory usage, network and disk
statistics and a lot more. Refer the documentation of the distribution
modules to get more informations about all possible statistics.

Comment 1 Steve Traylen 2010-12-12 10:22:14 UTC
Review of perl-Sys-Statistics
Dec 22nd 2010.

Builds okay in mock F15.

$ rpmlint perl-Sys-Statistics-Linux.spec /var/lib/mock/fedora-rawhide-x86_64/result/perl-Sys-Statistics-Linux-0.42-2.fc15.*
perl-Sys-Statistics-Linux.spec: W: invalid-url Source0: http://www.cpan.org//authors/id/B/BL/BLOONIX/Sys-Statistics-Linux-0.42.tar.gz HTTP Error 404: Not Found
perl-Sys-Statistics-Linux.noarch: W: spelling-error %description -l en_US informations -> information, information's, in formations
perl-Sys-Statistics-Linux.src: W: spelling-error %description -l en_US informations -> information, information's, in formations
perl-Sys-Statistics-Linux.src: W: invalid-url Source0: http://www.cpan.org//authors/id/B/BL/BLOONIX/Sys-Statistics-Linux-0.42.tar.gz HTTP Error 404: Not Found



- Package meets naming and packaging guidelines
Yes.
- Spec file matches base package name.
Yes, perl style.
- Spec has consistant macro usage.
Yes
- Meets Packaging Guidelines.
Yes
- License
GPL+ or Artistic
- License field in spec matches
Yes very clearly same as perl.
- License file included in package
Yes LICENCE file included.
- Spec in American English
- Spec is legible.
- Sources match upstream md5sum:
*FAIL* Can't be checked.
http://www.cpan.org//authors/id/B/BL/BLOONIX/Sys-Statistics-Linux-0.42.tar.gz
- Package needs ExcludeArch
It does not.
- BuildRequires correct
Not tested with test.
- Spec handles locales/find_lang
Does not need to.
- Package is relocatable and has a reason to be.
Not relocatable.
- Package has %defattr and permissions on files is good.
It does.
- Package has a correct %clean section.
It does.
- Package has correct buildroot
It does.
%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
- Package is code or permissible content.
Yes.
- Doc subpackage needed/used.
Not nescesary.
- Packages %doc files don't affect runtime.
They don't.
- Headers/static libs in -devel subpackage.
Not needed
- Spec has needed ldconfig in post and postun
Not needed
- .pc files in -devel subpackage/requires pkgconfig
Not needed
- .so files in -devel subpackage.
- -devel package Requires: %{name} = %{version}-%{release}
- .la files are removed.

- Package is a GUI app and has a .desktop file
Not needed
- Package compiles and builds on at least one arch.
Mock
- Package has no duplicate files in %files.
None.
- Package doesn't own any directories other packages own.
- Package owns all the directories it creates.
- No rpmlint output.
- final provides and requires are sane:
$ for i in *rpm; do echo $i; rpm -qp --provides $i; echo =; rpm -qp --requires $i; echo; done
perl-Sys-Statistics-Linux-0.42-2.fc15.noarch.rpm
perl(Sys::Statistics::Linux) = 0.42
perl(Sys::Statistics::Linux::Compilation) = 0.07
perl(Sys::Statistics::Linux::CpuStats) = 0.15
perl(Sys::Statistics::Linux::DiskStats) = 0.19
perl(Sys::Statistics::Linux::DiskUsage) = 0.09
perl(Sys::Statistics::Linux::FileStats) = 0.06
perl(Sys::Statistics::Linux::LoadAVG) = 0.06
perl(Sys::Statistics::Linux::MemStats) = 0.13
perl(Sys::Statistics::Linux::NetStats) = 0.15
perl(Sys::Statistics::Linux::PgSwStats) = 0.13
perl(Sys::Statistics::Linux::ProcStats) = 0.13
perl(Sys::Statistics::Linux::Processes) = 0.20
perl(Sys::Statistics::Linux::SockStats) = 0.06
perl(Sys::Statistics::Linux::SysInfo) = 0.06
perl-Sys-Statistics-Linux = 0.42-2.fc15
=
perl(:MODULE_COMPAT_5.12.2)  
perl(Carp)  
perl(POSIX)  
perl(Sys::Statistics::Linux::Compilation)  
perl(Time::HiRes)  
perl(UNIVERSAL)  
perl(UNIVERSAL::require)  
perl(constant)  
perl(strict)  
perl(warnings)  


perl-Sys-Statistics-Linux-0.42-2.fc15.src.rpm
=
perl(Module::Build)  


SHOULD Items:

- Should build in mock.
It does.
- Should build on all supported archs
It's noarch, it should.
- Should function as described.

- Should have sane scriptlets.
- Should have subpackages require base package with fully versioned depend.
- Should have dist tag
- Should package latest version
It's not: 
http://search.cpan.org/~bloonix/Sys-Statistics-Linux-0.59/
- check for outstanding bugs on package. (For core merge reviews)

Looking good and cpanget has done all the work.

Issues:

1. The URL does not work.
2. There is a newer version available 0.59.

Comment 2 Ralf Corsepius 2010-12-12 13:34:43 UTC
+ Tests not being executed by default.

Comment 3 Lubomir Rintel 2010-12-12 16:04:48 UTC
(In reply to comment #1)
> Issues:
> 
> 1. The URL does not work.
> 2. There is a newer version available 0.59.

Fixed.

(In reply to comment #2)
> + Tests not being executed by default.

Fixed.

SPEC: http://v3.sk/~lkundrak/SPECS/perl-Sys-Statistics-Linux.spec
SRPM:
http://v3.sk/~lkundrak/SRPMS/perl-Sys-Statistics-Linux-0.59-1.fc14.src.rpm

Comment 4 Steve Traylen 2010-12-12 16:18:11 UTC
It's good the tests are enabled but the comment

# Pass --with tests to rpmbuild to run tests when building
# They are disabled by default, because the build environment is not
# like the live system when it comes to colleecting information
# such as mounted filesystems for disk usage statistics, etc.

now no longer makes sense, can you delete or change the case --without tests
works or something.

Also you can add 

%{?perl_default_subpackage_tests}

after the preamble to build a subpackage of tests as well but this is up
to you.

Steve.

Comment 5 Lubomir Rintel 2010-12-12 19:32:23 UTC
(In reply to comment #4)
> It's good the tests are enabled but the comment
> now no longer makes sense, can you delete or change the case --without tests
> works or something.

Whoops; removed.

> Also you can add 
> 
> %{?perl_default_subpackage_tests}
> 
> after the preamble to build a subpackage of tests as well but this is up
> to you.

Well, quite honestly I did not know this macro exists; never seen it before. I'd prefer not adding it now, but would gladly add it (to other perl packages as well) once a guideline about its usage exists.

SPEC: http://v3.sk/~lkundrak/SPECS/perl-Sys-Statistics-Linux.spec
SRPM:
http://v3.sk/~lkundrak/SRPMS/perl-Sys-Statistics-Linux-0.59-1.fc14.src.rpm

(Sorry for not bumping a release number; the change seemed a bit too tiny to me :)

Comment 6 Steve Traylen 2010-12-12 19:41:03 UTC
With one thing, lots of information is still information so can 

s/informations/information/  in the description before releasing.

mock runs OK including the tests.


$ md5sum Sys-Statistics-Linux-0.59.tar.gz ../SOURCES/Sys-Statistics-Linux-0.59.tar.gz 
591c8c05bd79aa98e65174b2150375b9  Sys-Statistics-Linux-0.59.tar.gz
591c8c05bd79aa98e65174b2150375b9  ../SOURCES/Sys-Statistics-Linux-0.59.tar.gz


APPROVED.

Comment 7 Lubomir Rintel 2010-12-12 19:45:54 UTC
Thank you!

(In reply to comment #6)
> With one thing, lots of information is still information so can 
> 
> s/informations/information/  in the description before releasing.

Will fix up upon import.

New Package SCM Request
=======================
Package Name: perl-Sys-Statistics-Linux
Short Description: Front-end module to collect system statistics
Owners: lkundrak
Branches: f14 el6

Comment 8 Jason Tibbitts 2010-12-13 18:32:42 UTC
Git done (by process-git-requests).

Comment 9 Lubomir Rintel 2010-12-14 11:23:09 UTC
Thanks!
Imported and built.


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