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

baggins baggins at pld-linux.org
Wed May 15 20:29:36 CEST 2013


commit ae3e22ad44c48dfab6ec956711fdce2b53605184
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed May 15 20:29:34 2013 +0200

    - migrated to apache 2.4

 js-json2.spec | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/js-json2.spec b/js-json2.spec
index e000571..d39105b 100644
--- a/js-json2.spec
+++ b/js-json2.spec
@@ -1,7 +1,7 @@
 Summary:	JSON in JavaScript
 Name:		js-json2
 Version:	20100320
-Release:	1
+Release:	2
 License:	Public Domain
 Group:		Applications/WWW
 Source0:	http://www.JSON.org/json2.js
@@ -12,6 +12,7 @@ BuildRequires:	jsmin
 Requires:	webapps
 Requires:	webserver(access)
 Requires:	webserver(alias)
+Conflicts:	apache-base < 2.4.0-1
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -33,7 +34,7 @@ if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
 	exit 1
 fi
 
-# apache1/apache2 conf
+# apache1 conf
 cat > apache.conf <<'EOF'
 Alias /js/json2.js %{_appdir}/json2.js
 <Directory %{_appdir}>
@@ -41,6 +42,14 @@ Alias /js/json2.js %{_appdir}/json2.js
 </Directory>
 EOF
 
+# apache2 conf
+cat > httpd.conf <<'EOF'
+Alias /js/json2.js %{_appdir}/json2.js
+<Directory %{_appdir}>
+	Require all granted
+</Directory>
+EOF
+
 # lighttpd conf
 cat > lighttpd.conf <<'EOF'
 alias.url += (
@@ -59,7 +68,7 @@ cp -a json2-min.js $RPM_BUILD_ROOT%{_appdir}/json2.js
 
 install -d $RPM_BUILD_ROOT%{_sysconfdir}
 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
@@ -71,10 +80,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-json2.git/commitdiff/ae3e22ad44c48dfab6ec956711fdce2b53605184



More information about the pld-cvs-commit mailing list