packages: js-syntaxhighlighter/js-syntaxhighlighter.spec - use yuicompresso...

pawelz pawelz at pld-linux.org
Mon May 3 23:53:14 CEST 2010


Author: pawelz                       Date: Mon May  3 21:53:14 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- use yuicompressor to compress js scripts and csses.

---- Files affected:
packages/js-syntaxhighlighter:
   js-syntaxhighlighter.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: packages/js-syntaxhighlighter/js-syntaxhighlighter.spec
diff -u packages/js-syntaxhighlighter/js-syntaxhighlighter.spec:1.3 packages/js-syntaxhighlighter/js-syntaxhighlighter.spec:1.4
--- packages/js-syntaxhighlighter/js-syntaxhighlighter.spec:1.3	Tue Apr 27 23:28:22 2010
+++ packages/js-syntaxhighlighter/js-syntaxhighlighter.spec	Mon May  3 23:53:08 2010
@@ -12,6 +12,7 @@
 # Source0-md5:	839d77b07b80e56965ebcfaf2a1186be
 URL:		http://alexgorbatchev.com/wiki/SyntaxHighlighter
 BuildRequires:	unzip
+BuildRequires:	yuicompressor
 Requires:	webapps
 Requires:	webserver(alias)
 BuildArch:	noarch
@@ -47,10 +48,18 @@
 )
 EOF
 
+mkdir build
+cp -a scripts styles build
+
+%build
+for I in scripts/*.js styles/*.css; do
+	yuicompressor $I > build/$I
+done
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_appdir}
-cp -a scripts styles $RPM_BUILD_ROOT%{_appdir}
+cp -a build/{scripts,styles} $RPM_BUILD_ROOT%{_appdir}
 
 install -d $RPM_BUILD_ROOT%{_sysconfdir}
 cp -a apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
@@ -93,6 +102,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2010/05/03 21:53:08  pawelz
+- use yuicompressor to compress js scripts and csses.
+
 Revision 1.3  2010/04/27 21:28:22  glen
 - test bcond is there to disable testing process, not test data, so package the file as %doc
 - apache.conf is for apache 1.3 and apache 2.x (as httpd.conf)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/js-syntaxhighlighter/js-syntaxhighlighter.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list