[packages/jquery-uploadify] up to 3.2.1

glen glen at pld-linux.org
Tue Aug 6 13:43:40 CEST 2013


commit 74a6588ff2db799465f760d6d2b8afef0a38fd1c
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Aug 6 13:05:38 2013 +0300

    up to 3.2.1
    
    v3.2.1
    - Updated uploadify.swf with security updates from secure swfupload.
    
    v3.2
    - Added a new option for itemTemplate where you can create an HTML template for the items that are added to the queue

 jquery-ns.patch       | 18 +++++++++---------
 jquery-uploadify.spec | 28 ++++++++++++++++------------
 2 files changed, 25 insertions(+), 21 deletions(-)
---
diff --git a/jquery-uploadify.spec b/jquery-uploadify.spec
index bcf616a..d22f7c2 100644
--- a/jquery-uploadify.spec
+++ b/jquery-uploadify.spec
@@ -1,17 +1,18 @@
 # TODO
 # - bundles SWFObject v2.2 and SWFUpload 2.2.0.1
 # NOTE
-# - the HTML5 version, is not available as Flash version
+# - the HTML5 version, is not available under same license as Flash version
 %define		plugin	uploadify
 %define		basever	3.1
 Summary:	Flash Multiple File Upload jQuery Plugin Script
 Name:		jquery-%{plugin}
-Version:	3.1.1
+Version:	3.2.1
 Release:	1
 License:	MIT
 Group:		Applications/WWW
-Source0:	http://www.uploadify.com/wp-content/uploads/files/uploadify-v%{basever}.zip
-# Source0-md5:	630e0445508c9614a8d37781068073cd
+#Source0:	http://www.uploadify.com/wp-content/uploads/files/uploadify-v%{basever}.zip
+Source0:	http://www.uploadify.com/wp-content/uploads/files/uploadify.zip
+# Source0-md5:	438c6d7c76765ee39af0d6a8d1934e13
 Patch0:		css-path.patch
 Patch1:		jquery-ns.patch
 URL:		http://www.uploadify.com/
@@ -40,22 +41,25 @@ jQuery Multiple File Upload Plugin - Uploadify.
 mv "Change Log.txt" "ChangeLog.txt"
 
 install -d examples
-mv .htaccess *.php examples
+mv *.php examples
 
 # keep original for reference
-cp -p jquery.uploadify-%{basever}.js{,.bak}
+cp -p jquery.uploadify.js{,.bak}
 
 # unmodified SWFObject 2.2
-%{__sed} -i -e 1,59d jquery.uploadify-%{basever}.js
+%{__sed} -i -e 1,59d jquery.uploadify.js
 
 # unmmodified SWFUpload 2.2.0.1
-%{__sed} -i -e 1,14d jquery.uploadify-%{basever}.js
+%{__sed} -i -e 1,14d jquery.uploadify.js
 
 %build
+# version check
+grep 'Uploadify v%{version}' jquery.uploadify.js
+
 install -d build
 
 # compress .js
-for js in jquery.%{plugin}-%{basever}.js; do
+for js in jquery.%{plugin}.js; do
 	out=build/${js#*/}
 %if 0%{!?debug:1}
 	closure-compiler --js $js --charset UTF-8 --js_output_file $out
@@ -79,8 +83,8 @@ done
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
 
-cp -p build/jquery.%{plugin}-%{basever}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.min.js
-cp -p jquery.%{plugin}-%{basever}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.js
+cp -p build/jquery.%{plugin}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.min.js
+cp -p jquery.%{plugin}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.js
 ln -s %{plugin}-%{version}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.src.js
 ln -s %{plugin}-%{version}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.js
 
@@ -91,7 +95,7 @@ ln -s %{plugin}-%{version}.min.css $RPM_BUILD_ROOT%{_appdir}/%{plugin}.css
 
 cp -p *.png *.swf $RPM_BUILD_ROOT%{_appdir}
 
-cp -a examples/{.*,*} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
diff --git a/jquery-ns.patch b/jquery-ns.patch
index a70a24b..a826a92 100644
--- a/jquery-ns.patch
+++ b/jquery-ns.patch
@@ -1,15 +1,15 @@
---- jquery-uploadify-3.1/jquery.uploadify-3.1.js~	2012-05-22 02:07:00.000000000 +0300
-+++ jquery-uploadify-3.1/jquery.uploadify-3.1.js	2012-11-29 19:30:53.404491175 +0200
-@@ -650,7 +650,7 @@
- 				// Add the file item to the queue
- 				$('#' + settings.queueID).append('<div id="' + file.id + '" class="uploadify-queue-item">\
+--- jquery-uploadify-3.2.1/jquery.uploadify.js~	2013-08-06 13:02:03.578771849 +0300
++++ jquery-uploadify-3.2.1/jquery.uploadify.js	2013-08-06 13:06:41.567624860 +0300
+@@ -584,7 +584,7 @@
+ 			if (settings.itemTemplate == false) {
+ 				settings.itemTemplate = '<div id="${fileID}" class="uploadify-queue-item">\
  					<div class="cancel">\
--						<a href="javascript:$(\'#' + settings.id + '\').uploadify(\'cancel\', \'' + file.id + '\')">X</a>\
-+						<a href="javascript:jQuery(\'#' + settings.id + '\').uploadify(\'cancel\', \'' + file.id + '\')">X</a>\
+-						<a href="javascript:$(\'#${instanceID}\').uploadify(\'cancel\', \'${fileID}\')">X</a>\
++						<a href="javascript:jQuery(\'#${instanceID}\').uploadify(\'cancel\', \'${fileID}\')">X</a>\
  					</div>\
- 					<span class="fileName">' + fileName + ' (' + fileSize + ')</span><span class="data"></span>\
+ 					<span class="fileName">${fileName} (${fileSize})</span><span class="data"></span>\
  					<div class="uploadify-progress">\
-@@ -964,4 +964,4 @@
+@@ -910,4 +910,4 @@
  
  	}
  
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/jquery-uploadify.git/commitdiff/ee1fbefd4b25aaa95340879603d7af7a2c0d4a96



More information about the pld-cvs-commit mailing list