[nodejs-ain2] Update to upstream release 1.3.2

Jamie Nguyen jamielinux at fedoraproject.org
Sat Apr 19 12:34:39 UTC 2014


commit ec8d98f069218e7eca98b9c074eda94169e7dc80
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Sat Apr 19 13:34:18 2014 +0100

    Update to upstream release 1.3.2

 .gitignore       |    1 +
 nodejs-ain2.spec |   27 +++++++++++++++++++++------
 sources          |    2 +-
 3 files changed, 23 insertions(+), 7 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 37f2c2d..faa08b8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /ain2-1.2.1.tgz
+/ain2-1.3.2.tgz
diff --git a/nodejs-ain2.spec b/nodejs-ain2.spec
index 31b92e9..22ba53e 100644
--- a/nodejs-ain2.spec
+++ b/nodejs-ain2.spec
@@ -1,12 +1,15 @@
 %{?nodejs_find_provides_and_requires}
 
-# koji doesn't seem to like the integration tests. In a local mock build,
-# the tests run fine and all pass.
+# npm(chai) not yet available on EL6.
+%if 0%{?fedora}
+%global enable_tests 1
+%else
 %global enable_tests 0
+%endif
 
 Name:       nodejs-ain2
-Version:    1.2.1
-Release:    7%{?dist}
+Version:    1.3.2
+Release:    1%{?dist}
 Summary:    A Node.js module for syslog logging (and a continuation of ain)
 License:    MIT
 Group:      System Environment/Libraries
@@ -20,7 +23,12 @@ ExclusiveArch: %{nodejs_arches} noarch
 ExclusiveArch: %{ix86} x86_64 %{arm} noarch
 %endif
 
-BuildRequires:  nodejs-devel
+BuildRequires:  nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires:  npm(chai)
+BuildRequires:  npm(mocha)
+%endif
 
 %description
 This module provides syslog logging for Node.js.
@@ -54,7 +62,11 @@ cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/ain2
 
 %if 0%{?enable_tests}
 %check
-%__nodejs test/integration.js
+%nodejs_symlink_deps --check
+# Optional dependency npm(unix-dgram) not yet packaged for Fedora, so disable
+# the test.
+rm -f test/unix.spec.js
+/usr/bin/mocha test/**/*.spec.js
 %endif
 
 
@@ -64,6 +76,9 @@ cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/ain2
 
 
 %changelog
+* Sat Apr 19 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 1.3.2-1
+- update to upstream release 1.3.2
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2.1-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
diff --git a/sources b/sources
index 2b90de6..1482982 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-0df8c373bff6f56928da0963caba4b2a  ain2-1.2.1.tgz
+66626238b4c87c5830b263b546185e65  ain2-1.3.2.tgz


More information about the scm-commits mailing list