Spec: http://patches.fedorapeople.org/npm/nodejs-runforcover.spec SRPM: http://patches.fedorapeople.org/npm/nodejs-runforcover-0.0.2-1.fc17.src.rpm Koji scratch build: http://koji.fedoraproject.org/koji/taskinfo?taskID=4864532 FAS username: patches Runforcover hooks into the `require()` function and uses nodejs-bunker to provide code coverage data for your unit test library, whatever it might be. This package is part of the tap stack used to test many Node.js modules. Please use nodejs-0.6.5-9 or later when building or using this package.
You need to add: BuildRequires: npm(bunker) And maybe add some "%global enable_tests" logic. After making these changes, this error happens so you'll need some symlink magic: + /usr/bin/node test/index.js module.js:340 throw err; ^ Error: Cannot find module 'uglify-js' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:362:17) at require (module.js:378:17) at Object.<anonymous> (/usr/lib/node_modules/burrito/index.js:1:76) at Module._compile (module.js:454:26) at Object.Module._extensions..js (module.js:472:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:362:17)
Fixed. Spec: http://patches.fedorapeople.org/npm/nodejs-runforcover.spec SRPM: http://patches.fedorapeople.org/npm/nodejs-runforcover-0.0.2-2.fc18.src.rpm Koji scratch build: http://koji.fedoraproject.org/koji/taskinfo?taskID=4954697
Package Review ============== Key: [x] = Pass [!] = Fail [-] = Not applicable [?] = Not evaluated [ ] = Manual review needed Issues: ======= [!]: License field in the package spec file matches the actual license. Note: Checking patched sources after %prep for licenses. No licenses found. Please check the source files for licenses manually. See: http://fedoraproject.org/wiki/Packaging/LicensingGuidelines#ValidLicenseShortNames ===== 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 successfully compiles and builds into binary rpms on at least one supported primary architecture. Note: Using prebuilt packages [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. Note: Using prebuilt rpms. [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 Note: %defattr present but not needed [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. [x]: Permissions on files are set properly. [x]: Package complies to the Packaging Guidelines [x]: Spec file lacks Packager, Vendor, PreReq tags. [-]: 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. [!]: License field in the package spec file matches the actual license. Note: Checking patched sources after %prep for licenses. No licenses found. Please check the source files for licenses manually. [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. [x]: 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. [-]: Large documentation must go in a -doc subpackage. Note: Documentation size is 10240 bytes in 1 files. [x]: Packages must not store files under /srv, /opt or /usr/local ===== SHOULD items ===== Generic: [x]: Reviewer should test that the package builds in mock. [ ]: Buildroot is not present Note: Buildroot: present but not needed [ ]: 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). [x]: Package functions as described. [x]: Latest version is packaged. [x]: Package does not include license text files separate from upstream. [x]: The placement of pkgconfig(.pc) files are correct. [x]: SourceX tarball generation or download is documented. [!]: SourceX / PatchY prefixed with %{name}. Note: Source0 (runforcover-0.0.2.tgz) [x]: SourceX is a working URL. [x]: 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. [ ]: 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-runforcover-0.0.2-2.fc19.src.rpm nodejs-runforcover-0.0.2-2.fc19.noarch.rpm nodejs-runforcover.noarch: W: only-non-binary-in-usr-lib nodejs-runforcover.noarch: W: dangling-symlink /usr/lib/node_modules/runforcover/node_modules/bunker /usr/lib/node_modules/bunker 2 packages and 0 specfiles checked; 0 errors, 2 warnings. Rpmlint (installed packages) ---------------------------- # rpmlint nodejs-runforcover nodejs-runforcover.noarch: W: only-non-binary-in-usr-lib nodejs-runforcover.noarch: W: dangling-symlink /usr/lib/node_modules/runforcover/node_modules/bunker /usr/lib/node_modules/bunker 1 packages and 0 specfiles checked; 0 errors, 2 warnings. # echo 'rpmlint-done:' Requires -------- nodejs-runforcover-0.0.2-2.fc19.noarch.rpm (rpmlib, GLIBC filtered): nodejs(engine) npm(bunker) < 0.2 npm(bunker) >= 0.1 Provides -------- nodejs-runforcover-0.0.2-2.fc19.noarch.rpm: nodejs-runforcover = 0.0.2-2.fc19 npm(runforcover) = 0.0.2 MD5-sum check ------------- http://registry.npmjs.org/runforcover/-/runforcover-0.0.2.tgz : CHECKSUM(SHA256) this package : 2d368455025ca1fff2fb5d1526eacfad27cbd4bff18fb933356fd9c7015db8b9 CHECKSUM(SHA256) upstream package : 2d368455025ca1fff2fb5d1526eacfad27cbd4bff18fb933356fd9c7015db8b9 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-runforcover-0.0.2-2.fc19.src.rpm -p
Inform upstream of missing LICENSE file and possibly expand JS to JavaScript in the %summary, though that's up to you. Everything else seems fine but will wait on nodejs-bunker (which is waiting on nodejs-burrito) before pushing the button.
Package approved!
New Package SCM Request ======================= Package Name: nodejs-runforcover Short Description: Require plugin for JS code coverage Owners: patches Branches: f19 f18 el6 InitialCC:
Git done (by process-git-requests).
nodejs-bunker-0.1.2-2.fc19,nodejs-burrito-0.2.12-5.fc19,nodejs-runforcover-0.0.2-3.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/nodejs-bunker-0.1.2-2.fc19,nodejs-burrito-0.2.12-5.fc19,nodejs-runforcover-0.0.2-3.fc19
nodejs-bunker-0.1.2-2.fc18,nodejs-burrito-0.2.12-5.fc18,nodejs-runforcover-0.0.2-3.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/nodejs-bunker-0.1.2-2.fc18,nodejs-burrito-0.2.12-5.fc18,nodejs-runforcover-0.0.2-3.fc18
nodejs-bunker-0.1.2-2.fc19, nodejs-burrito-0.2.12-5.fc19, nodejs-runforcover-0.0.2-3.fc19 has been pushed to the Fedora 19 testing repository.
nodejs-bunker-0.1.2-2.fc19, nodejs-burrito-0.2.12-5.fc19, nodejs-runforcover-0.0.2-3.fc19 has been pushed to the Fedora 19 stable repository.
nodejs-bunker-0.1.2-2.fc18, nodejs-burrito-0.2.12-5.fc18, nodejs-runforcover-0.0.2-3.fc18 has been pushed to the Fedora 18 stable repository.