[nodejs-should] Update to upstream release 3.1.3
Jamie Nguyen
jamielinux at fedoraproject.org
Sun Mar 2 17:24:30 UTC 2014
commit 7da1b91623e9d7f05cb840981b1abef2818ca85e
Author: Jamie Nguyen <j at jamielinux.com>
Date: Sun Mar 2 17:25:06 2014 +0000
Update to upstream release 3.1.3
.gitignore | 1 +
nodejs-should.spec | 22 +++++++++++++++-------
sources | 2 +-
3 files changed, 17 insertions(+), 8 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 549df70..1deb34c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/should-1.2.2.tgz
+/nodejs-should-3.1.3.tar.gz
diff --git a/nodejs-should.spec b/nodejs-should.spec
index 05a9347..695b6d4 100644
--- a/nodejs-should.spec
+++ b/nodejs-should.spec
@@ -1,16 +1,19 @@
%{?nodejs_find_provides_and_requires}
-%global enable_tests 0
+%global commit d43338f2340169dd6315f7799dfb72b2e810b59e
+
+%global enable_tests 1
Name: nodejs-should
-Version: 1.2.2
-Release: 3%{?dist}
+Version: 3.1.3
+Release: 1%{?dist}
Summary: A test framework agnostic BDD-style assertions for Node.js
# License text is included in Readme.md
License: MIT
Group: System Environment/Libraries
URL: https://github.com/visionmedia/should.js
-Source0: http://registry.npmjs.org/should/-/should-%{version}.tgz
+# Use GitHub as the NPM tarball is missing useful files/folders.
+Source0: https://github.com/visionmedia/should.js/archive/%{commit}/%{name}-%{version}.tar.gz
BuildArch: noarch
%if 0%{?fedora} >= 19
@@ -39,7 +42,9 @@ supporting this constructor will function properly with should.
%prep
-%setup -q -n package
+%setup -q -n should.js-%{commit}
+rm -f should.min.js
+find . -type f -exec chmod -x '{}' \;
%build
@@ -48,7 +53,7 @@ supporting this constructor will function properly with should.
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/should
-cp -pr package.json index.js lib/ \
+cp -pr package.json index.js lib/ should.js \
%{buildroot}%{nodejs_sitelib}/should
%nodejs_symlink_deps
@@ -56,7 +61,7 @@ cp -pr package.json index.js lib/ \
%if 0%{?enable_tests}
%check
-%{nodejs_sitelib}/mocha/bin/mocha --ui exports
+%{nodejs_sitelib}/mocha/bin/mocha --ui exports test/**/*.test.js
%endif
@@ -66,6 +71,9 @@ cp -pr package.json index.js lib/ \
%changelog
+* Sun Mar 02 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 3.1.3-1
+- update to upstream release 3.1.3
+
* Sun Jul 28 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 1.2.2-3
- restrict to compatible arches
diff --git a/sources b/sources
index 11524b4..d68394b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-af392148456c8ae83ffed36c06bf5a90 should-1.2.2.tgz
+b968628a33e23537abc88df205afaf09 nodejs-should-3.1.3.tar.gz
More information about the scm-commits
mailing list