From 400d3c008a776afe1ad5c5644ca79a61861244eb Mon Sep 17 00:00:00 2001 From: Jamie Nguyen Date: Apr 25 2014 17:01:35 +0000 Subject: Update to upstream release 2.2.0 --- diff --git a/.gitignore b/.gitignore index f60290f..8e42bb7 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ /commander-1.2.0.tgz /tests-1.2.0.tar.bz2 /nodejs-commander-2.1.0.tar.gz +/commander-2.2.0.tgz +/examples-2.2.0.tar.bz2 +/tests-2.2.0.tar.bz2 diff --git a/dl-tests.sh b/dl-tests.sh new file mode 100644 index 0000000..f1470ce --- /dev/null +++ b/dl-tests.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +tag=2.2.0 + +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 git://github.com/visionmedia/commander.js.git +cd commander.js +git archive --prefix="test/" --format=tar tags/${tag}:test/ \ + | bzip2 > "$pwd"/tests-${tag}.tar.bz2 +git archive --prefix="examples/" --format=tar tags/${tag}:examples/ \ + | bzip2 > "$pwd"/examples-${tag}.tar.bz2 +popd diff --git a/nodejs-commander.spec b/nodejs-commander.spec index 7f253d4..1ea6f6b 100644 --- a/nodejs-commander.spec +++ b/nodejs-commander.spec @@ -1,19 +1,21 @@ %{?nodejs_find_provides_and_requires} -%global commit 963458a078b727ba52ec9819e13a6d6cce0eab1f - %global enable_tests 1 Name: nodejs-commander -Version: 2.1.0 +Version: 2.2.0 Release: 1%{?dist} Summary: Node.js command-line interfaces made easy # License text is included in Readme.md License: MIT Group: System Environment/Libraries URL: https://github.com/visionmedia/commander.js -# Use GitHub as the NPM tarball is missing test/, examples/, History.md. -Source0: https://github.com/visionmedia/commander.js/archive/%{commit}/%{name}-%{version}.tar.gz +Source0: http://registry.npmjs.org/commander/-/commander-%{version}.tgz +# Source1 is generated by running Source10, which pulls from the upstream +# version control repository. +Source1: tests-%{version}.tar.bz2 +Source2: examples-%{version}.tar.bz2 +Source10: dl-tests.sh BuildArch: noarch %if 0%{?fedora} >= 19 @@ -38,7 +40,9 @@ inspired by Ruby's commander. %prep -%setup -q -n commander.js-%{commit} +%setup -q -n package +%setup -q -T -D -a 1 -n package +%setup -q -T -D -a 2 -n package %patch0 -p1 @@ -62,11 +66,14 @@ find test/test.*.js -exec ./test/run '{}' \; %files -%doc History.md Readme.md examples/ +%doc Readme.md examples/ %{nodejs_sitelib}/commander %changelog +* Sun Apr 20 2014 Jamie Nguyen - 2.2.0-1 +- update to upstream release 2.2.0 + * Sun Mar 02 2014 Jamie Nguyen - 2.1.0-1 - update to upstream release 2.1.0 diff --git a/sources b/sources index 27cdcc1..1e8b361 100644 --- a/sources +++ b/sources @@ -1 +1,3 @@ -5b212ad4e41f8a6b26cc0c8eb41b99e3 nodejs-commander-2.1.0.tar.gz +ff462ce8dcc0e1881e8fb0004db20233 commander-2.2.0.tgz +eac59c808b50e6b594966867bc9dfd6c examples-2.2.0.tar.bz2 +b00282e6c33cda932b2d95c1515628e3 tests-2.2.0.tar.bz2