[packages/js-controljs] - migrated to apache 2.4

baggins baggins at pld-linux.org
Wed May 15 20:25:58 CEST 2013


commit 127661af657b203ce31044c5146753383a1b751e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed May 15 20:25:57 2013 +0200

    - migrated to apache 2.4

 js-controljs.spec | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/js-controljs.spec b/js-controljs.spec
index 2bcaf4b..730cb60 100644
--- a/js-controljs.spec
+++ b/js-controljs.spec
@@ -1,5 +1,5 @@
 %define		svnrev	r12
-%define		rel		1
+%define		rel		2
 Summary:	ControlJS is a JavaScript module for making scripts load faster
 Name:		js-controljs
 Version:	0.1
@@ -14,6 +14,7 @@ BuildRequires:	js
 BuildRequires:	closure-compiler
 Requires:	webserver(access)
 Requires:	webserver(alias)
+Conflicts:	apache-base < 2.4.0-1
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -29,7 +30,7 @@ ControlJS is a JavaScript module for making scripts load faster.
 %setup -qcT
 cp -p %{SOURCE0} .
 
-# Apache1/Apache2 config
+# Apache1 config
 cat > apache.conf <<'EOF'
 Alias /js/controljs/ %{_appdir}/
 <Directory %{_appdir}>
@@ -37,6 +38,14 @@ Alias /js/controljs/ %{_appdir}/
 </Directory>
 EOF
 
+# Apache2 config
+cat > httpd.conf <<'EOF'
+Alias /js/controljs/ %{_appdir}/
+<Directory %{_appdir}>
+	Require all granted
+</Directory>
+EOF
+
 # Lighttpd config
 cat > lighttpd.conf <<'EOF'
 alias.url += (
@@ -56,7 +65,7 @@ cp -p build/* $RPM_BUILD_ROOT%{_appdir}
 
 install -d $RPM_BUILD_ROOT%{_sysconfdir}
 cp -p apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
-cp -p apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+cp -p httpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 cp -p lighttpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
 
 %clean
@@ -68,10 +77,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/js-controljs.git/commitdiff/127661af657b203ce31044c5146753383a1b751e



More information about the pld-cvs-commit mailing list