1 Summary: Flash IRC Chat
5 License: free (but not open)
6 Group: Applications/WWW
7 Source0: http://www.lightirc.com/release/lightIRC_%{version}.zip
8 # Source0-md5: 5d67f5d2aab9076e685af85b63e39ef7
9 URL: http://www.lightirc.com/
10 BuildRequires: rpmbuild(macros) >= 1.553
12 Requires: js-swfobject
14 Requires: webserver(alias)
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _webapps /etc/webapps
19 %define _webapp %{name}
20 %define _sysconfdir %{_webapps}/%{_webapp}
21 %define _appdir %{_datadir}/%{_webapp}
24 lightIRC is a free Flash IRC client that includes all well known IRC
25 features. It supports stylesheets for its own skins, has support for
26 multiple languages, and can be used with every IRCd.
32 rm lightIRC/swfobject.js
33 %undos lightIRC/*.html
35 cat > apache.conf <<'EOF'
36 Alias /%{name}/swfobject.js %{_datadir}/swfobject/swfobject.js
37 Alias /%{name} %{_appdir}
38 <Directory %{_appdir}>
43 cat > lighttpd.conf <<'EOF'
45 "/%{name}/swfobject.js" => "%{_datadir}/swfobject/swfobject.js",
46 "/%{name}" => "%{_appdir}",
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
53 cp -a lightIRC/* $RPM_BUILD_ROOT%{_appdir}
55 cp -a apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
56 cp -a apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
57 cp -a lighttpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
60 rm -rf $RPM_BUILD_ROOT
62 %triggerin -- apache1 < 1.3.37-3, apache1-base
63 %webapp_register apache %{_webapp}
65 %triggerun -- apache1 < 1.3.37-3, apache1-base
66 %webapp_unregister apache %{_webapp}
68 %triggerin -- apache < 2.2.0, apache-base
69 %webapp_register httpd %{_webapp}
71 %triggerun -- apache < 2.2.0, apache-base
72 %webapp_unregister httpd %{_webapp}
74 %triggerin -- lighttpd
75 %webapp_register lighttpd %{_webapp}
77 %triggerun -- lighttpd
78 %webapp_unregister lighttpd %{_webapp}
81 %defattr(644,root,root,755)
82 %doc readme.txt changelog.txt
83 %dir %attr(750,root,http) %{_sysconfdir}
84 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
85 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
86 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
90 %config(noreplace) %verify(not md5 mtime size) %{_appdir}/index.html