Bug 951360 - Review Request: nodejs-uglify-js - JavaScript parser/compressor/beautifier
Summary: Review Request: nodejs-uglify-js - JavaScript parser/compressor/beautifier
Keywords:
Status: CLOSED DUPLICATE of bug 894725
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Stanislav Ochotnicky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-12 06:24 UTC by Tomas Hrcka
Modified: 2013-04-23 01:21 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-23 01:21:12 UTC
Type: ---
Embargoed:
sochotni: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Tomas Hrcka 2013-04-12 06:24:20 UTC
Spec URL: http://fedorapeople.org/~humaton/nodejs-uglify-js.spec
SRPM URL: http://fedorapeople.org/~humaton/nodejs-uglify-js-2.2.5-1.fc19.src.rpm

Description: 

This package implements a general-purpose JavaScript parser/compressor/beautifier toolkit.
It is developed on NodeJS, but it should work on any JavaScript platform supporting the CommonJS
module system.

Fedora Account System Username: humaton

Comment 1 Stanislav Ochotnicky 2013-04-12 11:00:30 UTC
I'll review this

Comment 2 Stanislav Ochotnicky 2013-04-12 12:29:19 UTC
Few points before I start complete review:
 * package doesn't build in mock. Please verify packages in mock before submitting reviews
 * Requires on nodejs and npm are most likely bogus. Requires on nodejs engine is generated automatically, and npm is most likely not needed for package to work correctly (or is it?)
 * Why would "cp -pr %{nodejs_sitelib} ." in check be needed?
 * Just for the record (this doesn't affect the review but FYI) following parts 
   are not needed in Fedora/EL6+:
    * rm -rf %{buildroot}
    * whole %clean section
    * %defattr(-,root,root,-) (unless you really want to change defaults)

Comment 3 Tomas Hrcka 2013-04-12 12:41:08 UTC
(In reply to comment #2)
> Few points before I start complete review:
>  * package doesn't build in mock. Please verify packages in mock before
> submitting reviews

I will.

>  * Requires on nodejs and npm are most likely bogus. Requires on nodejs
> engine is generated automatically, and npm is most likely not needed for
> package to work correctly (or is it?)

You are right removing them from spec file

>  * Why would "cp -pr %{nodejs_sitelib} ." in check be needed?

Because npm modules are linked to the root dir of the module. Otherwise tests will not run because of missing dependencies.

>  * Just for the record (this doesn't affect the review but FYI) following
> parts 
>    are not needed in Fedora/EL6+:
>     * rm -rf %{buildroot}
>     * whole %clean section
>     * %defattr(-,root,root,-) (unless you really want to change defaults)

Going to update spec and re-upload

Comment 4 Tomas Hrcka 2013-04-12 13:33:29 UTC
new versions of spec file and srpm

Spec URL: http://fedorapeople.org/~humaton/nodejs-uglify-js.spec
SRPM URL: http://fedorapeople.org/~humaton/nodejs-uglify-js-2.2.5-2.fc19.src.rpm

Comment 5 Stanislav Ochotnicky 2013-04-15 09:20:43 UTC
I've sponsored Tomas now, package looks good. I'll be mentoring him in coming weeks.

automatic requires look OK, licensing is OK, tests pass...APPROVED

Comment 6 Tomas Hrcka 2013-04-15 09:53:38 UTC
New Package SCM Request
=======================
Package Name: nodejs-uglify-js
Short Description: JavaScript parser/compressor/beautifier
Owners: humaton
Branches: f18 f19 f20 el6
InitialCC:

Comment 7 Gwyn Ciesla 2013-04-15 13:57:44 UTC
Git done (by process-git-requests).

Comment 8 Vít Ondruch 2013-04-16 05:34:58 UTC
Guys, what is going on here? It seems to be duplicate of [1]. I would suggest to retire the package immediately, prior pushing any updates.


[1] https://bugzilla.redhat.com/show_bug.cgi?id=894725

Comment 9 Stanislav Ochotnicky 2013-04-16 06:55:47 UTC
Now the question is...why is original package not following the same naming rules as almost every other nodejs package? Adding T.C. to CC so we can some answer :-) Perhaps let's make this a package rename then? With proper obsoletes/provides?

Comment 10 Vít Ondruch 2013-04-16 07:13:45 UTC
It is not nodejs package. It is not using any nodejs specific functionality. You should be able to run it by any JS engine available on your system. Hence it is without prefix.

There seems to be tendency to believe that every JS package is nodejs package, but that is not true. I am afraid there is more nodejs- packages which shouldn't have that prefix (but I have no evidence of such packages, yet :).

Comment 11 T.C. Hollingsworth 2013-04-16 07:15:05 UTC
(In reply to comment #9)
> Now the question is...why is original package not following the same naming
> rules as almost every other nodejs package?

https://fedoraproject.org/wiki/Packaging:Node.js#Naming_Guidelines

> Application packages that mainly provide tools (as opposed to libraries) that happen to be written for Node.js must follow the general naming guidelines instead.

Lots of people just use /usr/bin/uglifyjs, so I didn't prefix it.  Splitting the CLI and the library didn't seem to make much sense, since they'd still both depend on node.

(In reply to comment #0)
> It is developed on NodeJS, but it should work on any JavaScript platform
> supporting the CommonJS
> module system.

Note that we carry a pure-JS version (e.g. doesn't require a CommonJS interpreter; Ruby uses it) in the uglify-js-common package.

Comment 12 Stanislav Ochotnicky 2013-04-16 07:23:07 UTC
Very well that actually makes sense. My bad. 

Tomas can you please go through http://fedoraproject.org/wiki/How_to_remove_a_package_at_end_of_life process? It's a bummer but oh well...

Comment 13 Tomas Hrcka 2013-04-16 09:55:57 UTC
package retired

Comment 14 T.C. Hollingsworth 2013-04-23 01:21:12 UTC

*** This bug has been marked as a duplicate of bug 894725 ***


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