Bug 911024 - Review Request: nodejs-cli - Node.js module for rapidly building command line apps
Summary: Review Request: nodejs-cli - Node.js module for rapidly building command line...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tom Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 911037
TreeView+ depends on / blocked
 
Reported: 2013-02-14 09:32 UTC by Jamie Nguyen
Modified: 2013-04-07 00:33 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-26 13:50:22 UTC
Type: ---
Embargoed:
tom: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Jamie Nguyen 2013-02-14 09:32:04 UTC
Spec URL: http://jamielinux.fedorapeople.org/buddycloud-server/nodejs-cli.spec
SRPM URL: http://jamielinux.fedorapeople.org/buddycloud-server/SRPMS/nodejs-cli-0.4.4-1.fc18.src.rpm
Fedora Account System Username: jamielinux

Description:
cli is a toolkit for rapidly building command line apps. It includes:

 - Full featured opts/args parser
 - Plugin support for adding common options and switches
 - Helper methods for working with input/output and spawning child processes
 - Output colored/styled messages, progress bars or spinners
 - Command auto-completion and glob support

Comment 1 Tom Hughes 2013-03-23 00:33:30 UTC
Package Review
==============

Key:
[x] = Pass
[!] = Fail
[-] = Not applicable
[?] = Not evaluated
[ ] = Manual review needed


Issues:
=======
- Package is named according to the Package Naming Guidelines.

I think the version should probably be 0.4.4.2 to take in the
sub-version that upstream has used.

- Requires correct, justified where necessary.

Bogus require on /usr/bin/env due to bogus execute permissions.

- Rpmlint is run on all installed packages.

All caused by bogus execute permissions:

nodejs-cli.noarch: E: script-without-shebang /usr/lib/node_modules/cli/package.json
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/echo.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/progress.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/static.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/glob.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/sort.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/static.coffee /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/command.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/spinner.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/long_desc.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/cat.js /usr/bin/env


===== MUST items =====

Generic:
[x]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[x]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[-]: Development files must be in a -devel package
[x]: Package requires other packages for directories it uses.
[x]: Package uses nothing in %doc for runtime.
[x]: Package is not known to require ExcludeArch.
[x]: Package complies to the Packaging Guidelines
[-]: If (and only if) the source package includes the text of the license(s)
     in its own file, then that file, containing the text of the license(s)
     for the package is included in %doc.
[x]: Package consistently uses macro is (instead of hard-coded directory
     names).
[!]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
[x]: Package obeys FHS, except libexecdir and /usr/target.
[-]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[x]: Package must own all directories that it creates.
[x]: Package does not own files or directories owned by other packages.
[!]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[-]: Package contains systemd file(s) if in need.
[-]: Large documentation must go in a -doc subpackage.
     Note: Documentation size is 30720 bytes in 11 files.
[x]: All build dependencies are listed in BuildRequires, except for any that
     are listed in the exceptions section of Packaging Guidelines.
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: Each %files section contains %defattr if rpm < 4.4
[x]: Macros in Summary, %description expandable at SRPM build time.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[x]: Fully versioned dependency in subpackages, if present.
[x]: Package use %makeinstall only when make install' ' DESTDIR=... doesn't
     work.
[x]: Package is named using only allowed ASCII characters.
[x]: Package do not use a name that already exist
[x]: Package is not relocatable.
[x]: Sources used to build the package match the upstream source, as provided
     in the spec URL.
[x]: Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[x]: File names are valid UTF-8.
[x]: Packages must not store files under /srv, /opt or /usr/local
[x]: Package successfully compiles and builds into binary rpms on at least one
     supported primary architecture.
[x]: Package installs properly.
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).

===== SHOULD items =====

Generic:
[-]: If the source package does not include license text(s) as a separate file
     from upstream, the packager SHOULD query upstream to include it.
[x]: Final provides and requires are sane (see attachments).
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[?]: Package should compile and build into binary rpms on all supported
     architectures.
[-]: %check is present and all tests pass.
[x]: Packages should try to preserve timestamps of original installed files.
[x]: Sources can be downloaded from URI in Source: tag
[x]: Reviewer should test that the package builds in mock.
[x]: Buildroot is not present
[x]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
[x]: Dist tag is present.
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: SourceX tarball generation or download is documented.
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define.

===== EXTRA items =====

Generic:
[x]: Large data in /usr/share should live in a noarch subpackage if package is
     arched.
[!]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: nodejs-cli-0.4.4-1.fc20.noarch.rpm
nodejs-cli.noarch: W: spelling-error Summary(en_US) js -> dis, ks, j
nodejs-cli.noarch: W: spelling-error %description -l en_US args -> rags, gars, ares
nodejs-cli.noarch: W: only-non-binary-in-usr-lib
nodejs-cli.noarch: W: dangling-symlink /usr/lib/node_modules/cli/node_modules/glob /usr/lib/node_modules/glob
nodejs-cli.noarch: E: script-without-shebang /usr/lib/node_modules/cli/package.json
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/echo.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/progress.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/static.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/glob.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/sort.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/static.coffee /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/command.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/spinner.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/long_desc.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/cat.js /usr/bin/env
1 packages and 0 specfiles checked; 1 errors, 14 warnings.




Rpmlint (installed packages)
----------------------------
# rpmlint nodejs-cli
nodejs-cli.noarch: W: spelling-error Summary(en_US) js -> dis, ks, j
nodejs-cli.noarch: W: spelling-error %description -l en_US args -> rags, gars, ares
nodejs-cli.noarch: W: only-non-binary-in-usr-lib
nodejs-cli.noarch: W: dangling-symlink /usr/lib/node_modules/cli/node_modules/glob /usr/lib/node_modules/glob
nodejs-cli.noarch: E: script-without-shebang /usr/lib/node_modules/cli/package.json
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/echo.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/progress.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/static.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/glob.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/sort.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/static.coffee /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/command.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/spinner.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/long_desc.js /usr/bin/env
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4/examples/cat.js /usr/bin/env
1 packages and 0 specfiles checked; 1 errors, 14 warnings.
# echo 'rpmlint-done:'



Requires
--------
nodejs-cli (rpmlib, GLIBC filtered):
    /usr/bin/env
    nodejs(engine)
    npm(glob)



Provides
--------
nodejs-cli:
    nodejs-cli
    npm(cli)



MD5-sum check
-------------
http://registry.npmjs.org/cli/-/cli-0.4.4-2.tgz :
  CHECKSUM(SHA256) this package     : 27a0db02501285da601c47495d0cd837ddeb4577bfd507c5503d2ee8cd0caffb
  CHECKSUM(SHA256) upstream package : 27a0db02501285da601c47495d0cd837ddeb4577bfd507c5503d2ee8cd0caffb


Generated by fedora-review 0.4.0 (660ce56) last change: 2013-01-29
Buildroot used: compton-rawhide-x86_64
Command line :/usr/bin/fedora-review -m compton-rawhide-x86_64 -b 911024

Comment 2 Jamie Nguyen 2013-03-23 06:42:59 UTC
Spec URL: http://jamielinux.fedorapeople.org/buddycloud-server/nodejs-cli.spec
SRPM URL: http://jamielinux.fedorapeople.org/buddycloud-server/SRPMS/nodejs-cli-0.4.4.2-1.fc18.src.rpm

* Sat Mar 23 2013 Jamie Nguyen <jamielinux> - 0.4.4.2-1
- fix file permissions in examples/ directory

Comment 3 Tom Hughes 2013-03-23 11:01:04 UTC
Just a couple of rpmlint warnings left:

nodejs-cli.noarch: E: script-without-shebang /usr/lib/node_modules/cli/package.json
nodejs-cli.noarch: W: doc-file-dependency /usr/share/doc/nodejs-cli-0.4.4.2/examples/static.coffee /usr/bin/env

both are caused by spurious execute permissions.

Comment 5 Tom Hughes 2013-03-23 11:18:43 UTC
Great. Package approved.

Comment 6 Jamie Nguyen 2013-03-23 11:20:52 UTC
New Package SCM Request
=======================
Package Name: nodejs-cli
Short Description: Node.js module for rapidly building command line apps
Owners: jamielinux
Branches: f18 f19 el6
InitialCC:

Comment 7 Gwyn Ciesla 2013-03-23 13:26:44 UTC
Git done (by process-git-requests).

Comment 8 Fedora Update System 2013-03-23 16:37:25 UTC
nodejs-cli-0.4.4.2-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/nodejs-cli-0.4.4.2-2.fc18

Comment 9 Fedora Update System 2013-03-23 23:58:33 UTC
nodejs-cli-0.4.4.2-2.fc18 has been pushed to the Fedora 18 testing repository.

Comment 10 Fedora Update System 2013-04-07 00:33:30 UTC
nodejs-cli-0.4.4.2-2.fc18 has been pushed to the Fedora 18 stable repository.


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