[packages/js-swfobject] really compile with closure-compiler

glen glen at pld-linux.org
Thu Nov 29 22:54:19 CET 2012


commit 1b6841075b0a02f32daf103c6a234360974c4fbd
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Nov 29 23:54:10 2012 +0200

    really compile with closure-compiler

 js-swfobject.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js-swfobject.spec b/js-swfobject.spec
index 708c1f8..ef5abb8 100644
--- a/js-swfobject.spec
+++ b/js-swfobject.spec
@@ -13,6 +13,7 @@ Source1:	apache.conf
 Source2:	lighttpd.conf
 URL:		http://code.google.com/p/swfobject/
 BuildRequires:	closure-compiler
+BuildRequires:	js
 BuildRequires:	unzip
 Requires:	webapps
 Requires:	webserver(alias)
@@ -55,7 +56,7 @@ install -d build
 for js in src/*.js; do
 	out=build/${js#*/}
 %if 0%{!?debug:1}
-	yuicompressor --charset UTF-8 $js -o $out
+	closure-compiler --js $js --charset UTF-8 --js_output_file $out
 	js -C -f $out
 %else
 	cp -p $js $out
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/js-swfobject.git/commitdiff/1b6841075b0a02f32daf103c6a234360974c4fbd



More information about the pld-cvs-commit mailing list