packages: minify/minify.spec, minify/yui-path.patch (NEW)=?UTF-8?Q?=20?=- setup distro pa...

glen glen at pld-linux.org
Thu Mar 29 18:46:36 CEST 2012


Author: glen                         Date: Thu Mar 29 16:46:36 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- setup distro path for yuicompressor jar

---- Files affected:
packages/minify:
   minify.spec (1.12 -> 1.13) , yui-path.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/minify/minify.spec
diff -u packages/minify/minify.spec:1.12 packages/minify/minify.spec:1.13
--- packages/minify/minify.spec:1.12	Thu Mar 29 12:35:21 2012
+++ packages/minify/minify.spec	Thu Mar 29 18:46:31 2012
@@ -12,6 +12,7 @@
 # Source0-md5:	b120d4f5060a55e66ae23afa9172be31
 Patch0:		paths.patch
 Patch1:		pear-firephp.patch
+Patch2:		yui-path.patch
 Source1:	apache.conf
 Source2:	lighttpd.conf
 URL:		http://code.google.com/p/minify/
@@ -82,8 +83,11 @@
 %undos -f php
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 %undos UPGRADING.txt
 
+find -type f | xargs chmod a-x
+
 #mv min/README.txt README.min.txt
 
 # not needed for functionality
@@ -93,6 +97,9 @@
 # php-firephp-FirePHPCore
 %{__rm} min/lib/FirePHP.php
 
+# cleanup backups after patching
+find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{php_data_dir},%{_sysconfdir},%{_appdir},%{cachedir}}
@@ -169,6 +176,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.13  2012/03/29 16:46:31  glen
+- setup distro path for yuicompressor jar
+
 Revision 1.12  2012/03/29 10:35:21  glen
 - up to 2.1.5
 

================================================================
Index: packages/minify/yui-path.patch
diff -u /dev/null packages/minify/yui-path.patch:1.1
--- /dev/null	Thu Mar 29 18:46:36 2012
+++ packages/minify/yui-path.patch	Thu Mar 29 18:46:31 2012
@@ -0,0 +1,11 @@
+--- minify-2.1.5/min/lib/Minify/YUICompressor.php~	2012-03-29 15:05:43.656136317 +0300
++++ minify-2.1.5/min/lib/Minify/YUICompressor.php	2012-03-29 15:04:42.000000000 +0300
+@@ -34,7 +34,7 @@
+      *
+      * @var string
+      */
+-    public static $jarFile = null;
++    public static $jarFile = '/usr/share/java/yuicompressor.jar';
+     
+     /**
+      * Writable temp directory. This must be set before calling minifyJs()
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/minify/minify.spec?r1=1.12&r2=1.13



More information about the pld-cvs-commit mailing list