Author: glen                         Date: Thu Sep 24 15:06:24 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/jquery-thickbox:
   jquery-thickbox.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/jquery-thickbox/jquery-thickbox.spec
diff -u /dev/null packages/jquery-thickbox/jquery-thickbox.spec:1.1
--- /dev/null   Thu Sep 24 17:06:24 2009
+++ packages/jquery-thickbox/jquery-thickbox.spec       Thu Sep 24 17:06:19 2009
@@ -0,0 +1,110 @@
+# $Revision$, $Date$
+Summary:       ThickBox
+Name:          jquery-thickbox
+Version:       3.1
+Release:       0.3
+License:       MIT / GPL
+Group:         Applications/WWW
+Source0:       
http://jquery.com/demo/thickbox/thickbox-code/thickbox-compressed.js
+# Source0-md5: 62ecf3e9b248f69a043ca7653866b146
+Source1:       http://jquery.com/demo/thickbox/thickbox-code/thickbox.css
+# Source1-md5: 9b2903ebee6d54b3e63ba927ea5dd498
+Source2:       http://jquery.com/demo/thickbox/images/loadingAnimation.gif
+# Source2-md5: c33734a1bf58bec328ffa27872e96ae1
+URL:           http://jquery.com/demo/thickbox/
+BuildRequires: rpmbuild(macros) > 1.268
+BuildRequires: yuicompressor
+Requires:      jquery
+Requires:      webapps
+Requires:      webserver(alias)
+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
+ThickBox is a webpage UI dialog widget written in JavaScript on top of
+the jQuery library. Its function is to show a single image, multiple
+images, inline content, iframed content, or content served through
+AJAX in a hybrid modal.
+
+%prep
+%setup -qcT
+cp -a %{SOURCE0} thickbox.js
+cp -a %{SOURCE1} .
+cp -a %{SOURCE2} .
+
+# apache1/apache2 conf
+cat > apache.conf <<'EOF'
+Alias /js/thickbox %{_appdir}
+<Directory %{_appdir}>
+       Allow from all
+</Directory>
+EOF
+
+# lighttpd conf
+cat > lighttpd.conf <<'EOF'
+alias.url += (
+    "/js/thickbox" => "%{_appdir}",
+)
+EOF
+
+%build
+for a in *.js; do
+       yuicompressor --charset UTF-8 --type js $a -o tmp
+       mv tmp $a
+done
+for a in *.css; do
+       yuicompressor --charset UTF-8 --type css $a -o tmp
+       mv tmp $a
+done
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
+cp -a *.js *.css $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"`)
+%changelog
+* %{date} PLD Team <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/09/24 15:06:19  glen
+- new
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to