Author: glen Date: Wed Mar 11 23:58:03 2009 GMT Module: SPECS Tag: HEAD ---- Log message: - add something
---- Files affected: SPECS: scriptaculous.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/scriptaculous.spec diff -u /dev/null SPECS/scriptaculous.spec:1.1 --- /dev/null Thu Mar 12 00:58:03 2009 +++ SPECS/scriptaculous.spec Thu Mar 12 00:57:58 2009 @@ -0,0 +1,87 @@ +# $Revision$, $Date$ +Summary: Open-Source JavaScript framework for visual effects and interface behaviours +Name: scriptaculous +Version: 1.8.2 +Release: 0.1 +License: MIT +Group: Applications/WWW +Source0: http://script.aculo.us/dist/%{name}-js-%{version}.tar.bz2 +# Source0-md5: 10aa518e3b44f5a2a55f2bc8caadcd62 +URL: http://script.aculo.us/ +BuildRequires: sed >= 4.0 +Requires: prototype >= 1.6.0.3 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _webapps /etc/webapps +%define _webapp %{name} +%define _sysconfdir %{_webapps}/%{_webapp} +%define _appdir %{_datadir}/%{name} + +%description +A collection of Web 2.0 style JavaScript libraries that help web +developers to easily add visual and ajax effects to projects. + +%prep +%setup -q -n %{name}-js-%{version} + +cat <<'EOF' > apache.conf +Alias /%{name}/ %{_appdir} +<Directory %{_appdir}/> + Allow from all +</Directory> +EOF + +cat > lighttpd.conf <<'EOF' +alias.url += ( + "/%{name}/" => "%{_appdir}/", +) +EOF + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir}} +cp -a src/*.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) +%doc README.rdoc CHANGELOG +%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"`) +%changelog +* %{date} PLD Team <[email protected]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2009/03/11 23:57:58 glen +- add something ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
