diff --git a/nodejs-closure-compiler-invoke.patch b/nodejs-closure-compiler-invoke.patch index 5456c91..46167e4 100644 --- a/nodejs-closure-compiler-invoke.patch +++ b/nodejs-closure-compiler-invoke.patch @@ -5,21 +5,22 @@ Date: Thu Apr 24 00:18:35 2014 +0100 Use closure-compiler wrapper script to get correct class path diff --git a/src/index.coffee b/src/index.coffee -index c9dea72..8a85770 100644 +index dddddb5..8a85770 100644 --- a/src/index.coffee +++ b/src/index.coffee -@@ -22,10 +22,7 @@ +@@ -22,11 +22,7 @@ # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. spawn = require('child_process').spawn -path = require 'path' -JAVA_PATH = exports.JAVA_PATH = 'java' --JAR_PATH = exports.JAR_PATH = path.join __dirname, '../node_modules/google-closure-compiler/compiler.jar' +-# Load `compiler.jar` using Node's regular lookup mechanism. +-JAR_PATH = exports.JAR_PATH = require.resolve('google-closure-compiler/compiler.jar'); OPTIONS = exports.OPTIONS = {} exports.compile = (input, options, callback) -> -@@ -42,11 +39,6 @@ exports.compile = (input, options, callback) -> +@@ -43,11 +39,6 @@ exports.compile = (input, options, callback) -> args = [] @@ -31,7 +32,7 @@ index c9dea72..8a85770 100644 delete options.jar Object.keys(options).forEach (key) -> -@@ -67,7 +59,7 @@ exports.compile = (input, options, callback) -> +@@ -68,7 +59,7 @@ exports.compile = (input, options, callback) -> if value != true args.push value @@ -40,3 +41,6 @@ index c9dea72..8a85770 100644 stdout = '' stderr = '' +-- +2.30.0 + diff --git a/nodejs-closure-compiler.spec b/nodejs-closure-compiler.spec index 54367da..5b76e80 100644 --- a/nodejs-closure-compiler.spec +++ b/nodejs-closure-compiler.spec @@ -1,6 +1,6 @@ Name: nodejs-closure-compiler -Version: 0.2.10 -Release: 2 +Version: 0.2.12 +Release: 1 Summary: Bindings to Google's Closure Compiler for Node.js License: MIT URL: https://github.com/tim-smart/node-closure @@ -32,6 +32,9 @@ cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/closure-compiler %{nodejs_sitelib}/closure-compiler %changelog +* Thu Jun 30 2022 chenchen - 0.2.12-1 +- Update to 0.2.12 + * Wed Jun 09 2021 zhaoyao - 0.2.10-2 - %prep no longer patch with git diff --git a/v0.2.10.tar.gz b/v0.2.10.tar.gz deleted file mode 100644 index dc52c6d..0000000 Binary files a/v0.2.10.tar.gz and /dev/null differ diff --git a/v0.2.12.tar.gz b/v0.2.12.tar.gz new file mode 100644 index 0000000..a53812a Binary files /dev/null and b/v0.2.12.tar.gz differ