From 7e0c1ce7059030a84e01a057910f859137e65821 Mon Sep 17 00:00:00 2001 From: Piotr Popieluch Date: Feb 01 2016 11:14:56 +0000 Subject: update to upstream release 2.9.0 --- diff --git a/.gitignore b/.gitignore index 8e42bb7..0ad6376 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,6 @@ /commander-2.2.0.tgz /examples-2.2.0.tar.bz2 /tests-2.2.0.tar.bz2 +/commander-2.9.0.tgz +/tests-v2.9.0.tar.bz2 +/examples-v2.9.0.tar.bz2 diff --git a/dl-tests.sh b/dl-tests.sh old mode 100644 new mode 100755 index f1470ce..3cb3448 --- a/dl-tests.sh +++ b/dl-tests.sh @@ -1,6 +1,6 @@ #!/bin/bash -tag=2.2.0 +tag=v2.9.0 set -e diff --git a/nodejs-commander.spec b/nodejs-commander.spec index 6f86ef6..06da06e 100644 --- a/nodejs-commander.spec +++ b/nodejs-commander.spec @@ -3,18 +3,17 @@ %global enable_tests 1 Name: nodejs-commander -Version: 2.2.0 -Release: 3%{?dist} +Version: 2.9.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 -Source0: http://registry.npmjs.org/commander/-/commander-%{version}.tgz +Source0: https://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 +Source1: tests-v%{version}.tar.bz2 +Source2: examples-v%{version}.tar.bz2 Source10: dl-tests.sh BuildArch: noarch @@ -25,13 +24,14 @@ ExclusiveArch: %{ix86} x86_64 %{arm} noarch %endif # Dep generator bug which adds a trailing dot in the nodejs(engine) requires. -Patch0: %{name}-2.1.0-Fix-engine-dep.patch +Patch0: %{name}-2.9.0-Fix-engine-dep.patch BuildRequires: nodejs-packaging %if 0%{?enable_tests} -BuildRequires: npm(keypress) BuildRequires: npm(should) +BuildRequires: npm(sinon) +BuildRequires: npm(graceful-readlink) %endif %description @@ -58,19 +58,24 @@ cp -pr package.json index.js \ %nodejs_symlink_deps -%if 0%{?enable_tests} %check %nodejs_symlink_deps --check -find test/test.*.js -exec ./test/run '{}' \; +%{__nodejs} -e 'require("./")' +%if 0%{?enable_tests} +./test/run test/test.*.js %endif %files %doc Readme.md examples/ +%license LICENSE %{nodejs_sitelib}/commander %changelog +* Mon Feb 01 2016 Piotr Popieluch - 2.9.0-1 +- update to upstream release 2.9.0 + * Wed Jun 17 2015 Fedora Release Engineering - 2.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index 1e8b361..4ae3e6f 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -ff462ce8dcc0e1881e8fb0004db20233 commander-2.2.0.tgz -eac59c808b50e6b594966867bc9dfd6c examples-2.2.0.tar.bz2 -b00282e6c33cda932b2d95c1515628e3 tests-2.2.0.tar.bz2 +a37d6fa4f816d927bc7c7877ec794009 commander-2.9.0.tgz +edb15286bce82788b1162af270977ad8 tests-v2.9.0.tar.bz2 +8bf62cc5b5cf1c0012598651bc27b655 examples-v2.9.0.tar.bz2