[nodejs-diff] Update to 1.0.5 and restrict to compatible arches
Jamie Nguyen
jamielinux at fedoraproject.org
Sun Jul 21 18:57:04 UTC 2013
commit da752499fd54a3495aff7b2abe3a287568f9361f
Author: Jamie Nguyen <j at jamielinux.com>
Date: Sun Jul 21 19:56:10 2013 +0100
Update to 1.0.5 and restrict to compatible arches
.gitignore | 2 ++
dl-tests.sh | 23 +++++++++++++++++++++++
nodejs-diff.spec | 26 +++++++++++++++++++++-----
sources | 3 ++-
4 files changed, 48 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 638d559..ace007f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
/diff-1.0.4.tgz
+/diff-1.0.5.tgz
+/tests-v1.0.5.tar.bz2
diff --git a/dl-tests.sh b/dl-tests.sh
new file mode 100644
index 0000000..0d0422d
--- /dev/null
+++ b/dl-tests.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+tag=v1.0.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/kpdecker/jsdiff.git
+cd jsdiff
+git archive --prefix="test/" --format=tar tags/${tag}:test/ \
+ | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+popd
diff --git a/nodejs-diff.spec b/nodejs-diff.spec
index 6f7e2d4..0ab1d2e 100644
--- a/nodejs-diff.spec
+++ b/nodejs-diff.spec
@@ -1,18 +1,28 @@
%{?nodejs_find_provides_and_requires}
-%global enable_tests 0
+%global enable_tests 1
Name: nodejs-diff
-Version: 1.0.4
-Release: 2%{?dist}
+Version: 1.0.5
+Release: 1%{?dist}
Summary: A JavaScript text diff implementation for Node.js
License: BSD
Group: System Environment/Libraries
URL: https://github.com/kpdecker/jsdiff
Source0: http://registry.npmjs.org/diff/-/diff-%{version}.tgz
+# Source1 is generated by running Source10, which pulls from the upstream
+# revision control repository.
+Source1: tests-v%{version}.tar.bz2
+Source10: dl-tests.sh
+
BuildArch: noarch
+%if 0%{?fedora} >= 19
+ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
-BuildRequires: nodejs-devel
+BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(mocha)
@@ -25,6 +35,7 @@ BuildRequires: npm(should)
%prep
%setup -q -n package
+%setup -q -T -D -a 1 -n package
%build
@@ -46,11 +57,16 @@ cp -pr package.json diff.js \
%files
-%doc LICENSE README.md index.html style.css
+%doc LICENSE README.md
%{nodejs_sitelib}/diff
%changelog
+* Sun Jul 21 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 1.0.5-1
+- update to upstream release 1.0.5
+- restrict to compatible arches
+- test/ directory has been excluded from the npm tarball, so d/l separately
+
* Wed Jun 19 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 1.0.4-2
- rebuild for missing npm(diff) provides on EL6
diff --git a/sources b/sources
index 41d6d92..794fd63 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
-a508604accdee0b39a8fb8bcad5e7e1a diff-1.0.4.tgz
+994f262d0d19c4045697deab579402c1 diff-1.0.5.tgz
+484e50f4ab21de2b211101bd3470ffaf tests-v1.0.5.tar.bz2
More information about the scm-commits
mailing list