Summary: Flash IRC Chat
Name: lightirc
Version: 0.9.9.3
-Release: 1
+Release: 2
License: free (but not open)
Group: Applications/WWW
Source0: http://www.lightirc.com/release/lightIRC_%{version}.zip
Requires: js-swfobject
Requires: webapps
Requires: webserver(alias)
+Conflicts: apache-base < 2.4.0-1
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
</Directory>
EOF
+cat > httpd.conf <<'EOF'
+Alias /%{name}/swfobject.js %{_datadir}/swfobject/swfobject.js
+Alias /%{name} %{_appdir}
+<Directory %{_appdir}>
+ Require all granted
+</Directory>
+EOF
+
cat > lighttpd.conf <<'EOF'
alias.url += (
"/%{name}/swfobject.js" => "%{_datadir}/swfobject/swfobject.js",
cp -a lightIRC/* $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 httpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
cp -a lighttpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
%clean
%triggerun -- apache1 < 1.3.37-3, apache1-base
%webapp_unregister apache %{_webapp}
-%triggerin -- apache < 2.2.0, apache-base
+%triggerin -- apache-base
%webapp_register httpd %{_webapp}
-%triggerun -- apache < 2.2.0, apache-base
+%triggerun -- apache-base
%webapp_unregister httpd %{_webapp}
%triggerin -- lighttpd