packages: jquery-file-upload/jquery-file-upload.spec (NEW)=?UTF-8?Q?=20?=- new
glen
glen at pld-linux.org
Mon Apr 30 15:43:53 CEST 2012
Author: glen Date: Mon Apr 30 13:43:53 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/jquery-file-upload:
jquery-file-upload.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/jquery-file-upload/jquery-file-upload.spec
diff -u /dev/null packages/jquery-file-upload/jquery-file-upload.spec:1.1
--- /dev/null Mon Apr 30 15:43:53 2012
+++ packages/jquery-file-upload/jquery-file-upload.spec Mon Apr 30 15:43:48 2012
@@ -0,0 +1,82 @@
+# $Revision$, $Date$
+%define plugin file-upload
+Summary: File Upload library for jQuery
+Name: jquery-%{plugin}
+Version: 6.7
+Release: 1
+License: MIT
+Group: Applications/WWW
+Source0: https://github.com/blueimp/jQuery-File-Upload/tarball/master/%{plugin}-%{version}.tgz
+# Source0-md5: 1446c835a9ff3f7a41c1d9ca3e91c2e9
+URL: https://github.com/blueimp/jQuery-File-Upload/
+BuildRequires: closure-compiler
+BuildRequires: yuicompressor
+BuildRequires: js
+BuildRequires: rpmbuild(macros) > 1.268
+#Requires: blueimp-canvas-to-blob >=1.0.1
+#Requires: blueimp-load-image >=1.1.4
+#Requires: blueimp-tmpl >=2.1.0
+Requires: jquery >= 1.6
+#Requires: jquery-ui >= 1.8
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _appdir %{_datadir}/jquery/%{plugin}
+
+%description
+File Upload widget with multiple file selection, drag&drop support,
+progress bars and preview images for jQuery. Supports cross-domain,
+chunked and resumable file uploads and client-side image resizing.
+Works with any server-side platform (PHP, Python, Ruby on Rails, Java,
+Node.js, Go etc.) that supports standard HTML form file uploads.
+
+%prep
+%setup -qc
+mv *-jQuery-File-Upload-*/* .
+
+%build
+install -d build
+# compress .js
+for js in $(find js -name '*.js'); do
+ out=build/$js
+ install -d ${out%/*}
+ %if 0%{!?debug:1}
+ closure-compiler --js $js --charset UTF-8 --js_output_file $out
+ js -C -f $out
+ %else
+ cp -p $js $out
+ %endif
+done
+
+# pack .css
+for css in $(find css -name '*.css'); do
+ out=build/$css
+ install -d ${out%/*}
+%if 0%{!?debug:1}
+ yuicompressor --charset UTF-8 $css -o $out
+%else
+ cp -a $css $out
+%endif
+done
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_appdir}
+cp -a build/* $RPM_BUILD_ROOT%{_appdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{_appdir}
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2012/04/30 13:43:48 glen
+- new
================================================================
More information about the pld-cvs-commit
mailing list