From a74306cf4aad97b2ad52c954858ed114e7118f86 Mon Sep 17 00:00:00 2001 From: Jamie Nguyen Date: May 25 2013 15:17:06 +0000 Subject: Update to upstream release 0.6.5 --- diff --git a/.gitignore b/.gitignore index 46be450..e9090e1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ /qs-0.5.4.tgz /qs-0.5.5.tgz /qs-0.5.6.tgz +/qs-0.6.5.tgz +/tests-0.6.5.tar.bz2 diff --git a/dl-tests.sh b/dl-tests.sh new file mode 100744 index 0000000..7a873a7 --- /dev/null +++ b/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/nodejs-qs.spec b/nodejs-qs.spec index 2baf590..9f91bc8 100644 --- a/nodejs-qs.spec +++ b/nodejs-qs.spec @@ -3,14 +3,19 @@ %global enable_tests 0 Name: nodejs-qs -Version: 0.5.6 -Release: 2%{?dist} +Version: 0.6.5 +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/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 BuildRequires: nodejs-devel @@ -32,6 +37,7 @@ and others. %prep %setup -q -n package +%setup -q -T -D -a 1 -n package %build @@ -48,17 +54,20 @@ cp -pr package.json index.js \ %if 0%{?enable_tests} %check -cp -pr %{nodejs_sitelib} . +ln -sf %{nodejs_sitelib} . %{nodejs_sitelib}/mocha/bin/mocha --ui bdd %endif %files -%doc History.md Readme.md examples.js +%doc Readme.md %{nodejs_sitelib}/qs %changelog +* 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 diff --git a/sources b/sources index d7369a3..71fe786 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -5108da662de45ba0d8d5ab368522ae00 qs-0.5.6.tgz +8141bb2eab058ca4a7ada30cf5716c5e qs-0.6.5.tgz +6d4f2572c9d06ea4ec0bcd0df9b8bc20 tests-0.6.5.tar.bz2