Bug 915484

Summary: Review Request: nodejs-zipfile - C++ library for handling zipfiles in node
Product: [Fedora] Fedora Reporter: Tom Hughes <tom>
Component: Package ReviewAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: notting, package-review
Target Milestone: ---Flags: jamielinux: fedora-review+
gwync: fedora-cvs+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-07 00:38:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 917412    

Description Tom Hughes 2013-02-25 21:13:21 UTC
Spec URL: http://download.compton.nu/nodejs/nodejs-zipfile.spec
SRPM URL: http://download.compton.nu/nodejs/nodejs-zipfile-0.3.4-1.fc18.src.rpm
Fedora Account System Username: tomh

Description:
Bindings to libzip for handling zipfile archives in node.

Comment 1 Jamie Nguyen 2013-03-02 16:03:55 UTC
Package Review
==============

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


Issues:
=======
[!]: Permissions on files are set properly.
     Note: See rpmlint output
See: http://fedoraproject.org/wiki/Packaging/Guidelines#FilePermissions

0775 instead of 0755. Again, up to you really.


[!]: Reviewer should test that the package builds in mock.

Package needs BuildRequires: zlib-devel


[!]: %check is present and all tests pass.

%check requires BuildRequires: npm(mkdirp).

mkdirp needs to be made available, and also require('zipfile') doesn't work. There might be a better way to perform this workaround though:

  %check
  find test/ -type f -iname '*.js' -exec sed -i \
      -e "s|require('zipfile')|require('../')|g" '{}' \;
  cp -pr %{nodejs_sitelib} .

Tests otherwise pass.


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

C/C++:
[x]: Header files in -devel subpackage, if present.
[x]: Package does not contain any libtool archives (.la)
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[x]: Rpath absent or only used for internal libs.

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 successfully compiles and builds into binary rpms on at least one
     supported primary architecture.
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: All build dependencies are listed in BuildRequires, except for any that
     are listed in the exceptions section of Packaging Guidelines.
[x]: Package contains no bundled libraries.
[x]: Changelog in prescribed format.
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: Sources contain only permissible code or content.
[x]: Each %files section contains %defattr if rpm < 4.4
[x]: Macros in Summary, %description expandable at SRPM build time.
[-]: 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 does not contain duplicates in %files.
[!]: Permissions on files are set properly.
     Note: See rpmlint output
[x]: Package complies to the Packaging Guidelines
[x]: Spec file lacks Packager, Vendor, PreReq tags.
[x]: 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]: License field in the package spec file matches the actual license.
[x]: Package consistently uses macro is (instead of hard-coded directory
     names).
[x]: Package is named using only allowed ASCII characters.
[x]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
     Note: Package contains no Conflicts: tag(s)
[x]: Package do not use a name that already exist
[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.
[x]: Package installs properly.
[x]: Package is not relocatable.
[x]: Requires correct, justified where necessary.
[x]: CheckResultdir
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[x]: Sources used to build the package match the upstream source, as provided
     in the spec URL.
[x]: Spec file is legible and written in American English.
[x]: Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[-]: Package contains systemd file(s) if in need.
[x]: File names are valid UTF-8.
[x]: Useful -debuginfo package or justification otherwise.
[-]: Large documentation must go in a -doc subpackage.
     Note: Documentation size is 10240 bytes in 2 files.
[x]: Packages must not store files under /srv, /opt or /usr/local

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

Generic:
[!]: 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)
[-]: 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]: Dist tag is present.
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Final provides and requires are sane (rpm -q --provides and rpm -q
     --requires).
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[x]: Patches link to upstream bugs/comments/lists or are otherwise justified.
[x]: The placement of pkgconfig(.pc) files are correct.
[x]: SourceX tarball generation or download is documented.
[!]: SourceX / PatchY prefixed with %{name}.
     Note: Source0 (zipfile-0.3.4.tgz)
[x]: SourceX is a working URL.
[-]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[x]: 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]: Spec use %global instead of %define.

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

Generic:
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Large data in /usr/share should live in a noarch subpackage if package is
     arched.


Rpmlint
-------
Checking: nodejs-zipfile-0.3.4-1.fc18.src.rpm
          nodejs-zipfile-0.3.4-1.fc18.x86_64.rpm
          nodejs-zipfile-debuginfo-0.3.4-1.fc18.x86_64.rpm
nodejs-zipfile.src: W: spelling-error Summary(en_US) zipfiles -> zip files, zip-files, misfiles
nodejs-zipfile.src: W: spelling-error %description -l en_US libzip -> lib zip, lib-zip, Lippi
nodejs-zipfile.x86_64: W: spelling-error Summary(en_US) zipfiles -> zip files, zip-files, misfiles
nodejs-zipfile.x86_64: W: spelling-error %description -l en_US libzip -> lib zip, lib-zip, Lippi
nodejs-zipfile.x86_64: E: non-standard-executable-perm /usr/lib/node_modules/zipfile/lib/_zipfile.node 0775L
3 packages and 0 specfiles checked; 1 errors, 4 warnings.




Rpmlint (installed packages)
----------------------------
# rpmlint nodejs-zipfile nodejs-zipfile-debuginfo
nodejs-zipfile.x86_64: W: spelling-error Summary(en_US) zipfiles -> zip files, zip-files, misfiles
nodejs-zipfile.x86_64: W: spelling-error %description -l en_US libzip -> lib zip, lib-zip, Lippi
nodejs-zipfile.x86_64: E: non-standard-executable-perm /usr/lib/node_modules/zipfile/lib/_zipfile.node 0775L
2 packages and 0 specfiles checked; 1 errors, 2 warnings.
# echo 'rpmlint-done:'



Requires
--------
nodejs-zipfile-0.3.4-1.fc18.x86_64.rpm (rpmlib, GLIBC filtered):
    
    libc.so.6()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libm.so.6()(64bit)
    libpthread.so.0()(64bit)
    libstdc++.so.6()(64bit)
    libstdc++.so.6(CXXABI_1.3)(64bit)
    libzip.so.2()(64bit)
    nodejs(engine) >= 0.6.13
    rtld(GNU_HASH)

nodejs-zipfile-debuginfo-0.3.4-1.fc18.x86_64.rpm (rpmlib, GLIBC filtered):
    



Provides
--------
nodejs-zipfile-0.3.4-1.fc18.x86_64.rpm:
    
    _zipfile.node()(64bit)
    nodejs-zipfile = 0.3.4-1.fc18
    nodejs-zipfile(x86-64) = 0.3.4-1.fc18
    npm(zipfile) = 0.3.4

nodejs-zipfile-debuginfo-0.3.4-1.fc18.x86_64.rpm:
    
    nodejs-zipfile-debuginfo = 0.3.4-1.fc18
    nodejs-zipfile-debuginfo(x86-64) = 0.3.4-1.fc18



MD5-sum check
-------------
http://registry.npmjs.org/zipfile/-/zipfile-0.3.4.tgz :
  CHECKSUM(SHA256) this package     : c8e1a7eb34fa65512543638992c8b7ba5c0d4ba21c6a3151a3c21196131a602b
  CHECKSUM(SHA256) upstream package : c8e1a7eb34fa65512543638992c8b7ba5c0d4ba21c6a3151a3c21196131a602b


Generated by fedora-review 0.3.1 (b71abc1) last change: 2012-10-16
Buildroot used: fedora-18-x86_64
Command line :/bin/fedora-review --rpm-spec -n nodejs-zipfile-0.3.4-1.fc18.src.rpm

Comment 2 Tom Hughes 2013-03-02 16:36:01 UTC
Easy way to make the require('zipfile') work is to set NODE_LIB which is what the Makefile does. Fixed, along with everything else:

Spec URL: http://download.compton.nu/nodejs/nodejs-zipfile.spec
SRPM URL: http://download.compton.nu/nodejs/nodejs-zipfile-0.3.4-2.fc18.src.rpm

Comment 3 Jamie Nguyen 2013-03-02 21:20:45 UTC
Heh, I knew I was missing something obvious ;)

Package approved! (And sorry for the slight delay.)

Comment 4 Tom Hughes 2013-03-02 21:51:51 UTC
Thanks for that (and all the reviews) but you didn't actually set the flag ;-)

Comment 5 Jamie Nguyen 2013-03-02 21:53:28 UTC
Oops! Done :)

Comment 6 Tom Hughes 2013-03-02 21:55:42 UTC
New Package SCM Request
=======================
Package Name: nodejs-zipfile
Short Description: C++ library for handling zipfiles in Node.js
Owners: tomh
Branches: f18
InitialCC:

Comment 7 Gwyn Ciesla 2013-03-04 13:39:59 UTC
Git done (by process-git-requests).

Comment 8 Fedora Update System 2013-03-09 11:01:30 UTC
nodejs-xml2js-0.2.6-2.fc18, nodejs-srs-0.2.20-1.fc18, nodejs-sqlite3-2.1.5-3.fc18, nodejs-zipfile-0.3.4-2.fc18, nodejs-chrono-1.0.4-1.fc18, nodejs-sphericalmercator-1.0.2-1.fc18, nodejs-mapnik-reference-5.0.4-2.fc18, nodejs-passport-0.1.16-1.fc18, nodejs-step-0.0.5-1.fc18, nodejs-zap-0.2.5-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/FEDORA-2013-3075/nodejs-srs-0.2.20-1.fc18,nodejs-sqlite3-2.1.5-3.fc18,nodejs-zipfile-0.3.4-2.fc18,nodejs-xml2js-0.2.6-2.fc18,nodejs-zap-0.2.5-2.fc18,nodejs-step-0.0.5-1.fc18,nodejs-passport-0.1.16-1.fc18,nodejs-sphericalmercator-1.0.2-1.fc18,nodejs-mapnik-reference-5.0.4-2.fc18,nodejs-chrono-1.0.4-1.fc18

Comment 9 Fedora Update System 2013-03-10 00:54:46 UTC
nodejs-xml2js-0.2.6-2.fc18, nodejs-srs-0.2.20-1.fc18, nodejs-sqlite3-2.1.5-3.fc18, nodejs-zipfile-0.3.4-2.fc18, nodejs-chrono-1.0.4-1.fc18, nodejs-sphericalmercator-1.0.2-1.fc18, nodejs-mapnik-reference-5.0.4-2.fc18, nodejs-passport-0.1.16-1.fc18, nodejs-step-0.0.5-1.fc18, nodejs-zap-0.2.5-2.fc18 has been pushed to the Fedora 18 testing repository.

Comment 10 Fedora Update System 2013-03-12 08:30:27 UTC
nodejs-xml2js-0.2.6-2.fc18, nodejs-srs-0.2.20-1.fc18, nodejs-sqlite3-2.1.5-3.fc18, nodejs-zipfile-0.3.4-2.fc18, nodejs-millstone-0.5.15-1.fc18, nodejs-oauth-0.9.10-1.fc18, nodejs-chrono-1.0.4-1.fc18, nodejs-sphericalmercator-1.0.2-1.fc18, nodejs-mapnik-reference-5.0.4-2.fc18, nodejs-passport-0.1.16-1.fc18, nodejs-step-0.0.5-1.fc18, nodejs-zap-0.2.5-2.fc18 has been pushed to the Fedora 18 testing repository.

Comment 11 Fedora Update System 2013-03-12 23:29:09 UTC
nodejs-xml2js-0.2.6-2.fc18, nodejs-srs-0.2.20-1.fc18, nodejs-sqlite3-2.1.5-3.fc18, nodejs-zipfile-0.3.4-2.fc18, nodejs-millstone-0.5.15-1.fc18, nodejs-oauth-0.9.10-1.fc18, carto-0.9.4-1.fc18, nodejs-passport-oauth-0.1.14-3.fc18, nodejs-chrono-1.0.4-1.fc18, nodejs-sphericalmercator-1.0.2-1.fc18, nodejs-mapnik-reference-5.0.4-2.fc18, nodejs-passport-0.1.16-1.fc18, nodejs-step-0.0.5-1.fc18, nodejs-zap-0.2.5-2.fc18 has been pushed to the Fedora 18 testing repository.

Comment 12 Fedora Update System 2013-03-15 00:05:43 UTC
nodejs-xml2js-0.2.6-2.fc18, nodejs-oauth-0.9.10-1.fc18, carto-0.9.4-1.fc18, nodejs-passport-oauth-0.1.14-3.fc18, nodejs-millstone-0.5.15-2.fc18, nodejs-srs-0.2.20-2.fc18, nodejs-sqlite3-2.1.5-4.fc18, nodejs-zipfile-0.3.4-3.fc18, nodejs-chrono-1.0.4-1.fc18, nodejs-sphericalmercator-1.0.2-1.fc18, nodejs-mapnik-reference-5.0.4-2.fc18, nodejs-passport-0.1.16-1.fc18, nodejs-step-0.0.5-1.fc18, nodejs-zap-0.2.5-2.fc18 has been pushed to the Fedora 18 testing repository.

Comment 13 Fedora Update System 2013-04-07 00:38:37 UTC
nodejs-xml2js-0.2.6-2.fc18, nodejs-oauth-0.9.10-1.fc18, carto-0.9.4-1.fc18, nodejs-passport-oauth-0.1.14-3.fc18, nodejs-millstone-0.5.15-2.fc18, nodejs-srs-0.2.20-2.fc18, nodejs-sqlite3-2.1.5-4.fc18, nodejs-zipfile-0.3.4-3.fc18, nodejs-chrono-1.0.4-1.fc18, nodejs-sphericalmercator-1.0.2-1.fc18, nodejs-mapnik-reference-5.0.4-2.fc18, nodejs-passport-0.1.16-1.fc18, nodejs-step-0.0.5-1.fc18, nodejs-zap-0.2.5-2.fc18 has been pushed to the Fedora 18 stable repository.