From 35f26ddaba6314b360b05aa3be8a5e3e66c16cc1 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 09 2014 08:34:03 +0000 Subject: import nodejs010-nodejs-qs-0.6.5-4.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7e024fb --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/qs-0.6.5.tgz +SOURCES/tests-0.6.5.tar.bz2 diff --git a/.nodejs010-nodejs-qs.metadata b/.nodejs010-nodejs-qs.metadata new file mode 100644 index 0000000..78c88b8 --- /dev/null +++ b/.nodejs010-nodejs-qs.metadata @@ -0,0 +1,2 @@ +294b268e4b0d4250f6dde19b3b8b34935dff14ef SOURCES/qs-0.6.5.tgz +daf7435d0e3b9769864196bd67bd9ca6aec9a40f SOURCES/tests-0.6.5.tar.bz2 diff --git a/README.md b/README.md deleted file mode 100644 index ce46a88..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -\ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/dl-tests.sh b/SOURCES/dl-tests.sh new file mode 100644 index 0000000..7a873a7 --- /dev/null +++ b/SOURCES/dl-tests.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +tag=0.6.5 + +set -e + +tmp=$(mktemp -d) + +trap cleanup EXIT +cleanup() { + set +e + [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp" +} + +unset CDPATH +pwd=$(pwd) + +pushd "$tmp" +git clone https://github.com/visionmedia/node-querystring.git +cd node-querystring +git archive --prefix="test/" --format=tar tags/${tag}:test/ \ + | bzip2 > "$pwd"/tests-${tag}.tar.bz2 +popd diff --git a/SPECS/nodejs-qs.spec b/SPECS/nodejs-qs.spec new file mode 100644 index 0000000..2651592 --- /dev/null +++ b/SPECS/nodejs-qs.spec @@ -0,0 +1,106 @@ +%{?scl:%scl_package nodejs-qs} +%{!?scl:%global pkg_name %{name}} +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 + +Name: %{?scl_prefix}nodejs-qs +Version: 0.6.5 +Release: 4%{?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/visionmedia/node-querystring +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: %{?scl_prefix}nodejs-devel + +%if 0%{?enable_tests} +BuildRequires: npm(expect.js) +BuildRequires: npm(growl) +BuildRequires: npm(jade) +BuildRequires: npm(mocha) +BuildRequires: npm(querystring) +%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 package.json index.js \ + %{buildroot}%{nodejs_sitelib}/qs + +%nodejs_symlink_deps + + +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +%{nodejs_sitelib}/mocha/bin/mocha --ui bdd +%endif + +%files +%doc Readme.md +%{nodejs_sitelib}/qs + +%changelog +* Thu Oct 17 2013 Tomas Hrcka - 0.6.5-4 +- replace provides and requires with macro + +* 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 + +* Fri Apr 12 2013 Stanislav Ochotnicky - 0.5.6-2 +- Add support for software collections + +* 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