diff --git a/nodejs-qs.spec b/nodejs-qs.spec new file mode 100644 index 0000000..1674c80 --- /dev/null +++ b/nodejs-qs.spec @@ -0,0 +1,49 @@ +%{?nodejs_find_provides_and_requires} +%global enable_tests 1 +Name: nodejs-qs +Version: 6.5.1 +Release: 1 +Summary: Query string parser for Node.js +License: BSD +URL: https://github.com/ljharb/qs +Source0: https://registry.npmjs.org/qs/-/qs-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +BuildRequires: npm(iconv-lite) +%if 0%{?enable_tests} +BuildRequires: npm(tape) +%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 + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/qs +cp -p package.json %{buildroot}%{nodejs_sitelib}/qs +mkdir -p %{buildroot}%{nodejs_sitelib}/qs/lib +install -p -m644 lib/*.js %{buildroot}%{nodejs_sitelib}/qs/lib +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%{__nodejs} -e 'require("./")' +%if 0%{?enable_tests} +%__nodejs test +%endif + +%files +%doc README.md CHANGELOG.md +%license LICENSE +%{nodejs_sitelib}/qs + +%changelog +* Fri Aug 14 2020 wangyue - 6.5.1-1 +- Package init diff --git a/nodejs-qs.yaml b/nodejs-qs.yaml new file mode 100644 index 0000000..dbdeb2b --- /dev/null +++ b/nodejs-qs.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/ljharb/qs +version_control: github +src_repo: ljharb/qs +tag_prefix: "^v" +seperator: "." diff --git a/qs-6.5.1.tgz b/qs-6.5.1.tgz new file mode 100644 index 0000000..3e4ff57 Binary files /dev/null and b/qs-6.5.1.tgz differ