[nodejs-node-stringprep] Update to upstream release 0.2.3
Jamie Nguyen
jamielinux at fedoraproject.org
Sun Apr 20 08:16:11 UTC 2014
commit 7db0c00c8a50fc0ec2b40c23789a9330d3bcfdc6
Author: Jamie Nguyen <j at jamielinux.com>
Date: Sun Apr 20 09:15:58 2014 +0100
Update to upstream release 0.2.3
.gitignore | 1 +
...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 | 43 ++++++++++++--------
sources | 2 +-
5 files changed, 28 insertions(+), 69 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index f298e69..9f3a59c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/node-stringprep-0.1.5.tgz
/node-stringprep-0.1.8.tgz
+/node-stringprep-0.2.3.tgz
diff --git a/nodejs-node-stringprep.spec b/nodejs-node-stringprep.spec
index 447fa48..5fc15e8 100644
--- a/nodejs-node-stringprep.spec
+++ b/nodejs-node-stringprep.spec
@@ -1,31 +1,37 @@
%{?nodejs_find_provides_and_requires}
-%global enable_tests 1
+%global enable_tests 0
Name: nodejs-node-stringprep
-Version: 0.1.8
-Release: 2%{?dist}
+Version: 0.2.3
+Release: 1%{?dist}
Summary: ICU StringPrep profiles for Node.js
License: MIT
Group: System Environment/Libraries
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.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}
%endif
+BuildRequires: libicu-devel
+BuildRequires: nodejs-packaging
+BuildRequires: node-gyp
+BuildRequires: npm(bindings)
+BuildRequires: npm(nan)
+
+# The project uses Grunt, but there isn't anything fancy being done so we
+# can just use mocha directly.
+%if 0%{?enable_tests}
+BuildRequires: npm(mocha)
+BuildRequires: npm(should)
+# Not yet packaged for Fedora.
+# BuildRequires: npm(proxyquire)
+%endif
+
%description
This module exposes predefined Unicode normalization functions that are
required by many protocols. This is just a binding to ICU, which is said
@@ -34,11 +40,10 @@ to be fast.
%prep
%setup -q -n package
-%patch0 -p1
-%patch1 -p1
%build
+%nodejs_symlink_deps --check
export CXXFLAGS="%{optflags}"
node-gyp configure
node-gyp build
@@ -46,17 +51,18 @@ node-gyp build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/node-stringprep
-cp -p package.json \
+cp -p package.json index.js \
%{buildroot}%{nodejs_sitelib}/node-stringprep
install -p -D -m0755 build/Release/node_stringprep.node \
- %{buildroot}%{nodejs_sitelib}/node-stringprep/node-stringprep.node
+ %{buildroot}%{nodejs_sitelib}/node-stringprep/build/node-stringprep.node
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
-%__nodejs leakcheck.js
+# /usr/bin/npm install proxyquire@~0.5.2
+/usr/bin/mocha -R spec --ui tdd
%endif
@@ -66,6 +72,9 @@ install -p -D -m0755 build/Release/node_stringprep.node \
%changelog
+* Sat Apr 19 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.2.3-1
+- update to upstream release 0.2.3
+
* Fri Feb 14 2014 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.1.8-2
- rebuild for icu-53 (via v8)
diff --git a/sources b/sources
index 3d17989..33f15c9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-cbe0db94eaf484b548ca6f7a5ff7302c node-stringprep-0.1.8.tgz
+037ba04d07650cc7b5599dd985aa4e8e node-stringprep-0.2.3.tgz
More information about the scm-commits
mailing list