%{?nodejs_find_provides_and_requires} %global enable_tests 0 # tests disabled until npm(lab) is built Name: nodejs-qs Version: 2.3.3 Release: 1%{?dist} Summary: Query string parser for Node.js # License text is included in Readme.md License: MIT Group: System Environment/Libraries URL: https://github.com/hapijs/qs.git Source0: http://registry.npmjs.org/qs/-/qs-%{version}.tgz # The test files are not included in the npm tarball. # Source1 is generated by running Source10, which pulls from the upstream # version control repository. Source1: tests-%{version}.tar.bz2 Source10: dl-tests.sh BuildArch: noarch %if 0%{?fedora} >= 19 ExclusiveArch: %{nodejs_arches} noarch %else ExclusiveArch: %{ix86} x86_64 %{arm} noarch %endif BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(lab) BuildRequires: npm(code) BuildRequires: npm(hoek) %endif %description This is a query string parser for node and the browser supporting nesting, as it was removed from 0.3.x, so this library provides the previous and commonly desired behavior (and twice as fast). Used by express, connect and others. %prep %setup -q -n package %setup -q -T -D -a 1 -n package %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/qs cp -pr *.json *.js lib/ \ %{buildroot}%{nodejs_sitelib}/qs %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check lab -a code -L %endif %files %doc *.md %license LICENSE %{nodejs_sitelib}/qs %changelog * Fri Oct 09 2015 Jared Smith - 2.3.3-1 - Update to upstream 2.3.3 release * Wed Jun 17 2015 Fedora Release Engineering - 0.6.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Sep 24 2014 T.C. Hollingsworth - 0.6.6-3 - backport security fix for memory exhaustion denial-of-service (RHBZ#1146054) * Sat Jun 07 2014 Fedora Release Engineering - 0.6.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Mar 10 2014 Jamie Nguyen - 0.6.6-1 - update to upstream release 0.6.6 * Sun Jul 28 2013 Jamie Nguyen - 0.6.5-3 - add ExclusiveArch logic * Sat Jun 22 2013 T.C. Hollingsworth - 0.6.5-2 - restrict to compatible arches * Sat May 25 2013 Jamie Nguyen - 0.6.5-1 - update to upstream release 0.6.5 * Mon Apr 15 2013 T.C. Hollingsworth - 0.5.6-2 - add macro to enable dependency generation in EPEL * Wed Apr 10 2013 Jamie Nguyen - 0.5.6-1 - update to upstream release 0.5.6 * Fri Mar 22 2013 Jamie Nguyen - 0.5.5-1 - update to upstream release 0.5.5 * Sat Mar 16 2013 Jamie Nguyen - 0.5.4-1 - update to upstream release 0.5.4 * Wed Feb 20 2013 Jamie Nguyen - 0.5.3-3 - fix typo in %%description * Wed Feb 20 2013 Jamie Nguyen - 0.5.3-2 - fix typo in %%summary * Mon Feb 11 2013 Jamie Nguyen - 0.5.3-1 - initial package