[packages/MathJax] - migrate to apache 2.4 - rel 2

baggins baggins at pld-linux.org
Wed May 15 18:03:28 CEST 2013


commit ec08939de8658553255891769c155dc66c369362
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed May 15 18:03:07 2013 +0200

    - migrate to apache 2.4
    - rel 2

 MathJax.spec | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/MathJax.spec b/MathJax.spec
index 38f477a..6c76e3b 100644
--- a/MathJax.spec
+++ b/MathJax.spec
@@ -1,8 +1,7 @@
 Summary:	JavaScript display engine for mathematics
-#Summary(pl.UTF-8):
 Name:		MathJax
 Version:	1.1a
-Release:	1
+Release:	2
 License:	Apache v2.0
 Group:		Applications/WWW
 # https://github.com/mathjax/MathJax/zipball/v1.1a
@@ -14,6 +13,7 @@ BuildRequires:	unzip
 Requires:	webapps
 Requires:	webserver(access)
 Requires:	webserver(alias)
+Conflicts:	apache < 2.4.0-1
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -26,8 +26,6 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 MathJax is an open source JavaScript display engine for mathematics
 that works in all modern browsers.
 
-#%description -l pl.UTF-8
-
 %prep
 %setup -q -n mathjax-MathJax-f5cd294
 
@@ -38,6 +36,13 @@ Alias /%{name} %{_appdir}
 </Directory>
 EOF
 
+cat > httpd.conf <<'EOF'
+Alias /%{name} %{_appdir}
+<Directory %{_appdir}>
+	Require all granted
+</Directory>
+EOF
+
 cat > lighttpd.conf <<'EOF'
 alias.url += (
     "/%{name}" => "%{_appdir}",
@@ -60,10 +65,10 @@ cp -a lighttpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
 %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/MathJax.git/commitdiff/ec08939de8658553255891769c155dc66c369362



More information about the pld-cvs-commit mailing list