|
T.C. Hollingsworth |
6bc2482 |
%{?nodejs_find_provides_and_requires}
|
|
T.C. Hollingsworth |
6bc2482 |
|
|
|
a081bd9 |
%global enable_tests 0
|
|
|
a081bd9 |
|
|
|
a081bd9 |
Name: nodejs-qs
|
|
|
fbf56c1 |
Version: 0.6.6
|
|
T.C. Hollingsworth |
edc2879 |
Release: 3%{?dist}
|
|
|
a081bd9 |
Summary: Query string parser for Node.js
|
|
|
a081bd9 |
# License text is included in Readme.md
|
|
|
a081bd9 |
License: MIT
|
|
|
a081bd9 |
Group: System Environment/Libraries
|
|
|
a081bd9 |
URL: https://github.com/visionmedia/node-querystring
|
|
|
a081bd9 |
Source0: http://registry.npmjs.org/qs/-/qs-%{version}.tgz
|
|
|
a74306c |
# The test files are not included in the npm tarball.
|
|
|
a74306c |
# Source1 is generated by running Source10, which pulls from the upstream
|
|
|
a74306c |
# version control repository.
|
|
|
a74306c |
Source1: tests-%{version}.tar.bz2
|
|
|
a74306c |
Source10: dl-tests.sh
|
|
|
7513212 |
|
|
T.C. Hollingsworth |
86f3e4a |
# backport security fix for memory exhaustion denial-of-service (RHBZ#1146054)
|
|
T.C. Hollingsworth |
edc2879 |
# https://nodesecurity.io/advisories/qs_dos_memory_exhaustion
|
|
T.C. Hollingsworth |
edc2879 |
Patch1: %{name}-compact-nesting-arrays.patch
|
|
T.C. Hollingsworth |
edc2879 |
|
|
|
a081bd9 |
BuildArch: noarch
|
|
|
7513212 |
%if 0%{?fedora} >= 19
|
|
T.C. Hollingsworth |
867be0c |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
7513212 |
%else
|
|
|
7513212 |
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
|
|
7513212 |
%endif
|
|
|
a081bd9 |
|
|
|
7513212 |
BuildRequires: nodejs-packaging
|
|
|
a081bd9 |
|
|
|
a081bd9 |
%if 0%{?enable_tests}
|
|
|
a081bd9 |
BuildRequires: npm(expect.js)
|
|
|
a081bd9 |
BuildRequires: npm(growl)
|
|
|
a081bd9 |
BuildRequires: npm(jade)
|
|
|
a081bd9 |
BuildRequires: npm(mocha)
|
|
|
a081bd9 |
BuildRequires: npm(querystring)
|
|
|
a081bd9 |
%endif
|
|
|
a081bd9 |
|
|
|
a081bd9 |
%description
|
|
|
a081bd9 |
This is a query string parser for node and the browser supporting nesting,
|
|
|
a081bd9 |
as it was removed from 0.3.x, so this library provides the previous and
|
|
|
a081bd9 |
commonly desired behavior (and twice as fast). Used by express, connect
|
|
|
a081bd9 |
and others.
|
|
|
a081bd9 |
|
|
|
a081bd9 |
|
|
|
a081bd9 |
%prep
|
|
|
a081bd9 |
%setup -q -n package
|
|
|
a74306c |
%setup -q -T -D -a 1 -n package
|
|
T.C. Hollingsworth |
edc2879 |
%patch1 -p1
|
|
|
a081bd9 |
|
|
|
a081bd9 |
|
|
|
a081bd9 |
%build
|
|
|
a081bd9 |
#nothing to do
|
|
|
a081bd9 |
|
|
|
a081bd9 |
|
|
|
a081bd9 |
%install
|
|
|
a081bd9 |
mkdir -p %{buildroot}%{nodejs_sitelib}/qs
|
|
|
a081bd9 |
cp -pr package.json index.js \
|
|
|
a081bd9 |
%{buildroot}%{nodejs_sitelib}/qs
|
|
|
a081bd9 |
|
|
|
a081bd9 |
%nodejs_symlink_deps
|
|
|
a081bd9 |
|
|
|
a081bd9 |
|
|
|
a081bd9 |
%if 0%{?enable_tests}
|
|
|
a081bd9 |
%check
|
|
|
7513212 |
%nodejs_symlink_deps --check
|
|
|
a081bd9 |
%{nodejs_sitelib}/mocha/bin/mocha --ui bdd
|
|
|
a081bd9 |
%endif
|
|
|
a081bd9 |
|
|
|
a081bd9 |
|
|
|
a081bd9 |
%files
|
|
|
a74306c |
%doc Readme.md
|
|
|
a081bd9 |
%{nodejs_sitelib}/qs
|
|
|
a081bd9 |
|
|
|
a081bd9 |
|
|
|
a081bd9 |
%changelog
|
|
T.C. Hollingsworth |
edc2879 |
* Wed Sep 24 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.6.6-3
|
|
T.C. Hollingsworth |
86f3e4a |
- backport security fix for memory exhaustion denial-of-service (RHBZ#1146054)
|
|
T.C. Hollingsworth |
edc2879 |
|
|
|
8030f6a |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.6-2
|
|
|
8030f6a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
8030f6a |
|
|
|
fbf56c1 |
* Mon Mar 10 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.6.6-1
|
|
|
fbf56c1 |
- update to upstream release 0.6.6
|
|
|
fbf56c1 |
|
|
|
7513212 |
* Sun Jul 28 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.6.5-3
|
|
|
7513212 |
- add ExclusiveArch logic
|
|
|
7513212 |
|
|
T.C. Hollingsworth |
867be0c |
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.6.5-2
|
|
T.C. Hollingsworth |
867be0c |
- restrict to compatible arches
|
|
T.C. Hollingsworth |
867be0c |
|
|
|
a74306c |
* Sat May 25 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.6.5-1
|
|
|
a74306c |
- update to upstream release 0.6.5
|
|
|
a74306c |
|
|
T.C. Hollingsworth |
6bc2482 |
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.5.6-2
|
|
T.C. Hollingsworth |
6bc2482 |
- add macro to enable dependency generation in EPEL
|
|
T.C. Hollingsworth |
6bc2482 |
|
|
|
fa64719 |
* Wed Apr 10 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.5.6-1
|
|
|
fa64719 |
- update to upstream release 0.5.6
|
|
|
fa64719 |
|
|
|
6c323d4 |
* Fri Mar 22 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.5.5-1
|
|
|
6c323d4 |
- update to upstream release 0.5.5
|
|
|
6c323d4 |
|
|
|
cb0c23c |
* Sat Mar 16 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.5.4-1
|
|
|
cb0c23c |
- update to upstream release 0.5.4
|
|
|
cb0c23c |
|
|
|
a081bd9 |
* Wed Feb 20 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.5.3-3
|
|
|
a081bd9 |
- fix typo in %%description
|
|
|
a081bd9 |
|
|
|
a081bd9 |
* Wed Feb 20 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.5.3-2
|
|
|
a081bd9 |
- fix typo in %%summary
|
|
|
a081bd9 |
|
|
|
a081bd9 |
* Mon Feb 11 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.5.3-1
|
|
|
a081bd9 |
- initial package
|