From 70ddf402f871da5a5bf2c1f0cd1b48910834b2c8 Mon Sep 17 00:00:00 2001 From: fwx913451 Date: Thu, 20 Aug 2020 10:32:03 +0800 Subject: [PATCH] fuanan add package --- closure-compiler-0.2.10.tgz | Bin 0 -> 2696 bytes nodejs-closure-compiler-invoke.patch | 42 +++++++++++++ nodejs-closure-compiler.spec | 37 ++++++++++++ nodejs-closure-compiler.spec.old | 87 +++++++++++++++++++++++++++ 4 files changed, 166 insertions(+) create mode 100644 closure-compiler-0.2.10.tgz create mode 100644 nodejs-closure-compiler-invoke.patch create mode 100644 nodejs-closure-compiler.spec create mode 100644 nodejs-closure-compiler.spec.old diff --git a/closure-compiler-0.2.10.tgz b/closure-compiler-0.2.10.tgz new file mode 100644 index 0000000000000000000000000000000000000000..636304d4076608c96d313de37ca7e821614d40ee GIT binary patch literal 2696 zcmV;33U~D%iwFP!000001MOOUZ`w=}fByETn8N8XT)`N~%UyDLBto3V&k=}#v{zMC zWy}I@jm>%OrcsseelxpkYzRquElqVNR&B6n=VfR1ZGHm_$Nl6?S#2RdjgLGGe%o?0 zP4i%H4}NPN9v(Iu@S9n$AJk1CIyLcJZyeP3n)~%e^8ovsX0wU?+aAcKmhjk#a40{j zNBRQG&;OD3RRbsl&YTsFpy2u;Pa;-z!}-GVSyZS{@0f8n@)ofd2E=sg1!FIma)?8C z6^2uv=^WZp651=0pIO9}lxZ}Kx+%#{63@bjsIfP%^0^bmvLj-Pkb7|$-C`$=3~BN0 zLX2(dNhTyEk*_F6wHp4NB_jieTw7|Z1>qRIkYh4P5(V#+GYb}sS>Sq%XGW&NkLo@D z(MrRt@0))&>&BN%2@9rPK%;sm#mOA}abl8(NO>=q=8h*kH)_5&s$tOB7u;RaQQvb} zz=dCz_OPJcX}@az)xNJ8!D8-BgD_&-xADaOHyitM|C@Ww#^GTd`y2bjzuW&mzx~zV zHw#T{m=E)CocN5_e%WH&wP$bX{_k6@vrEgEkAH%V$M=7|v3DrA{Hl+;*A(j{Fp0N$M;9L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=?MCpRN9ftJd(Mf={no>all4r^=urpgmql zl>HxTnnVF7Prw9ZB(Xdnz3XM{SlYl|_JwX2Zsch?RTXr>*uT%WB#}PjW9S8?4E>iv(kXetg333`5=vU=l9e2a zFs4jIS4JzUE|yk&(hAVACTl)=s#%AVlM|qC$?)z~>eKR2Y6J(OdX5EsSprLEkjQty ze9n}lG_L$2LQmux#wT{mOG>D0Ov1==+*xVqC3a_}DOu!Gs@`GO`^=ztm74F$_bsG; ze2)bsyTL-{wv-TF<9~`g65qW~gZn~p(#)sUawOzU7g=6~u}Ju=q*v8)$rJPXsAtT4 z7PGugqW;$rpk?D#z-NJ|RjPvJvFgLejo}~v6> zT#3)qcyuFVS{8^xwOW9eKt62hM$skxZe^0yOfDTz3toAN zJ3t?Wq0b!L55NDOBTpP$)axrIuk4YrksYb&1#Ph?xu9| z2J8kbdM>H@`Ej1XP}OnzP!pIx3v+4`-_Nfd91*oVM;n5-xF>I?2RD|!Y z1Qp>2Ye7ZWN;RkmTdM~ZVQUqkB0O9Zq6yqqS*Qr#Sr`(7*ivn%2tQCAD#DiPLq*t1 zg$Q@wHflr|-5;(J72!MUMBfMjB>>FWKqA0z#eW(4+XVme_z!*<|1H5EY=D0tfYK)X z_XzG2-=tyUl0$O1=T?E-11N3<&19eo$&|LN1Gp#g8%Rtc29(KeLTpb0wZ~QEvB*Y5 zrsdI?CgYO_V~-%QRCEP}JqW@!VleFq47TdrCV-`-+2|&Gl>=9wjCoy6MupH}{hmFCE7ViMzB7K}f_8gVq5StO2YHUV%VV8NO2Q zk0UIQ(CKk}l`?IFSCHZ%g@e@USp`(58uX!WSth=kU?l-LKv5xM(nVb^wT*LLlB+kXJd;aNEVHUI!Z C=}PJV literal 0 HcmV?d00001 diff --git a/nodejs-closure-compiler-invoke.patch b/nodejs-closure-compiler-invoke.patch new file mode 100644 index 0000000..5456c91 --- /dev/null +++ b/nodejs-closure-compiler-invoke.patch @@ -0,0 +1,42 @@ +commit 2a9727fa15ef3ab823d9b4daad4395c0bc6c0840 +Author: Tom Hughes +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 +--- a/src/index.coffee ++++ b/src/index.coffee +@@ -22,10 +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' + OPTIONS = exports.OPTIONS = {} + + exports.compile = (input, options, callback) -> +@@ -42,11 +39,6 @@ exports.compile = (input, options, callback) -> + + args = [] + +- if !options.jar +- options.jar = JAR_PATH +- +- args.push('-jar') +- args.push(options.jar) + delete options.jar + + Object.keys(options).forEach (key) -> +@@ -67,7 +59,7 @@ exports.compile = (input, options, callback) -> + if value != true + args.push value + +- compiler = spawn JAVA_PATH, args ++ compiler = spawn 'closure-compiler', args + stdout = '' + stderr = '' + diff --git a/nodejs-closure-compiler.spec b/nodejs-closure-compiler.spec new file mode 100644 index 0000000..446d9a2 --- /dev/null +++ b/nodejs-closure-compiler.spec @@ -0,0 +1,37 @@ +Name: nodejs-closure-compiler +Version: 0.2.10 +Release: 1 +Summary: Bindings to Google's Closure Compiler for Node.js +License: MIT +URL: https://github.com/tim-smart/node-closure +Source0: http://registry.npmjs.org/closure-compiler/-/closure-compiler-%{version}.tgz +Patch0: nodejs-closure-compiler-invoke.patch +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +Requires: closure-compiler +BuildRequires: nodejs-packaging coffee-script +%description +A wrapper to the Google Closure compiler tool. It runs the jar file +in a child process and returns the results in a callback. + +%prep +%setup -q -n package +%patch0 -p1 +%nodejs_fixdep -r google-closure-compiler +rm -rf node_modules lib/* + +%build +cake build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/closure-compiler +cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/closure-compiler +%nodejs_symlink_deps + +%files +%doc LICENSE.txt README.md +%{nodejs_sitelib}/closure-compiler + +%changelog +* Mon Aug 17 2020 Anan Fu - 0.2.10-1 +- package init diff --git a/nodejs-closure-compiler.spec.old b/nodejs-closure-compiler.spec.old new file mode 100644 index 0000000..8ff4005 --- /dev/null +++ b/nodejs-closure-compiler.spec.old @@ -0,0 +1,87 @@ +Name: nodejs-closure-compiler +Version: 0.2.10 +Release: 7%{?dist} +Summary: Bindings to Google's Closure Compiler for Node.js + +License: MIT +URL: https://github.com/tim-smart/node-closure +Source0: http://registry.npmjs.org/closure-compiler/-/closure-compiler-%{version}.tgz +# Use the Fedora wrapper script to invoke the compiler +Patch0: nodejs-closure-compiler-invoke.patch +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +Requires: closure-compiler + +BuildRequires: nodejs-packaging +BuildRequires: coffee-script + +%description +A wrapper to the Google Closure compiler tool. It runs the jar file +in a child process and returns the results in a callback. + + +%prep +%setup -q -n package +%patch0 -p1 +%nodejs_fixdep -r google-closure-compiler +rm -rf node_modules lib/* + + +%build +cake build + + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/closure-compiler +cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/closure-compiler +%nodejs_symlink_deps + + +%files +%doc LICENSE.txt README.md +%{nodejs_sitelib}/closure-compiler + + +%changelog +* Fri Feb 01 2019 Fedora Release Engineering - 0.2.10-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 0.2.10-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Feb 08 2018 Fedora Release Engineering - 0.2.10-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.2.10-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 0.2.10-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 0.2.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Sat Oct 31 2015 Tom Hughes - 0.2.10-1 +- Update to 0.2.10 upstream release + +* Sat Sep 12 2015 Tom Hughes - 0.2.9-1 +- Update to 0.2.9 upstream release + +* Fri Jul 31 2015 Tom Hughes - 0.2.7-1 +- Update to 0.2.7 upstream release + +* Wed Jun 17 2015 Fedora Release Engineering - 0.2.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.2.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed Apr 23 2014 Tom Hughes - 0.2.6-2 +- Use the Fedora wrapper script to invoke the compiler + +* Wed Apr 23 2014 Tom Hughes - 0.2.6-1 +- Update to 0.2.6 upstream release + +* Tue Apr 22 2014 Tom Hughes - 0.2.5-1 +- Initial build of 0.2.5