[nodejs-node-stringprep] Update to 0.1.8
Jamie Nguyen
jamielinux at fedoraproject.org
Sun Jul 28 14:45:23 UTC 2013
commit f5a907c87ac57894f40d59c241a57669a9dec5b9
Author: Jamie Nguyen <j at jamielinux.com>
Date: Sun Jul 28 15:44:48 2013 +0100
Update to 0.1.8
.gitignore | 1 +
...gprep-0.1.5-do-not-hardcode-build-release.patch | 10 -----
nodejs-node-stringprep-0.1.5-fix-test.patch | 22 ------------
...e-stringprep-0.1.5-native-module-handling.patch | 36 --------------------
...js-node-stringprep-0.1.8-Fix-hanging-test.patch | 26 ++++++++++++++
...gprep-0.1.8-do-not-hardcode-build-release.patch | 25 ++++++++++++++
nodejs-node-stringprep.spec | 30 +++++++++-------
sources | 2 +-
8 files changed, 70 insertions(+), 82 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 420c58b..f298e69 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/node-stringprep-0.1.5.tgz
+/node-stringprep-0.1.8.tgz
diff --git a/nodejs-node-stringprep-0.1.8-Fix-hanging-test.patch b/nodejs-node-stringprep-0.1.8-Fix-hanging-test.patch
new file mode 100644
index 0000000..12eae7d
--- /dev/null
+++ b/nodejs-node-stringprep-0.1.8-Fix-hanging-test.patch
@@ -0,0 +1,26 @@
+From 99f2762f10b58631dad94761001c30bf605b4657 Mon Sep 17 00:00:00 2001
+From: Jamie Nguyen <j at jamielinux.com>
+Date: Sun, 28 Jul 2013 15:38:37 +0100
+Subject: [PATCH] Fix hanging test
+
+---
+ leakcheck.js | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/leakcheck.js b/leakcheck.js
+index faae450..2c68752 100644
+--- a/leakcheck.js
++++ b/leakcheck.js
+@@ -14,7 +14,9 @@ function run() {
+
+ try {
+ run();
++ process.exit(0);
+ } catch (e) {
+ console.log(JSON.stringify(e));
++ process.exit(1);
+ }
+
+--
+1.8.3.1
+
diff --git a/nodejs-node-stringprep-0.1.8-do-not-hardcode-build-release.patch b/nodejs-node-stringprep-0.1.8-do-not-hardcode-build-release.patch
new file mode 100644
index 0000000..9a72fa8
--- /dev/null
+++ b/nodejs-node-stringprep-0.1.8-do-not-hardcode-build-release.patch
@@ -0,0 +1,25 @@
+From 71626d1304187b626258d815a3e63eeb3d06f778 Mon Sep 17 00:00:00 2001
+From: Jamie Nguyen <j at jamielinux.com>
+Date: Sun, 28 Jul 2013 15:34:29 +0100
+Subject: [PATCH] Do not hardcode build/Release
+
+---
+ package.json | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/package.json b/package.json
+index 11f9491..24d3df2 100644
+--- a/package.json
++++ b/package.json
+@@ -1,7 +1,7 @@
+ {
+ "name": "node-stringprep",
+ "version": "0.1.8",
+- "main": "./build/Release/node_stringprep.node",
++ "main": "./node_stringprep.node",
+ "description": "ICU StringPrep profiles",
+ "keywords": [
+ "unicode",
+--
+1.8.3.1
+
diff --git a/nodejs-node-stringprep.spec b/nodejs-node-stringprep.spec
index d06c8b9..a4ac4af 100644
--- a/nodejs-node-stringprep.spec
+++ b/nodejs-node-stringprep.spec
@@ -1,10 +1,10 @@
%{?nodejs_find_provides_and_requires}
-%global enable_tests 0
+%global enable_tests 1
Name: nodejs-node-stringprep
-Version: 0.1.5
-Release: 5%{?dist}
+Version: 0.1.8
+Release: 1%{?dist}
Summary: ICU StringPrep profiles for Node.js
License: MIT
Group: System Environment/Libraries
@@ -12,19 +12,19 @@ URL: https://github.com/astro/node-stringprep
Source0: http://registry.npmjs.org/node-stringprep/-/node-stringprep-%{version}.tgz
# Do not hardcode build/Release in "main" to comply with packaging guidelines.
-Patch0: %{name}-0.1.5-do-not-hardcode-build-release.patch
-# Native module handling changed for 0.9.x. Pull request sent upstream:
-# https://github.com/astro/node-stringprep/pull/26
-Patch1: %{name}-0.1.5-native-module-handling.patch
-# The leakcheck.js test doesn't work quite as expected.
-Patch2: %{name}-0.1.5-fix-test.patch
-
-BuildRequires: nodejs-devel
+Patch0: %{name}-0.1.8-do-not-hardcode-build-release.patch
+# Fix hanging test
+Patch1: %{name}-0.1.8-Fix-hanging-test.patch
+
+BuildRequires: nodejs-packaging
BuildRequires: node-gyp
BuildRequires: libicu-devel
+%if 0%{?fedora} >= 19
+ExclusiveArch: %{nodejs_arches}
+%else
ExclusiveArch: %{ix86} x86_64 %{arm}
-# ExclusiveArch: %%{nodejs_arches}
+%endif
%description
This module exposes predefined Unicode normalization functions that are
@@ -36,7 +36,6 @@ to be fast.
%setup -q -n package
%patch0 -p1
%patch1 -p1
-%patch2 -p1
%build
@@ -67,6 +66,11 @@ install -p -D -m0755 build/Release/node_stringprep.node \
%changelog
+* Sun Jul 28 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.1.8-1
+- update to upstream release 0.1.8
+- add ExclusiveArch logic
+- enable tests
+
* Wed Jun 19 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.1.5-5
- rebuild for missing npm(node-stringprep) provides on EL6
diff --git a/sources b/sources
index 01d5207..3d17989 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-59ac63e96e2eaf2e104a0744bb5c53ef node-stringprep-0.1.5.tgz
+cbe0db94eaf484b548ca6f7a5ff7302c node-stringprep-0.1.8.tgz
More information about the scm-commits
mailing list