From: Jan Rękorajski Date: Wed, 15 May 2013 16:03:07 +0000 (+0200) Subject: - migrate to apache 2.4 X-Git-Tag: auto/th/MathJax-1.1a-2 X-Git-Url: http://git.pld-linux.org/?p=packages%2FMathJax.git;a=commitdiff_plain;h=ec08939de8658553255891769c155dc66c369362 - migrate to apache 2.4 - rel 2 --- 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} EOF +cat > httpd.conf <<'EOF' +Alias /%{name} %{_appdir} + + Require all granted + +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