SPECS: prototype.spec - update to 1.6.0.3 - webapps integration

glen glen at pld-linux.org
Thu Nov 20 17:02:33 CET 2008


Author: glen                         Date: Thu Nov 20 16:02:33 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:

- update to 1.6.0.3
- webapps integration

---- Files affected:
SPECS:
   prototype.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/prototype.spec
diff -u SPECS/prototype.spec:1.1 SPECS/prototype.spec:1.2
--- SPECS/prototype.spec:1.1	Tue Feb 12 16:52:16 2008
+++ SPECS/prototype.spec	Thu Nov 20 17:02:28 2008
@@ -1,12 +1,12 @@
 # $Revision$, $Date$
-Summary:	Prototype JavaScript framework: Easy Ajax and DOM manipulation for dynamic web application.
+Summary:	Prototype JavaScript framework: Easy Ajax and DOM manipulation for dynamic web application
 Name:		prototype
-Version:	1.6.0.2
+Version:	1.6.0.3
 Release:	1
 License:	MIT
 Group:		Applications/WWW
-Source0:	http://www.prototypejs.org/assets/2008/1/25/prototype-1.6.0.2.js
-# Source0-md5:	d3a5b20d5368c1bcabe655b57b52d097
+Source0:	http://www.prototypejs.org/assets/2008/9/29/%{name}-%{version}.js
+# Source0-md5:	b5684120e496c310977713be34be4868
 URL:		http://www.prototypejs.org/
 BuildRequires:	sed >= 4.0
 BuildArch:	noarch
@@ -15,27 +15,66 @@
 %define		_appdir	%{_datadir}/%{name}
 
 %description
-Prototype is a JavaScript Framework that aims to ease development of dynamic
-web applications.
+Prototype is a JavaScript Framework that aims to ease development of
+dynamic web applications.
 
-Featuring a unique, easy-to-use toolkit for class-driven development and the
-nicest Ajax library around, Prototype is quickly becoming the codebase of
-choice for web application developers everywhere.
+Featuring a unique, easy-to-use toolkit for class-driven development
+and the nicest Ajax library around, Prototype is quickly becoming the
+codebase of choice for web application developers everywhere.
 
 %prep
 %setup -qcT
 cp -a %{SOURCE0} %{name}.js
 
+cat <<'EOF' > apache.conf
+Alias /%{name}.js %{_appdir}/%{name}.js
+<Directory %{_appdir}>
+	Allow from all
+</Directory>
+EOF
+
+cat > lighttpd.conf <<'EOF'
+alias.url += (
+    "/%{name}.js/" => "%{_appdir}/%{name}.js",
+)
+EOF
+
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_appdir}
+install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir}}
 cp -a %{name}.js $RPM_BUILD_ROOT%{_appdir}
 
+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)
+%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}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -44,6 +83,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
-Revision 1.1  2008/02/12 15:52:16  glen
-- new
+Revision 1.2  2008/11/20 16:02:28  glen
 
+- update to 1.6.0.3
+- webapps integration
+
+Revision 1.1  2008-02-12 15:52:16  glen
+- new
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/prototype.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list