Bug 691032

Summary: Review Request: pyinputstats - An application for mouse and keyboard statistics
Product: [Fedora] Fedora Reporter: Fabian Affolter <mail>
Component: Package ReviewAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: fedora-package-review, msuchy, ndevos, notting
Target Milestone: ---Flags: ndevos: fedora-review?
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-16 16:26:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 701450    
Bug Blocks:    

Description Fabian Affolter 2011-03-26 10:55:14 UTC
Spec URL: http://fab.fedorapeople.org/packages/SRPMS/pyinputstats.spec
SRPM URL: http://fab.fedorapeople.org/packages/SRPMS/pyinputstats-0.2.1-1.fc14.src.rpm

Project URL: https://launchpad.net/pyinputstats

Description:
pyInputStats watches your mouse and your keyboard in order to generate
some statistics. With pyInputStats you are able to answer substantial
questions like:

* How many meters do I move my mouse pointer every day?
* How many times to I press a key on my keyboard?
* Do I click my mouse more often on Fridays?
* Do I make more mouse-meters in the morning hours?

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

rpmlint output:
[fab@laptop023 SRPMS]$ rpmlint pyinputstats-0.2.1-1.fc14.src.rpm 
1 packages and 0 specfiles checked; 0 errors, 0 warnings.

[fab@laptop023 noarch]$ rpmlint pyinputstats-0.2.1-1.fc14.noarch.rpm 
pyinputstats.noarch: E: explicit-lib-dependency python-xlib
pyinputstats.noarch: W: no-manual-page-for-binary pyinputstats
1 packages and 0 specfiles checked; 1 errors, 1 warnings.

Without python-xlib pyinputstats is not running.

Comment 1 Niels de Vos 2011-03-26 12:56:25 UTC
Here is the review:

 +:ok, =:needs attention, -:needs fixing

MUST Items:
[+] MUST: rpmlint must be run on every package.
[+] MUST: The package must be named according to the Package Naming Guidelines.
[+] MUST: The spec file name must match the base package %{name}
[+] MUST: The package must be licensed with a Fedora approved license and meet the Licensing Guidelines.
[-] MUST: The License field in the package spec file must match the actual license.
> $ grep ^License pyInputStats-0.2.1/PKG-INFO pyinputstats.spec
> pyInputStats-0.2.1/PKG-INFO:License: GPLv3
> pyinputstats.spec:License:        GPLv2+

[+] MUST: The spec file must be written in American English.
[+] MUST: The spec file for the package MUST be legible.
[+] MUST: The sources used to build the package must match the upstream source, as provided in the spec URL.
> $ wget -O pyInputStats-0.2.1.tar.gz.upstream 'http://launchpad.net/pyinputstats/trunk/1.0/+download/pyInputStats-0.2.1.tar.gz'
> $ sha1sum pyInputStats-0.2.1.tar.gz*
> 88da239d62b7bc7cb88984b58de5575c0bdcd703  pyInputStats-0.2.1.tar.gz
> 88da239d62b7bc7cb88984b58de5575c0bdcd703  pyInputStats-0.2.1.tar.gz.upstream

[+] MUST: The package must successfully compile and build into binary rpms on at least one supported architecture.
[+] MUST: All build dependencies must be listed in BuildRequires
[+] MUST: A package must own all directories that it creates. If it does not create a directory that it uses, then it should require a package which does create that directory.
[+] MUST: A package must not contain any duplicate files in the %files listing.
[+] MUST: Permissions on files must be set properly. Executables should be set with executable permissions, for example. Every %files section must include a %defattr(...) line.
[+] MUST: Each package must have a %clean section, which contains rm -rf %{buildroot} (or $RPM_BUILD_ROOT).
[+] MUST: Each package must consistently use macros, as described in the macros section of Packaging Guidelines.
[+] MUST: The package must contain code, or permissible content. This is described in detail in the code vs. content section of Packaging Guidelines.
[+] MUST: If a package includes something as %doc, it must not affect the runtime of the application.
[+] MUST: Packages must NOT contain any .la libtool archives, these should be removed in the spec.
[+] MUST: Packages containing GUI applications must include a %{name}.desktop file, and that file must be properly installed with desktop-file-install in the %install section.
[+] MUST: Packages must not own files or directories already owned by other packages.
[+] MUST: At the beginning of %install, each package MUST run rm -rf %{buildroot} (or $RPM_BUILD_ROOT).
[+] MUST: All filenames in rpm packages must be valid UTF-8.

SHOULD Items:
[=] SHOULD: If the source package does not include license text(s) as a separate file from upstream, the packager SHOULD query upstream to include it.
[+] SHOULD: The reviewer should test that the package builds in mock.
> http://koji.fedoraproject.org/koji/taskinfo?taskID=2948325

[+] SHOULD: The package should compile and build into binary rpms on all supported architectures.
>   2948326 buildArch (pyinputstats-0.2.1-1.fc14.src.rpm, noarch): open (x86-07.phx2.fedoraproject.org) -> closed
> 2948325 build (dist-f15, pyinputstats-0.2.1-1.fc14.src.rpm) completed successfully

[+] SHOULD: The reviewer should test that the package functions as described.
[+] SHOULD: Packages should try to preserve timestamps of original installed files.


Summary:
The spec looks good, the package builds and works fine. Please update the license and possibly contact upstream to include a COPYING file.

Comment 2 Fabian Affolter 2011-03-26 14:33:57 UTC
Thanks for the review.

(In reply to comment #1)

> [-] MUST: The License field in the package spec file must match the actual
> license.
> > $ grep ^License pyInputStats-0.2.1/PKG-INFO pyinputstats.spec
> > pyInputStats-0.2.1/PKG-INFO:License: GPLv3
> > pyinputstats.spec:License:        GPLv2+

The upstream bug report for this is : https://bugs.launchpad.net/pyinputstats/+bug/742992

Comment 3 Fabian Affolter 2011-05-02 21:24:46 UTC
Well, before we can go on with this review, pygtkchart (#701450) needs to be in the Fedora Package Collection.

Comment 4 Niels de Vos 2011-07-30 09:13:46 UTC
Fabian, pygtkchart seems to have been included. Now only the correction of the license is required. Please update this Bug with a note and links to the updated .spec and .src.rpm.

Thanks, Niels

Comment 5 Miroslav Suchý 2012-12-16 13:18:50 UTC
Ping? Any progress here? Or we can close this review?

Comment 6 Fabian Affolter 2012-12-16 16:26:24 UTC
Upstream is dead. It seems that they are not interested in fixing pygtkchart stuff.