[nodejs-zipfile] Update to 0.5.0 upstream release

Tom Hughes tomh at fedoraproject.org
Fri Mar 14 19:34:50 UTC 2014


commit 38aca0231618bddc5f1daaadce3df332ce7627b3
Author: Tom Hughes <tom at compton.nu>
Date:   Fri Mar 14 14:40:28 2014 +0000

    Update to 0.5.0 upstream release

 .gitignore                  |    1 +
 nodejs-zipfile-pregyp.patch |   32 ++++++++++++++++++++++++++++++++
 nodejs-zipfile.spec         |   11 ++++++++---
 sources                     |    2 +-
 4 files changed, 42 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a89cbc0..ca4017d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
 /zipfile-0.4.1.tgz
 /zipfile-0.4.2.tgz
 /zipfile-0.4.3.tgz
+/zipfile-0.5.0.tgz
diff --git a/nodejs-zipfile-pregyp.patch b/nodejs-zipfile-pregyp.patch
new file mode 100644
index 0000000..81a55d3
--- /dev/null
+++ b/nodejs-zipfile-pregyp.patch
@@ -0,0 +1,32 @@
+commit 763d684ab58fd1e4aa524e7ced960549fd6bd7ac
+Author: Tom Hughes <tom at compton.nu>
+Date:   Fri Mar 14 19:26:20 2014 +0000
+
+    Patch out use of node-pre-gyp
+
+diff --git a/lib/index.js b/lib/index.js
+index c7748be..1bb4894 100644
+--- a/lib/index.js
++++ b/lib/index.js
+@@ -1,6 +1,5 @@
+-var binary = require('node-pre-gyp');
+ var path = require('path');
+-var binding_path = binary.find(path.resolve(path.join(__dirname,'../package.json')));
++var binding_path = path.resolve(path.join(__dirname, 'binding/zipfile.node'));
+ var zipfile = require(binding_path);
+ 
+ exports = module.exports = zipfile;
+diff --git a/package.json b/package.json
+index 9b8af6d..4ccb13a 100644
+--- a/package.json
++++ b/package.json
+@@ -12,9 +12,6 @@
+   "author"        : "Dane Springmeyer <dane at dbsgeo.com>",
+   "contributors"  : [],
+   "licenses"      : ["BSD"],
+-  "dependencies"  : {
+-    "node-pre-gyp": "0.5.x"
+-  },
+   "bundledDependencies":["node-pre-gyp"],
+   "devDependencies": {
+     "mocha": "*",
diff --git a/nodejs-zipfile.spec b/nodejs-zipfile.spec
index 3629be2..516bf9a 100644
--- a/nodejs-zipfile.spec
+++ b/nodejs-zipfile.spec
@@ -1,11 +1,12 @@
 Name:           nodejs-zipfile
-Version:        0.4.3
-Release:        2%{?dist}
+Version:        0.5.0
+Release:        1%{?dist}
 Summary:        C++ library for handling zipfiles in Node.js
 
 License:        BSD
 URL:            https://github.com/springmeyer/node-zipfile
 Source0:        http://registry.npmjs.org/zipfile/-/zipfile-%{version}.tgz
+Patch0:         nodejs-zipfile-pregyp.patch
 ExclusiveArch:  %{nodejs_arches}
 
 BuildRequires:  nodejs-devel
@@ -24,6 +25,7 @@ Bindings to libzip for handling zipfile archives in Node.js.
 
 %prep
 %setup -q -n package
+%patch0 -p1
 rm -rf deps/* node_modules
 echo "{}" > deps/common-libzip.gypi
 # Fix file names corrupted in NPM registry tar ball, see:
@@ -34,7 +36,7 @@ mv test/data/Clément/Olá.zip test/data/Clément/Olá.zip
 
 %build
 export CXXFLAGS="%{optflags}"
-node-gyp configure -- -Dshared_libzip=true
+node-gyp configure -- -Dshared_libzip=true -Dmodule_name=zipfile -Dmodule_path=lib/binding
 node-gyp build
 
 
@@ -55,6 +57,9 @@ cp -pr package.json lib %{buildroot}/%{nodejs_sitearch}/zipfile
 
 
 %changelog
+* Fri Mar 14 2014 Tom Hughes <tom at compton.nu> - 0.5.0-1
+- Update to 0.5.0 upstream release
+
 * Fri Feb 14 2014 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.4.3-2
 - rebuild for icu-53 (via v8)
 
diff --git a/sources b/sources
index b73c638..a1ef9f0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-df9a635917d9d7138f4f89843619081b  zipfile-0.4.3.tgz
+dd2798c0802c0239543ef4c0e0cb176d  zipfile-0.5.0.tgz


More information about the scm-commits mailing list