[packages/lightirc] - migrated to apache 2.4

baggins baggins at pld-linux.org
Wed May 15 22:27:20 CEST 2013


commit 877d9bcd008400bb2e34eab08271b0dfa1eaadb1
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed May 15 22:27:18 2013 +0200

    - migrated to apache 2.4

 lightirc.spec | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/lightirc.spec b/lightirc.spec
index 6616a2e..16d1f51 100644
--- a/lightirc.spec
+++ b/lightirc.spec
@@ -1,7 +1,7 @@
 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
@@ -12,6 +12,7 @@ BuildRequires:	unzip
 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)
 
@@ -40,6 +41,14 @@ Alias /%{name} %{_appdir}
 </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",
@@ -53,7 +62,7 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
 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
@@ -65,10 +74,10 @@ rm -rf $RPM_BUILD_ROOT
 %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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lightirc.git/commitdiff/877d9bcd008400bb2e34eab08271b0dfa1eaadb1



More information about the pld-cvs-commit mailing list