2 # - the tarball is created by this same spec on DEVEL branch
8 Group: Applications/WWW
9 Source0: %{name}-%{version}-6.tar.bz2
10 # Source0-md5: 11154789765bcb8699c06308f1fb4dec
11 URL: http://jquery.com/demo/thickbox/
12 BuildRequires: rpmbuild(macros) > 1.268
15 Requires: webserver(alias)
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _webapps /etc/webapps
20 %define _webapp %{name}
21 %define _sysconfdir %{_webapps}/%{_webapp}
22 %define _appdir %{_datadir}/%{name}
25 ThickBox is a webpage UI dialog widget written in JavaScript on top of
26 the jQuery library. Its function is to show a single image, multiple
27 images, inline content, iframed content, or content served through
28 AJAX in a hybrid modal.
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
36 cp -a *.js *.css *.gif *.png $RPM_BUILD_ROOT%{_appdir}
37 cp -a apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
38 cp -a apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
39 cp -a lighttpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
42 rm -rf $RPM_BUILD_ROOT
44 %triggerin -- apache1 < 1.3.37-3, apache1-base
45 %webapp_register apache %{_webapp}
47 %triggerun -- apache1 < 1.3.37-3, apache1-base
48 %webapp_unregister apache %{_webapp}
50 %triggerin -- apache < 2.2.0, apache-base
51 %webapp_register httpd %{_webapp}
53 %triggerun -- apache < 2.2.0, apache-base
54 %webapp_unregister httpd %{_webapp}
56 %triggerin -- lighttpd
57 %webapp_register lighttpd %{_webapp}
59 %triggerun -- lighttpd
60 %webapp_unregister lighttpd %{_webapp}
63 %defattr(644,root,root,755)
64 %dir %attr(750,root,http) %{_sysconfdir}
65 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
66 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
67 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf