Author: glen                         Date: Mon May  3 15:39:20 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/js-ajax-upload:
   js-ajax-upload.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/js-ajax-upload/js-ajax-upload.spec
diff -u /dev/null packages/js-ajax-upload/js-ajax-upload.spec:1.1
--- /dev/null   Mon May  3 17:39:20 2010
+++ packages/js-ajax-upload/js-ajax-upload.spec Mon May  3 17:39:15 2010
@@ -0,0 +1,109 @@
+# $Revision$, $Date$
+Summary:       AJAX Upload
+Name:          js-ajax-upload
+Version:       3.9
+Release:       1
+License:       MIT
+Group:         Applications/WWW
+Source0:       
http://download.github.com/valums-ajax-upload-%{version}-0-g6f977de.zip
+# Source0-md5: 89d8611a5f6a51230486acab2cb46722
+URL:           http://valums.com/ajax-upload/
+BuildRequires: unzip
+Requires:      webserver(access)
+Requires:      webserver(alias)
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _appdir %{_datadir}/%{name}
+
+%description
+AJAX Upload allows you to easily upload multiple files without
+refreshing the page and use any element to show file selection window.
+It works in all major browsers and doesn’t require any library to run.
+AJAX Upload doesn’t pollute the global namespace, and is tested with
+jQuery, Prototypejs.
+
+%package demo
+Summary:       Demo for AJAX Upload
+Summary(pl.UTF-8):     Pliki demonstracyjne dla pakietu AJAX Upload
+Group:         Development
+Requires:      %{name} = %{version}-%{release}
+
+%description demo
+Demonstrations and samples for AJAX Upload.
+
+%prep
+%setup -qc
+mv valums-ajax-upload-*/* .
+
+mv readme.md README
+
+# apache1/apache2 config
+cat > apache.conf <<'EOF'
+Alias /js/ajax-upload %{_appdir}
+<Directory %{_appdir}>
+       Allow from all
+</Directory>
+EOF
+
+# lighttpd config
+cat > lighttpd.conf <<'EOF'
+alias.url += (
+       "/js/ajax-upload" => "%{_appdir}",
+)
+EOF
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
+cp -a ajaxupload.js $RPM_BUILD_ROOT%{_appdir}
+
+cp -a demos server-side tests $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
+cp -a apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+cp -a apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+cp -a lighttpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.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
+%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
+%{_appdir}
+
+%files demo
+%defattr(644,root,root,755)
+%{_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  2010/05/03 15:39:15  glen
+- new
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to