[nodejs-ms] Update to upstream release 0.6.0
Jamie Nguyen
jamielinux at fedoraproject.org
Sat Mar 16 19:32:38 UTC 2013
commit e8986b06204bebcf9cc4a70b57dd39a560b4f7bf
Author: Jamie Nguyen <j at jamielinux.com>
Date: Sat Mar 16 19:32:18 2013 +0000
Update to upstream release 0.6.0
.gitignore | 2 ++
dl-tests.sh | 23 +++++++++++++++++++++++
nodejs-ms.spec | 15 +++++++++++++--
sources | 3 ++-
4 files changed, 40 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index fb70812..6a5e78e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
/ms-0.5.0.tgz
/ms-0.5.1.tgz
+/ms-0.6.0.tgz
+/tests-0.6.0.tar.bz2
diff --git a/dl-tests.sh b/dl-tests.sh
new file mode 100755
index 0000000..8b9be56
--- /dev/null
+++ b/dl-tests.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+tag=0.6.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 https://github.com/guille/ms.js.git
+cd ms.js
+git archive --prefix="test/" --format=tar tags/${tag}:test/ \
+ | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+popd
diff --git a/nodejs-ms.spec b/nodejs-ms.spec
index 11157c2..81e5cc9 100644
--- a/nodejs-ms.spec
+++ b/nodejs-ms.spec
@@ -1,13 +1,18 @@
%global enable_tests 0
Name: nodejs-ms
-Version: 0.5.1
+Version: 0.6.0
Release: 1%{?dist}
Summary: Tiny milliseconds conversion utility for Node.js
License: MIT
Group: System Environment/Libraries
URL: https://github.com/guille/ms.js/
Source0: http://registry.npmjs.org/ms/-/ms-%{version}.tgz
+# The tests 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
# Upstream have been informed about missing LICENSE file:
# https://github.com/guille/ms.js/issues/21
Source20: LICENSE
@@ -33,6 +38,7 @@ It does the following:
%prep
%setup -q -n package
+%setup -q -T -D -a 1 -n package
cp -p %{SOURCE20} .
@@ -56,11 +62,16 @@ cp -pr %{nodejs_sitelib} .
%files
-%doc History.md LICENSE README.md
+%doc LICENSE README.md
%{nodejs_sitelib}/ms
%changelog
+* Sat Mar 16 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.6.0-1
+- update to upstream release 0.6.0
+- History.md is now not included in the npm tarball
+- tests are now not included in the npm tarball, so download separately
+
* Fri Mar 15 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.5.1-1
- update to upstream release 0.5.1
diff --git a/sources b/sources
index ab4c770..42dece5 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
-db95fc24a10b88b0514c8ad0f334e204 ms-0.5.1.tgz
+d3145c98ac0244cf5ee62ba0fc169064 ms-0.6.0.tgz
+dd77ef6e356dac8c50412b9cf3a0102a tests-0.6.0.tar.bz2
More information about the scm-commits
mailing list