[nodejs-eventemitter2] Update to upstream release 0.4.13

Jamie Nguyen jamielinux at fedoraproject.org
Wed Sep 4 20:39:10 UTC 2013


commit f0252425a93c58591e4928a016dfc9f5941f95b3
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Wed Sep 4 21:38:43 2013 +0100

    Update to upstream release 0.4.13

 .gitignore                                         |    2 +
 dl-tests.sh                                        |   23 ++++++++++++++
 ....12-Add-missing-variables-to-knownGlobals.patch |   33 --------------------
 nodejs-eventemitter2.spec                          |   24 +++++++++-----
 sources                                            |    3 +-
 5 files changed, 42 insertions(+), 43 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 0bfb5bc..fd267da 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
 /eventemitter2-0.4.12.tgz
+/eventemitter2-0.4.13.tgz
+/tests-0.4.13.tar.bz2
diff --git a/dl-tests.sh b/dl-tests.sh
new file mode 100644
index 0000000..1e26d1c
--- /dev/null
+++ b/dl-tests.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+tag=0.4.13
+
+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/hij1nx/EventEmitter2.git
+cd EventEmitter2
+git archive --prefix="test/" --format=tar tags/${tag}:test/ \
+    | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+popd
diff --git a/nodejs-eventemitter2.spec b/nodejs-eventemitter2.spec
index e1694cf..c96a7a0 100644
--- a/nodejs-eventemitter2.spec
+++ b/nodejs-eventemitter2.spec
@@ -3,14 +3,18 @@
 %global enable_tests 0
 
 Name:       nodejs-eventemitter2
-Version:    0.4.12
-Release:    3%{?dist}
+Version:    0.4.13
+Release:    1%{?dist}
 Summary:    A Node.js event emitter implementation with namespaces, wildcards and TTL
 # License text is in README.md.
 License:    MIT
 Group:      System Environment/Libraries
 URL:        https://github.com/hij1nx/EventEmitter2
 Source0:    http://registry.npmjs.org/eventemitter2/-/eventemitter2-%{version}.tgz
+# Source1 is generated by running Source10, which pulls from the upstream
+# revision control repository.
+Source1:    tests-%{version}.tar.bz2
+Source10:   dl-tests.sh
 
 BuildArch:  noarch
 %if 0%{?fedora} >= 19
@@ -19,10 +23,6 @@ ExclusiveArch: %{nodejs_arches} noarch
 ExclusiveArch: %{ix86} x86_64 %{arm} noarch
 %endif
 
-# One of the tests fails due to unknown global variables.
-# Pull request sent: https://github.com/hij1nx/EventEmitter2/pull/82
-Patch0:     %{name}-0.4.12-Add-missing-variables-to-knownGlobals.patch
-
 BuildRequires:  nodejs-packaging
 
 %if 0%{?enable_tests}
@@ -36,7 +36,7 @@ time to live (TTL) and browser support.
 
 %prep
 %setup -q -n package
-%patch0 -p1
+%setup -q -T -D -a 1 -n package
 
 
 %build
@@ -54,8 +54,8 @@ cp -pr package.json index.js lib/ \
 %if 0%{?enable_tests}
 %check
 %nodejs_symlink_deps --check
-%{nodejs_sitelib}/nodeunit/bin/nodeunit test/simple/*
-%{nodejs_sitelib}/nodeunit/bin/nodeunit test/wildcardEvents/*
+%{nodejs_sitelib}/nodeunit/bin/nodeunit test/simple/
+%{nodejs_sitelib}/nodeunit/bin/nodeunit test/wildcardEvents/
 %endif
 
 
@@ -65,6 +65,12 @@ cp -pr package.json index.js lib/ \
 
 
 %changelog
+* Wed Sep 04 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.4.13-1
+- update to upstream release 0.4.13
+- remove local patch that has been accepted upstream
+- add script to download test/ directory as upstream have decided to remove it
+  from the npm tarball
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.12-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
diff --git a/sources b/sources
index e194def..c2070a5 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
-9104a87f1a8958b28463ff8c84d53341  eventemitter2-0.4.12.tgz
+bc8e738073d5a9c29b5fd70f3cb85183  eventemitter2-0.4.13.tgz
+cdf7d17f0299f3bc5c48ab1b95c6da10  tests-0.4.13.tar.bz2


More information about the scm-commits mailing list