Author: glen                         Date: Thu Feb  9 10:24:57 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/js-plupload:
   apache.conf (NONE -> 1.1)  (NEW), js-plupload.spec (NONE -> 1.1)  (NEW), 
lighttpd.conf (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/js-plupload/apache.conf
diff -u /dev/null packages/js-plupload/apache.conf:1.1
--- /dev/null   Thu Feb  9 11:24:57 2012
+++ packages/js-plupload/apache.conf    Thu Feb  9 11:24:52 2012
@@ -0,0 +1,4 @@
+Alias /js/plupload /usr/share/plupload
+<Directory /usr/share/plupload>
+       Allow from all
+</Directory>

================================================================
Index: packages/js-plupload/js-plupload.spec
diff -u /dev/null packages/js-plupload/js-plupload.spec:1.1
--- /dev/null   Thu Feb  9 11:24:57 2012
+++ packages/js-plupload/js-plupload.spec       Thu Feb  9 11:24:52 2012
@@ -0,0 +1,113 @@
+# $Revision$, $Date$
+%define                ver     %(echo %{version} | tr . _)
+Summary:       Multiple file upload utility using Flash, Silverlight, Google 
Gears, HTML5 or BrowserPlus
+Name:          js-plupload
+Version:       1.5.2
+Release:       1
+License:       GPL v2
+Group:         Applications/WWW
+Source0:       
https://github.com/downloads/moxiecode/plupload/plupload_%{ver}.zip
+# Source0-md5: 359090ecc1047c12cff09a8693e5deab
+Source1:       apache.conf
+Source2:       lighttpd.conf
+URL:           http://www.plupload.com/
+BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: unzip
+Requires:      webapps
+Requires:      webserver(access)
+Suggests:      jquery
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _webapps        /etc/webapps
+%define                _webapp         plupload
+%define                _sysconfdir     %{_webapps}/%{_webapp}
+%define                _appdir         %{_datadir}/%{_webapp}
+
+%description
+Plupload is a JavaScript API for dealing with file uploads it supports
+features like multiple file selection, file type filtering, request
+chunking, client side image scaling and it uses different runtimes to
+achieve this such as HTML 5, Silverlight, Flash, Gears and
+BrowserPlus.
+
+%prep
+%setup -qc
+mv %{_webapp}/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
+
+cp -a js/* $RPM_BUILD_ROOT%{_appdir}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
+cp -p $RPM_BUILD_ROOT%{_sysconfdir}/{apache,httpd}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%triggerin -- apache1 < 1.3.37-3, apache1-base
+%webapp_register apache %{_webapp}
+
+%triggerun -- apache1 < 1.3.37-3, apache1-base
+%webapp_unregister apache %{_webapp}
+
+%triggerin -- apache < 2.2.0, apache-base
+%webapp_register httpd %{_webapp}
+
+%triggerun -- apache < 2.2.0, apache-base
+%webapp_unregister httpd %{_webapp}
+
+%triggerin -- lighttpd
+%webapp_register lighttpd %{_webapp}
+
+%triggerun -- lighttpd
+%webapp_unregister lighttpd %{_webapp}
+
+%files
+%defattr(644,root,root,755)
+%doc readme.md changelog.txt
+%dir %attr(750,root,http) %{_sysconfdir}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) 
%{_sysconfdir}/apache.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) 
%{_sysconfdir}/httpd.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) 
%{_sysconfdir}/lighttpd.conf
+%dir %{_appdir}
+%{_appdir}/jquery.plupload.queue
+%{_appdir}/jquery.ui.plupload
+%{_appdir}/plupload.*js
+%{_appdir}/plupload.*swf
+%{_appdir}/plupload.*xap
+
+%dir %{_appdir}/i18n
+%lang(cs) %{_appdir}/i18n/cs.js
+%lang(da) %{_appdir}/i18n/da.js
+%lang(de) %{_appdir}/i18n/de.js
+%lang(es) %{_appdir}/i18n/es.js
+%lang(fi) %{_appdir}/i18n/fi.js
+%lang(fr) %{_appdir}/i18n/fr.js
+%lang(hr) %{_appdir}/i18n/hr.js
+%lang(hu) %{_appdir}/i18n/hu.js
+%lang(it) %{_appdir}/i18n/it.js
+%lang(ja) %{_appdir}/i18n/ja.js
+%lang(lv) %{_appdir}/i18n/lv.js
+%lang(nl) %{_appdir}/i18n/nl.js
+%lang(pt_BR) %{_appdir}/i18n/pt-br.js
+%lang(ro) %{_appdir}/i18n/ro.js
+%lang(ru) %{_appdir}/i18n/ru.js
+%lang(sr) %{_appdir}/i18n/sr.js
+%lang(sv) %{_appdir}/i18n/sv.js
+
+%{_examplesdir}/%{name}-%{version}
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/02/09 10:24:52  glen
+- new

================================================================
Index: packages/js-plupload/lighttpd.conf
diff -u /dev/null packages/js-plupload/lighttpd.conf:1.1
--- /dev/null   Thu Feb  9 11:24:57 2012
+++ packages/js-plupload/lighttpd.conf  Thu Feb  9 11:24:52 2012
@@ -0,0 +1,3 @@
+alias.url += (
+    "/js/plupload" => "/usr/share/plupload",
+)
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to